
Hello, I'm trying to build Boost libraries from source (I want to use Boost.Python and Boost.Test, also I want to use a compiler other than my system one). I grabbed the boost_1_45_0.tar.bz2 and boost-jam-3.1.18.tgz tarballs. Built Jam by doing ./build.sh gcc and then copied the bjam executable to my ~/bin directory which is in $PATH. Then I went to the boost_1_45_0/tools/build/v2/example/hello directory, ran bjam, the example compiled and I was able to run it successfuly. I created ~/boost-build.jam file with boost-build /usr/home/oxyd/development/boost/boost_1_45_0/tools/build/v2 ; in it. Then I came back to the boost_1_45_0 directory. As per the instructions -- http://www.boost.org/doc/libs/1_45_0/more/getting_started/unix-variants.html... -- I ran bjam and got an error: ~/development/boost/boost_1_45_0 > bjam toolset=gcc stage Class top-level-target already defined zsh: abort bjam toolset=gcc stage I have only Googled a little info on this error -- in fact, the only useful hit is this: http://lists.boost.org/boost-build/2009/05/21793.php . I guess I can just as well provide the info asked for in that post: ~/development/boost/boost_1_45_0 > grep 'class top-level-target' Jamroot | wc -l 1 -- exactly one occurence of class top-level-target there. The only Jam-related file in the directory is Jamroot. Running with --debug-loading I get the lovely output that I attached to this mail. Additionally, I'm running FreeBSD 8.1-RELEASE, and I want to use GCC 4.5.2 installed from Ports (system compiler is GCC 4.2.1). Thanks for any thoughts on the issue, Ondra