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

Unable to compile cmake-js-tut-04-boost-module example #58

Closed
0181532686cf4a31163be0bf3e6bb6732bf opened this issue Sep 9, 2016 · 4 comments

Comments

@0181532686cf4a31163be0bf3e6bb6732bf

Hi, I have to use cmake for my module building and I've ran into some errors. I've decided to try an example and it also failed. Here's the log:

lyssdod@lynn /storage/work $ git clone https://github.com/cmake-js/cmake-js-tut-04-boost-module
Cloning into 'cmake-js-tut-04-boost-module'...
remote: Counting objects: 47, done.
remote: Total 47 (delta 0), reused 0 (delta 0), pack-reused 47
Unpacking objects: 100% (47/47), done.
Checking connectivity... done.
lyssdod@lynn /storage/work $ cd cmake-js-tut-04-boost-module/
lyssdod@lynn /storage/work/cmake-js-tut-04-boost-module $ npm install
npm WARN package.json cmake-js-tut-04-boost-module@1.0.0 No repository field.
npm WARN package.json cmake-js-tut-04-boost-module@1.0.0 No license field.
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
-
> cmake-js-tut-04-boost-module@1.0.0 install /storage/work/cmake-js-tut-04-boost-module
> cmake-js compile

info TOOL Using Ninja generator, because ninja is available.
info TOOL Using c++11 compiler standard.
info DIST Downloading distribution files.
http DIST   - http://nodejs.org/dist/v4.4.1/SHASUMS256.txt
http DIST   - http://nodejs.org/dist/v4.4.1/node-v4.4.1-headers.tar.gz
info CMD CONFIGURE
info RUN cmake "/storage/work/cmake-js-tut-04-boost-module" --no-warn-unused-cli -G"Ninja" -DCMAKE_JS_VERSION="3.3.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/storage/work/cmake-js-tut-04-boost-module/build/Release" -DCMAKE_JS_INC="/home/lyssdod/.cmake-js/node-x64/v4.4.1/include/node;/storage/work/cmake-js-tut-04-boost-module/node_modules/nan" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="4.4.1" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-std=c++11"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Require Boost Libs module started.
-- Required Boost version: >= 1.58.0
-- Required libs: coroutine
-- Boost Lib Installer starting.
-- Invoking boost-lib to download Boost >= 1.58.0.
info BOOST Searching for Boost >= 1.58.0 in '/home/lyssdod/.cmake-js/boost'.
info BOOST Boost found in '/home/lyssdod/.cmake-js/boost/1.61.0'.
-- Boost path: /home/lyssdod/.cmake-js/boost/1.61.0
-- Boost version: 1.61.0
-- Boost library postfix: 1_61
-- b2 executable found.
-- Generating b2 args.
--  variant=release
-- b2 args: link=static;threading=multi;runtime-link=shared;--build-dir=Build;stage;--stagedir=stage;-d+2;--hash;variant=release;--layout=tagged;-sNO_BZIP2=1;cxxflags=-fPIC;cxxflags=-std=c++11;toolset=gcc-5.4
-- Resolving Boost library: coroutine
-- Setting up external project to build coroutine.
-- Setting boost_coroutine dependent on boost_context
-- Setting boost_coroutine dependent on boost_system
-- Resolving Boost library: context
-- Setting up external project to build context.
-- Setting boost_context dependent on boost_thread
-- Resolving Boost library: system
-- Setting up external project to build system.
-- Resolving Boost library: thread
-- Setting up external project to build thread.
-- Setting boost_thread dependent on boost_chrono
-- Resolving Boost library: chrono
-- Setting up external project to build chrono.
-- Setting boost_chrono dependent on boost_system
-- Boost libs scheduled for build: boost_coroutine;boost_context;boost_system;boost_thread;boost_chrono
-- Generating headers ...
CMake Error at node_modules/boost-lib/cmake/BoostLibInstaller.cmake:185 (message):
  b2 error:


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build/feature.jam:494:
  in feature.validate-value-string from module feature

  error: "none" is not a known value of feature <optimization>

  error: legal values: "off" "speed" "space"


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build/property.jam:276:
  in validate1 from module property


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build/property.jam:302:
  in property.validate from module property


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/tools/builtin.jam:381:
  in variant from module builtin

  /usr/share/boost-build/site-config.jam:9: in modules.load from module
  site-config

  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build-system.jam:249:
  in load-config from module build-system

  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build-system.jam:351:
  in load-configuration-files from module build-system

  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build-system.jam:524:
  in load from module build-system


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/kernel/modules.jam:295:
  in import from module modules


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/kernel/bootstrap.jam:139:
  in boost-build from module

  /home/lyssdod/.cmake-js/boost/1.61.0/boost-build.jam:17: in module scope
  from module



Call Stack (most recent call first):
  node_modules/boost-lib/cmake/BoostLib.cmake:19 (boost_lib_installer)
  CMakeLists.txt:16 (require_boost_libs)


-- Configuring incomplete, errors occurred!
See also "/storage/work/cmake-js-tut-04-boost-module/build/CMakeFiles/CMakeOutput.log".
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/storage/work/cmake-js-tut-04-boost-module/build"
info CMD CONFIGURE
info RUN cmake "/storage/work/cmake-js-tut-04-boost-module" --no-warn-unused-cli -G"Ninja" -DCMAKE_JS_VERSION="3.3.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/storage/work/cmake-js-tut-04-boost-module/build/Release" -DCMAKE_JS_INC="/home/lyssdod/.cmake-js/node-x64/v4.4.1/include/node;/storage/work/cmake-js-tut-04-boost-module/node_modules/nan" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="4.4.1" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-std=c++11"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Require Boost Libs module started.
-- Required Boost version: >= 1.58.0
-- Required libs: coroutine
-- Boost Lib Installer starting.
-- Invoking boost-lib to download Boost >= 1.58.0.
info BOOST Searching for Boost >= 1.58.0 in '/home/lyssdod/.cmake-js/boost'.
info BOOST Boost found in '/home/lyssdod/.cmake-js/boost/1.61.0'.
-- Boost path: /home/lyssdod/.cmake-js/boost/1.61.0
-- Boost version: 1.61.0
-- Boost library postfix: 1_61
-- b2 executable found.
-- Generating b2 args.
--  variant=release
-- b2 args: link=static;threading=multi;runtime-link=shared;--build-dir=Build;stage;--stagedir=stage;-d+2;--hash;variant=release;--layout=tagged;-sNO_BZIP2=1;cxxflags=-fPIC;cxxflags=-std=c++11;toolset=gcc-5.4
-- Resolving Boost library: coroutine
-- Setting up external project to build coroutine.
-- Setting boost_coroutine dependent on boost_context
-- Setting boost_coroutine dependent on boost_system
-- Resolving Boost library: context
-- Setting up external project to build context.
-- Setting boost_context dependent on boost_thread
-- Resolving Boost library: system
-- Setting up external project to build system.
-- Resolving Boost library: thread
-- Setting up external project to build thread.
-- Setting boost_thread dependent on boost_chrono
-- Resolving Boost library: chrono
-- Setting up external project to build chrono.
-- Setting boost_chrono dependent on boost_system
-- Boost libs scheduled for build: boost_coroutine;boost_context;boost_system;boost_thread;boost_chrono
-- Generating headers ...
CMake Error at node_modules/boost-lib/cmake/BoostLibInstaller.cmake:185 (message):
  b2 error:


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build/feature.jam:494:
  in feature.validate-value-string from module feature

  error: "none" is not a known value of feature <optimization>

  error: legal values: "off" "speed" "space"


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build/property.jam:276:
  in validate1 from module property


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build/property.jam:302:
  in property.validate from module property


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/tools/builtin.jam:381:
  in variant from module builtin

  /usr/share/boost-build/site-config.jam:9: in modules.load from module
  site-config

  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build-system.jam:249:
  in load-config from module build-system

  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build-system.jam:351:
  in load-configuration-files from module build-system

  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/build-system.jam:524:
  in load from module build-system


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/kernel/modules.jam:295:
  in import from module modules


  /home/lyssdod/.cmake-js/boost/1.61.0/tools/build/src/kernel/bootstrap.jam:139:
  in boost-build from module

  /home/lyssdod/.cmake-js/boost/1.61.0/boost-build.jam:17: in module scope
  from module



Call Stack (most recent call first):
  node_modules/boost-lib/cmake/BoostLib.cmake:19 (boost_lib_installer)
  CMakeLists.txt:16 (require_boost_libs)


-- Configuring incomplete, errors occurred!
See also "/storage/work/cmake-js-tut-04-boost-module/build/CMakeFiles/CMakeOutput.log".
ERR! OMG Process terminated: 1

npm ERR! Linux 4.5.2-aufs
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.4.1
npm ERR! npm  v2.14.20
npm ERR! code ELIFECYCLE
npm ERR! cmake-js-tut-04-boost-module@1.0.0 install: `cmake-js compile`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cmake-js-tut-04-boost-module@1.0.0 install script 'cmake-js compile'.
npm ERR! This is most likely a problem with the cmake-js-tut-04-boost-module package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cmake-js compile
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cmake-js-tut-04-boost-module
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls cmake-js-tut-04-boost-module
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /storage/work/cmake-js-tut-04-boost-module/npm-debug.log

@0181532686cf4a31163be0bf3e6bb6732bf

It seems that's a Gentoo-specific issue (I'm using Gentoo): openwrt/packages#1912

@am11
Copy link
Contributor

am11 commented Sep 14, 2016

Seems like a known ModularBoost-on-Gentoo issue, one that can be fixed like: http://stackoverflow.com/a/23027570/863980.

@0181532686cf4a31163be0bf3e6bb6732bf

I know, that's why I'm opened this issue — b2 is being called from inside cmake-js and I can't change its parameters from outside.

am11 added a commit to am11/boost-lib that referenced this issue Sep 14, 2016
On Gentoo Linux, the OOTB Boost configuration file has some invalid
options which breaks b2 execution. The official ways is to ignore the
site configuration file.

Fix cmake-js#3
Fix cmake-js/cmake-js#58
am11 added a commit to am11/boost-lib that referenced this issue Sep 14, 2016
On Gentoo Linux, the OOTB Boost configuration file has some invalid
options which breaks b2 execution. The official (prescribed) way is to
ignore the site configuration file.

Source http://lists.boost.org/boost-users/2014/04/81846.php

Fix cmake-js#3
Fix cmake-js/cmake-js#58
@unbornchikken
Copy link
Member

The fix is present in boost-lib master. I'm gonna release it later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants