views:

34

answers:

0

Hello,

I'm trying to build any of these and get various errors from Bjam. Configuration: Ubuntu 10.04 LTS, g++ 4.4.3, Intel Core 2 Duo CPU, Boost 1.44. I'm not familiar with Bjam; will appreciate any help. For Boost.Task:

./bjam toolset=gcc architecture=x86 instruction-set=i686 --with-task install

results in:

error: Duplicate name of actual target:<p/media/boot/home/sdaniele/Technion/boost_1_44_0/lib>libboost_system.so.1.44.0
error: previous virtual target { common%common.copy-libboost_system.so.1.44.0.SHARED_LIB { gcc%gcc.link.dll-libboost_system.so.1.44.0.SHARED_LIB { gcc%gcc.compile.c++-error_code.o.OBJ { error_code.cpp.CPP } } } }
error: created from ./install-proper-lib-shared-universe
error: another virtual target { common%common.copy-libboost_system.so.1.44.0.SHARED_LIB { gcc%gcc.link.dll-libboost_system.so.1.44.0.SHARED_LIB { gcc%gcc.compile.c++-error_code.o.OBJ { error_code.cpp.CPP } } } }
error: created from ./install-proper-lib-shared-universe
error: added properties: <context>ucontext
error: removed properties: <context>fcontext_i386_sysv_elf_gas
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/build/virtual-target.jam:490: in actualize-no-scanner from module object(file-target)@1070
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/build/virtual-target.jam:135: in object(file-target)@1070.actualize from module object(file-target)@1070
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/build-system.jam:748: in load from module build-system
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/kernel/modules.jam:283: in import from module modules
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/kernel/bootstrap.jam:142: in boost-build from module
/home/sdaniele/Technion/boost_1_44_0/boost-build.jam:17: in module scope from module

for Boost.Fiber:

./bjam toolset=gcc architecture=x86 instruction-set=i686 --with-fiber install

results in:

/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/build/virtual-target.jam:1066: in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <p/media/boot/home/sdaniele/Technion/boost_1_44_0/lib>libboost_system.a
error: previous virtual target { common%common.copy-libboost_system.a.STATIC_LIB { gcc%gcc.archive-libboost_system.a.STATIC_LIB { gcc%gcc.compile.c++-error_code.o.OBJ { error_code.cpp.CPP } } } }
error: created from ./install-proper-lib-static
error: another virtual target { common%common.copy-libboost_system.a.STATIC_LIB { gcc%gcc.archive-libboost_system.a.STATIC_LIB { gcc%gcc.compile.c++-error_code.o.OBJ { error_code.cpp.CPP } } } }
error: created from ./install-proper-lib-static
error: added properties: <context>ucontext
error: removed properties: <context>fcontext_i386_sysv_elf_gas
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/build/virtual-target.jam:490: in actualize-no-scanner from module object(file-target)@31473
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/build/virtual-target.jam:135: in object(file-target)@31473.actualize from module object(file-target)@31473
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/build-system.jam:748: in load from module build-system
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/kernel/modules.jam:283: in import from module modules
/home/sdaniele/Technion/boost_1_44_0/tools/build/v2/kernel/bootstrap.jam:142: in boost-build from module
/home/sdaniele/Technion/boost_1_44_0/boost-build.jam:17: in module scope from module

For Boost.Context:

./bjam toolset=gcc architecture=x86 instruction-set=i686 --with-context install

results in:

In file included from ./boost/system/config.hpp:14,
                 from ./boost/system/error_code.hpp:14,
                 from ./boost/system/system_error.hpp:14,
                 from libs/context/src/context_fc_posix.cpp:14:
./boost/system/api_config.hpp:28:5: error: #error user defined BOOST_POSIX_API or BOOST_WINDOWS_API not supported
libs/context/src/context_fc_posix.cpp: In static member function ‘static boost::contexts::context boost::contexts::context::create(void (*)(void*), void*, size_t)’:
libs/context/src/context_fc_posix.cpp:49: error: no matching function for call to ‘boost::system::error_code::error_code(int&, const boost::system::error_category& (&)())’
./boost/system/error_code.hpp:316: note: candidates are: boost::system::error_code::error_code(int, const boost::system::error_category&)
./boost/system/error_code.hpp:315: note:                 boost::system::error_code::error_code()
./boost/system/error_code.hpp:311: note:                 boost::system::error_code::error_code(const boost::system::error_code&)
libs/context/src/context_fc_posix.cpp: In static member function ‘static boost::contexts::context boost::contexts::context::create(void (*)(void*), const boost::contexts::context&, void*, size_t)’:
libs/context/src/context_fc_posix.cpp:77: error: no matching function for call to ‘boost::system::error_code::error_code(int&, const boost::system::error_category& (&)())’
./boost/system/error_code.hpp:316: note: candidates are: boost::system::error_code::error_code(int, const boost::system::error_category&)
./boost/system/error_code.hpp:315: note:                 boost::system::error_code::error_code()
./boost/system/error_code.hpp:311: note:                 boost::system::error_code::error_code(const boost::system::error_code&)
./boost/system/error_code.hpp: At global scope:
./boost/system/error_code.hpp:214: warning: ‘boost::system::posix_category’ defined but not used
./boost/system/error_code.hpp:215: warning: ‘boost::system::errno_ecat’ defined but not used
./boost/system/error_code.hpp:216: warning: ‘boost::system::native_ecat’ defined but not used

Daniel