Thread: [Bayes++] bjam Build question
Brought to you by:
mistevens
From: yon <yo...@ci...> - 2007-09-17 19:32:01
|
Hello, I am trying to rebuild Bayes++ using bjam (on my intel based mac running OS X 10.4.8), however I get the error below. Is bjam failing to find gcc? Can you provide any other advice? By "rebuild", I mean that I have built Bayes++ before on the same machine, and am now having isolated problems instantiating a formerly functional class in Bayes++, and thought somehow my compiled library may have gotten corrupted. Thank you, Yon [Mon Sep 17|yon|/Developer/YV-dev/Bayes++] bjam --v2 -sBOOST_ROOT="../ boost_1_33_1" /Developer/YV-dev/boost_1_33_1/tools/build/v2/build/feature.jam:431: in feature.validate-value-string from module feature error: "gcc" is not a known value of feature <toolset> error: legal values: /Developer/YV-dev/boost_1_33_1/tools/build/v2/build/property.jam:250: in validate1 from module property /Developer/YV-dev/boost_1_33_1/tools/build/v2/build/property.jam:273: in property.validate from module property /Developer/YV-dev/boost_1_33_1/tools/build/v2/tools/builtin.jam:176: in variant from module builtin project-root.jam:7: in modules.load from module Jamfile</Developer/YV- dev/Bayes++> /Developer/YV-dev/boost_1_33_1/tools/build/v2/build/project.jam:306: in load-jamfile from module project /Developer/YV-dev/boost_1_33_1/tools/build/v2/build/project.jam:68: in load from module project /Developer/YV-dev/boost_1_33_1/tools/build/v2/build/project.jam:164: in project.find from module project /Developer/YV-dev/boost_1_33_1/tools/build/v2/build-system.jam:136: in load from module build-system ../boost_1_33_1/tools/build/v2/kernel/modules.jam:259: in import from module modules ../boost_1_33_1/tools/build/v2/kernel/bootstrap.jam:153: in boost- build from module ../boost_1_33_1/boost-build.jam:12: in module scope from module |
From: Michael S. <ma...@mi...> - 2007-09-18 17:35:51
|
On Monday 17 September 2007 21:31, yon wrote: > Hello, > > I am trying to rebuild Bayes++ using bjam (on my intel based mac > running OS X 10.4.8), however I get the error below. Is bjam failing > to find gcc? Can you provide any other advice? Correct. You have to tell the build system that you have the 'gcc' toolset and any option that is requires. You have set BOOST_ROOT to I think you need to look in ../boost_1_33_1/tools/build/v2/user-config.jam You can also have a user-config.jam file in your home directory (whatever that may be on OS X). There is a short paragraph that direct you to do this in the Boost Build (v2) documentation... Configure Boost.Build to recognize the build resources (such as compilers and libraries) you have installed on your system. Open the user-config.jam file in the Boost.Build root directory and follow the instructions there to describe your toolsets and libraries, and, if necessary, where they are located. Michael -- ___________________________________ Michael Stevens Systems Engineering 34128 Kassel, Germany Phone/Fax: +49 561 5218038 Navigation Systems, Estimation and Bayesian Filtering http://bayesclasses.sf.net ___________________________________ |
From: yon <yo...@ci...> - 2007-09-19 20:11:33
|
Hello, Thanks for the bjam reminders, Michael. 4 targets failed during updating. I don't know if it is serious. The bjam output is below. Best, Yon [Wed Sep 19|yon|/Developer/YV-dev/Bayes++] bjam --v2 -sBOOST_ROOT="../ boost_1_33_1" ...patience... ...found 1014 targets... ...updating 53 targets... MkDir1 target MkDir1 target/BayesFilter MkDir1 target/BayesFilter/gcc MkDir1 target/BayesFilter/gcc/debug MkDir1 target/BayesFilter/gcc/debug/link-static gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/bayesFlt.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/bayesFltAlg.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/matSup.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/UdU.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/covFlt.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/infFlt.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/infRtFlt.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/itrFlt.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/SIRFlt.o BayesFilter/SIRFlt.hpp: In constructor 'Bayesian_filter::SIR_scheme::SIR_scheme(size_t, size_t, Bayesian_filter::SIR_random&)': BayesFilter/SIRFlt.hpp:231: warning: 'Bayesian_filter::SIR_scheme::resamples' will be initialized after BayesFilter/SIRFlt.hpp:227: warning: 'Bayesian_filter_matrix::DenseVec Bayesian_filter::SIR_scheme::wir' BayesFilter/SIRFlt.cpp:202: warning: when initialized here gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/UDFlt.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/unsFlt.o gcc.compile.c++ target/BayesFilter/gcc/debug/link-static/CIFlt.o gcc.archive target/BayesFilter/gcc/debug/link-static/libBayesFilter.a MkDir1 target/Simple MkDir1 target/Simple/gcc MkDir1 target/Simple/gcc/release gcc.compile.c++ target/Simple/gcc/release/simpleExample.o MkDir1 target/BayesFilter/gcc/release MkDir1 target/BayesFilter/gcc/release/link-static gcc.compile.c++ target/BayesFilter/gcc/release/link-static/bayesFlt.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/bayesFltAlg.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/matSup.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/UdU.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/covFlt.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/infFlt.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/infRtFlt.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/itrFlt.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/SIRFlt.o BayesFilter/SIRFlt.hpp: In constructor 'Bayesian_filter::SIR_scheme::SIR_scheme(size_t, size_t, Bayesian_filter::SIR_random&)': BayesFilter/SIRFlt.hpp:231: warning: 'Bayesian_filter::SIR_scheme::resamples' will be initialized after BayesFilter/SIRFlt.hpp:227: warning: 'Bayesian_filter_matrix::DenseVec Bayesian_filter::SIR_scheme::wir' BayesFilter/SIRFlt.cpp:202: warning: when initialized here gcc.compile.c++ target/BayesFilter/gcc/release/link-static/UDFlt.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/unsFlt.o gcc.compile.c++ target/BayesFilter/gcc/release/link-static/CIFlt.o gcc.archive target/BayesFilter/gcc/release/link-static/libBayesFilter.a gcc.link target/Simple/gcc/release/simple /usr/bin/ld: unknown flag: --strip-all collect2: ld returned 1 exit status "g++" -o "target/Simple/gcc/release/simple" "target/Simple/ gcc/release/simpleExample.o" "target/BayesFilter/gcc/release/link- static/libBayesFilter.a" -Wl,--strip-all ...failed gcc.link target/Simple/gcc/release/simple... MkDir1 target/PV MkDir1 target/PV/gcc MkDir1 target/PV/gcc/release gcc.compile.c++ target/PV/gcc/release/PV.o gcc.link target/PV/gcc/release/pv /usr/bin/ld: unknown flag: --strip-all collect2: ld returned 1 exit status "g++" -o "target/PV/gcc/release/pv" "target/PV/gcc/release/ PV.o" "target/BayesFilter/gcc/release/link-static/ libBayesFilter.a" -Wl,--strip-all ...failed gcc.link target/PV/gcc/release/pv... MkDir1 target/PV_SIR MkDir1 target/PV_SIR/gcc MkDir1 target/PV_SIR/gcc/release gcc.compile.c++ target/PV_SIR/gcc/release/PV_SIR.o gcc.link target/PV_SIR/gcc/release/pv_sir /usr/bin/ld: unknown flag: --strip-all collect2: ld returned 1 exit status "g++" -o "target/PV_SIR/gcc/release/pv_sir" "target/PV_SIR/ gcc/release/PV_SIR.o" "target/BayesFilter/gcc/release/link-static/ libBayesFilter.a" -Wl,--strip-all ...failed gcc.link target/PV_SIR/gcc/release/pv_sir... MkDir1 target/QuadCalib MkDir1 target/QuadCalib/gcc MkDir1 target/QuadCalib/gcc/release gcc.compile.c++ target/QuadCalib/gcc/release/QuadCalib.o gcc.link target/QuadCalib/gcc/release/quadcalib /usr/bin/ld: unknown flag: --strip-all collect2: ld returned 1 exit status "g++" -o "target/QuadCalib/gcc/release/quadcalib" "target/ QuadCalib/gcc/release/QuadCalib.o" "target/BayesFilter/gcc/release/ link-static/libBayesFilter.a" -Wl,--strip-all ...failed gcc.link target/QuadCalib/gcc/release/quadcalib... ...failed updating 4 targets... ...updated 49 targets... |