Boost logo

Boost-Build :

Subject: [Boost-build] error: Could not find parent for project at '../check/predef'
From: Laurent Thévenoux (lthevenoux_at_[hidden])
Date: 2018-08-08 09:07:01


Hi,

I'm trying to cross compile boost libraries, I've followed the steps described here:

  https://www.boost.org/doc/libs/1_67_0/more/getting_started/unix-variants.html,

i.e. step 5.2. Unfortunately, at step 5.2.4, I get the following error:

 $ b2 --build-dir=$PWD/../build toolset=gcc-k1 stage --debug-configuration
notice: found boost-build.jam at /work1/user/workspace/boost/boost_1_67_0/boost-build.jam
notice: loading Boost.Build from /work1/user/workspace/boost/boost_1_67_0/tools/build/src
notice: Searching '/etc' '/nfs/home/user' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src' '/usr/share/boost-build' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/kernel' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/util' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/tools' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/contrib' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in '/etc' '/nfs/home/user' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src' '/usr/share/boost-build' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/kernel' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/util' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/tools' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/contrib' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/.'.
notice: Searching '/nfs/home/user' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src' '/usr/share/boost-build' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/kernel' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/util' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/tools' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/contrib' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/.' for user-config configuration file 'user-config.jam'.
notice: Configuration file 'user-config.jam' not found in '/nfs/home/user' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src' '/usr/share/boost-build' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/kernel' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/util' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/tools' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/contrib' '/work1/user/workspace/boost/boost_1_67_0/tools/build/src/.'.
notice: Searching '..' for project-config configuration file 'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam' from '..'.
notice: will use 'k1-linux-g++' for gcc, condition <toolset>gcc-k1/<target-os>linux
notice: using gcc libraries :: <toolset>gcc-k1/<target-os>linux :: /work1/user/envs/buildroot/usr/local/k1-linux/bin /work1/user/envs/buildroot/usr/local/k1-linux/lib /work1/user/envs/buildroot/usr/local/k1-linux/lib32 /work1/user/envs/buildroot/usr/local/k1-linux/lib64
notice: using gcc archiver :: <toolset>gcc-k1/<target-os>linux :: /work1/user/envs/buildroot/usr/local/k1-linux/k1-linux/bin/ar
notice: using gcc ranlib :: <toolset>gcc-k1/<target-os>linux :: /work1/user/envs/buildroot/usr/local/k1-linux/k1-linux/bin/ranlib
warning: toolset gcc initialization: can not find tool windres
warning: initialized from ../project-config.jam:1
notice: using rc compiler :: <toolset>gcc-k1/<target-os>linux :: as
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: [lzma] Using pre-installed library
notice: [lzma] Condition
notice: [python-cfg] Configuring python...
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python"
notice: [python-cfg] include path: "/usr/include/python2.7"
notice: [python-cfg] library path: "/usr/lib/python2.7/config" "/usr/lib"
notice: [python-cfg] Checking for NumPy...
notice: [python-cfg] running command 'python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"'
notice: [python-cfg] NumPy enabled
/work1/user/workspace/boost/boost_1_67_0/libs/predef/check/../tools/check/predef.jam:46: Unescaped special character in argument $(language)::$(expression)
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:111: in load-parent from module project
error: Could not find parent for project at '../check/predef'
error: Did not find Jamfile.jam or Jamroot.jam in any parent directory.
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:464: in project.initialize from module project
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:948: in project.extension from module predef
/work1/user/workspace/boost/boost_1_67_0/libs/predef/check/../tools/check/predef.jam:20: in load from module predef
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/kernel/modules.jam:295: in import from module modules
/work1/user/workspace/boost/boost_1_67_0/libs/test/build/../../predef/check/predef.jam:17: in load from module predef
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/kernel/modules.jam:295: in modules.import from module modules
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:1069: in import from module Jamfile</work1/user/workspace/boost/boost_1_67_0/libs/test/build>
libs/test/build/Jamfile.v2:9: in modules.load from module Jamfile</work1/user/workspace/boost/boost_1_67_0/libs/test/build>
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:325: in load-jamfile from module project
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:64: in load from module project
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:89: in load-used-projects from module project
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:75: in load from module project
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build/project.jam:145: in project.find from module project
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/build-system.jam:618: in load from module build-system
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/kernel/modules.jam:295: in import from module modules
/work1/user/workspace/boost/boost_1_67_0/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module
/work1/user/workspace/boost/boost_1_67_0/boost-build.jam:17: in module scope from module

How can I solve this issue?

Here is the organization of my build dir:

/workspace/boost/
................/boost_1_67_0/ (boost srcs)
................/boost.build/ (b2 installation dir)
................/build/ (boost build dir)
................/project-config.jam (redefine the 'using gcc' rule to use my own compiler)

Do I need to configure a new toolset for my environment?

Regards,

Laurent Thévenoux [ http://www.kalray.eu/ ] Kalray S.A.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk