Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Ubuntu 16.04 #442

Closed
sszwed opened this issue Jul 14, 2017 · 3 comments
Closed

Support for Ubuntu 16.04 #442

sszwed opened this issue Jul 14, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@sszwed
Copy link

sszwed commented Jul 14, 2017

I am not able to build latest stable version (0.5.0.62) on Ubuntu 16.04.

Build output (after first fail with the same exception):

[  0%] Built target json_spirit
[ 21%] Built target cryptlib
[ 21%] Built target gtest
[ 22%] Built target gtest_main
[ 24%] Built target _mongoose
[ 24%] Built target nscp_protobuf
[ 26%] Built target plugin_api
[ 28%] Built target NRPEServer
[ 28%] Built target expression_parser
[ 29%] Built target nscp_json_pb
[ 30%] Built target settings_manager
[ 33%] Built target nscp
[ 34%] Built target copy_files
[ 35%] Built target nscp_lua_pb
[ 36%] Built target lua_nscp
[ 37%] Built target LUAScript
[ 38%] Built target GraphiteClient
[ 40%] Built target PythonScript
[ 41%] Built target SimpleCache
[ 42%] Built target NSClientServer
[ 44%] Built target CheckMKClient
[ 45%] Built target CollectdClient
[ 47%] Built target CommandClient
[ 48%] Built target Scheduler
[ 49%] Built target CheckExternalScripts
[ 50%] Built target SamplePluginSimple
[ 52%] Built target NRPEClient
[ 53%] Built target SyslogClient
[ 53%] Built target nscpcrypt
[ 54%] Built target NSCAClient
[ 55%] Built target NRDPClient
[ 55%] Built target CauseCrashes
[ 58%] Built target where_filter
[ 59%] Built target perfconfig_parser
[ 60%] Built target CheckNet
[ 62%] Built target CheckHelpers
[ 63%] Built target CheckLogFile
[ 65%] Built target CheckSystemUnix
[ 67%] Built target WEBServer
[ 69%] Built target NSCAServer
[ 71%] Built target CheckNSCP
[ 72%] Built target SMTPClient
[ 73%] Built target SimpleFileWriter
[ 74%] Built target NSCPClient
[ 75%] Built target CheckMKServer
[ 75%] Generate RST documentation source
Segmentation fault (core dumped)
docs/CMakeFiles/generate_doc_sources.dir/build.make:85: recipe for target 'docs/CMakeFiles/generate_doc_sources' failed
make[2]: *** [docs/CMakeFiles/generate_doc_sources] Error 139
CMakeFiles/Makefile2:3264: recipe for target 'docs/CMakeFiles/generate_doc_sources.dir/all' failed
make[1]: *** [docs/CMakeFiles/generate_doc_sources.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Execute of command from this file is failing: docs/CMakeLists.txt. In my system failing command looks like this:

../build/nscp client --module PythonScript --no-stderr --settings dummy --log error --log oneline --load-all --log error --define "/paths:module-path=./modules" -- execute --script scripts/python/docs.py --input docs --output ext/docs

In Ubuntu 14.04 build works fine, so I tied to build there binary and run it in Ubuntu 16.04. It turn out that I missed only two dependencies: libprotobuf and libboost. I updated first package and I still was able to build nscp. After update of libboost I've got the same exception as in Ubuntu 16.04.

@mickem
Copy link
Owner

mickem commented Jul 15, 2017

Sadly this seems to be due to a bug in boost 1.58: https://bugs.launchpad.net/ubuntu/+source/boost1.58/+bug/1600345 (introduced here boostorg/python@fe24ab9 ) so nit sure how to work around it...

@mickem mickem closed this as completed in da2a4ce Jul 15, 2017
@jepler
Copy link

jepler commented Jul 17, 2017

Here's how the LinuxCNC project worked around the boost execfile bug, since we needed to be portable to affected versions: LinuxCNC/linuxcnc@b3ec66b

@mickem
Copy link
Owner

mickem commented Jul 17, 2017

thanks I implemeneted a similar solution... so if you get latest it shuld build...

@mickem mickem added the bug label Jul 28, 2017
@mickem mickem self-assigned this Jul 28, 2017
@mickem mickem added this to the 0.5.1 milestone Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants