[Ndn-interest] Error when trying to build ndn-cxx on CentOS 7

Junxiao Shi shijunxiao at email.arizona.EDU
Thu Feb 11 16:27:51 PST 2016


Dear folks

I'm seeing a similar error related to sphinx redmine_issue when building on
OSX 10.9.
http://jenkins.named-data.net/job/NFD/3605/OS=OSX-10.9-64bit/console
Extension error: Could not import extension redmine_issue (exception: No
module named redmine_issue)

Yours, Junxiao
On Nov 12, 2015 20:46, "Alexander Ni" <alexni1992 at gmail.com> wrote:

> Hi all,
>
> I have problem with ndn-cxx library building,
> when use:
> ./waf configure
> Setting top to                           : /home/kim/ndn-cxx
> Setting out to                           : /home/kim/ndn-cxx/build
> Building static library                  : no
> Building shared library                  : yes
> Checking for 'g++' (C++ compiler)        : /usr/bin/g++
> Checking supported CXXFLAGS              : -std=c++11
> Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g
> Checking for program 'doxygen'           : /usr/bin/doxygen
> Checking for program 'tar'               : /usr/bin/tar
> Checking for program 'sphinx-build'      : /usr/local/bin/sphinx-build
> Checking for std::is_default_constructible : yes
> Checking for std::is_nothrow_move_constructible : yes
> Checking for std::is_nothrow_move_assignable    : yes
> Checking for friend typename-specifier          : yes
> Checking for override and final specifiers      : yes
> Checking for std::to_string                     : yes
> Checking for std::vector::insert with const_iterator : no
> Checking for program 'sh'                            : /usr/bin/sh
> Checking for library pthread                         : yes
> Checking for library rt                              : yes
> Checking for function getpass                        : yes
> Checking for rtnetlink                               : yes
> Checking for program 'pkg-config'                    : /usr/bin/pkg-config
> Checking for 'sqlite3'                               : yes
> Checking Crypto++ lib                                : 562
> Checking if CryptoPP library works                   : yes
> Checking boost includes                              : 1.53.0
> Checking boost libs                                  : ok
> Checking for boost linkage                           : ok
> 'configure' finished successfully (4.702s)
>
> ./waf
>
> I get next:
>
> [ 28/140] Processing sphinx_build [man]: docs/manpages/ndn-client.conf.rst
> docs/manpages/ndnsec-cert-dump.rst docs/manpages/ndnsec-cert-gen.rst
> docs/manpages/ndnsec-cert-install.rst docs/manpages/ndnsec-cert-revoke.rst
> docs/manpages/ndnsec-delete.rst docs/manpages/ndnsec-dsk-gen.rst
> docs/manpages/ndnsec-export.rst docs/manpages/ndnsec-get-default.rst
> docs/manpages/ndnsec-import.rst docs/manpages/ndnsec-key-gen.rst
> docs/manpages/ndnsec-list.rst docs/manpages/ndnsec-set-acl.rst
> docs/manpages/ndnsec-set-default.rst docs/manpages/ndnsec-sign-req.rst
> docs/manpages/ndnsec-unlock-tpm.rst docs/manpages/ndnsec.rst
> docs/manpages/tlvdump.rst docs/conf.py -> build/docs/manpages/ndnsec.1
> build/docs/manpages/ndnsec-cert-dump.1
> build/docs/manpages/ndnsec-cert-gen.1
> build/docs/manpages/ndnsec-cert-revoke.1
> build/docs/manpages/ndnsec-cert-instal.1
> build/docs/manpages/ndnsec-delete.1 build/docs/manpages/ndnsec-export.1
> build/docs/manpages/ndnsec-get-default.1
> build/docs/manpages/ndnsec-import.1 build/docs/manpages/ndnsec-key-gen.1
> build/docs/manpages/ndnsec-list.1 build/docs/manpages/ndnsec-set-acl.1
> build/docs/manpages/ndnsec-set-default.1
> build/docs/manpages/ndnsec-sign-req.1
> build/docs/manpages/ndnsec-unlock-tpm.1
> build/docs/manpages/ndnsec-validator.conf.5 build/docs/manpages/tlvdump.1
> build/docs/manpages/ndn-client.conf.5
>
> 21:45:56 runner (exec) /usr/local/bin/sphinx-build -D version=0.4.0-beta1
> -D release=0.4.0-beta1 -q -b man -d
> /home/kim/ndn-cxx/build/docs/manpages/.doctrees /home/kim/ndn-cxx/docs
> /home/kim/ndn-cxx/build/docs/manpages
> 21:45:56 runner_env kw={'shell': False, 'cwd': '/home/kim/ndn-cxx/build',
> 'env': None}
>
> Exception occurred:
>   File "/usr/local/lib/python3.4/site-packages/sphinx/application.py",
> line 429, in setup_extension
>     mod = __import__(extension, None, None, ['setup'])
>   File "/home/kim/ndn-cxx/docs/redmine_issue.py", line 53
>     except AttributeError, err:
>                          ^
> SyntaxError: invalid syntax
> The full traceback has been saved in /tmp/sphinx-err-roag11_6.log, if you
> want to report the issue to the developers.
> Please also report this if it was a user error, so that a better error
> message can be provided next time.
> A bug report can be filed in the tracker at <
> https://github.com/sphinx-doc/sphinx/issues>. Thanks!
>
> Waf: Leaving directory `/home/kim/ndn-cxx/build'
>   File "./waf", line 165, in <module>
>     Scripting.waf_entry_point(cwd, VERSION, wafdir)
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Scripting.py",
> line 103, in waf_entry_point
>     run_commands()
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Scripting.py",
> line 164, in run_commands
>     ctx=run_command(cmd_name)
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Scripting.py",
> line 155, in run_command
>     ctx.execute()
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Scripting.py",
> line 366, in execute
>     return execute_method(self)
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Build.py",
> line 106, in execute
>     self.execute_build()
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Build.py",
> line 113, in execute_build
>     self.compile()
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Tools/errcheck.py",
> line 124, in check_compile
>     ret=self.orig_compile()
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Build.py",
> line 184, in compile
>     raise Errors.BuildError(self.producer.error)
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Errors.py",
> line 25, in __init__
>     WafError.__init__(self,self.format_error())
>
> Build failed
>  -> task in '' failed (exit status 1):
>         {task 19312784: sphinx_build
> ndn-client.conf.rst,ndnsec-cert-dump.rst,ndnsec-cert-gen.rst,ndnsec-cert-install.rst,ndnsec-cert-revoke.rst,ndnsec-delete.rst,ndnsec-dsk-gen.rst,ndnsec-export.rst,ndnsec-get-default.rst,ndnsec-import.rst,ndnsec-key-gen.rst,ndnsec-list.rst,ndnsec-set-acl.rst,ndnsec-set-default.rst,ndnsec-sign-req.rst,ndnsec-unlock-tpm.rst,ndnsec.rst,tlvdump.rst,conf.py
> ->
> ndnsec.1,ndnsec-cert-dump.1,ndnsec-cert-gen.1,ndnsec-cert-revoke.1,ndnsec-cert-instal.1,ndnsec-delete.1,ndnsec-export.1,ndnsec-get-default.1,ndnsec-import.1,ndnsec-key-gen.1,ndnsec-list.1,ndnsec-set-acl.1,ndnsec-set-default.1,ndnsec-sign-req.1,ndnsec-unlock-tpm.1,ndnsec-validator.conf.5,tlvdump.1,ndn-client.conf.5}
> ['/usr/local/bin/sphinx-build', '-D', 'version=0.4.0-beta1', '-D',
> 'release=0.4.0-beta1', '-q', '-b', 'man', '-d',
> '/home/kim/ndn-cxx/build/docs/manpages/.doctrees',
> '/home/kim/ndn-cxx/docs', '/home/kim/ndn-cxx/build/docs/manpages']
>   File "./waf", line 165, in <module>
>         Scripting.waf_entry_point(cwd, VERSION, wafdir)
>   File
> "/home/kim/ndn-cxx/.waf-1.8.9-849024857bd41c3cf8e87dc01ecf79b0/waflib/Scripting.py",
> line 107, in waf_entry_point
>         Logs.error(e.msg)
>
> As I understand that there is some problem with python platform but I
> don't really understand how can I specify which version of python should be
> used. Can somebody explain me this?
>
> When I by force change the sphinx-build location in "build/c4che/_cache.py"
> (I do this just to check) and it builds ok.
>
> Best Regards,
> Alexander Ni
>
>
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20160211/6b39ac27/attachment.html>


More information about the Ndn-interest mailing list