|
Boost Users : |
From: Dick Bridges (dbridges_at_[hidden])
Date: 2006-02-14 01:42:10
I can't seem to get bjam v2 to build multiple library versions.
The O/S is:
# uname -a
Linux myhost 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386
GNU/Linux
First I untarD boost_1_33_1.tar.bz2 to /home/dick and followed the
instructions for building bjam. Then I copied bjam to /home/dick/bin.
Next I modified
/home/dick/boost_1_33_1/tools/build/v2/example/hello/user-config.jam
adding the 3.4.4.x86 and 3.3.arm versions like so:
<mod>
# Configure specific gcc version, giving alternative name to use
# using gcc : 3.2 : g++-3.2 ;
using gcc : 3.4.4.x86 ;
using gcc : 3.3.arm : <fake CR>
/opt/crosstool/arm-softfloat-linux-gnu/<fake CR>
gcc-3.3.3-glibc-2.3.2<fake CR>
/bin/arm-softfloat-linux-gnu-c++ ;
</mod>
Then (because I'm confused) I copied the modified user-config.jam to
/home/dick/boost_1_33_1 as well.
The version seems to be correct.
cd /home/dick/boost_1_33_1
# ~/bin/bjam --v2 --version
Boost.Build V2 (Milestone 10)
Boost.Jam 03.01.11
The example/hello build seems to work.
cd /home/dick/boost_1_33_1/tools/build/v2/example/hello
# ~/bin/bjam gcc-3.4.4.x86 gcc-3.3.arm
...found 13 targets...
...updating 9 targets...
MkDir1 bin
MkDir1 bin/gcc-3.4.4.x86
MkDir1 bin/gcc-3.4.4.x86/debug
gcc.compile.c++ bin/gcc-3.4.4.x86/debug/hello.o
gcc.link bin/gcc-3.4.4.x86/debug/hello
MkDir1 bin/gcc-3.3.arm
MkDir1 bin/gcc-3.3.arm/debug
gcc.compile.c++ bin/gcc-3.3.arm/debug/hello.o
gcc.link bin/gcc-3.3.arm/debug/hello
...updated 9 targets...
Now I hit a brick wall. I've tried setting both
BOOST_BUILD_PATH and BOOST_ROOT to both
/home/dick/boost_1_33_1/tools/build/v2 and
/home/dick/boost_1_33_1.
If I try
cd /home/dick/boost_1_33_1
# ~/bin/bjam gcc-3.4.4.x86 gcc-3.3.arm install
I get
<msg>
don't know how to make gcc-3.4.4.x86
don't know how to make gcc-3.3.arm
</msg>
If I try
cd /home/dick/boost_1_33_1/tools/build/v2
# ~/bin/bjam gcc-3.4.4.x86 gcc-3.3.arm install
I get <msg>
notice: could not find main target install
notice: assuming it's a name of file to create
/home/dick/boost_1_33_1/tools/build/v2/build/project.jam:680: in
attribute
warning: rulename $($(project).attributes).get expands to empty string
/home/dick/boost_1_33_1/tools/build/v2/build/project.jam:690: in
project.target
/home/dick/boost_1_33_1/tools/build/v2/build-system.jam:256: in load
/home/dick/boost_1_33_1/tools/build/v2/kernel/modules.jam:259: in import
/home/dick/boost_1_33_1/tools/build/v2/kernel/bootstrap.jam:153: in
boost-build
/home/dick/boost_1_33_1/tools/build/v2/boost-build.jam:2: in module
scope
/home/dick/boost_1_33_1/tools/build/v2/build/project.jam:680: in
project.attribute
warning: rulename $($(project).attributes).get expands to empty string
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:200: in
object(project-target)@3.__init__
/home/dick/boost_1_33_1/tools/build/v2/kernel/class.jam:92: in new
/home/dick/boost_1_33_1/tools/build/v2/build/project.jam:690: in
project.target
/home/dick/boost_1_33_1/tools/build/v2/build-system.jam:256: in load
/home/dick/boost_1_33_1/tools/build/v2/kernel/modules.jam:259: in import
/home/dick/boost_1_33_1/tools/build/v2/kernel/bootstrap.jam:153: in
boost-build
/home/dick/boost_1_33_1/tools/build/v2/boost-build.jam:2: in module
scope
/home/dick/boost_1_33_1/tools/build/v2/build/project.jam:680: in
project.attribute
warning: rulename $($(project).attributes).get expands to empty string
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:219: in get
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:281: in
targets-to-build
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:250: in
object(project-target)@3.generate
/home/dick/boost_1_33_1/tools/build/v2/build-system.jam:267: in load
/home/dick/boost_1_33_1/tools/build/v2/kernel/modules.jam:259: in import
/home/dick/boost_1_33_1/tools/build/v2/kernel/bootstrap.jam:153: in
boost-build
/home/dick/boost_1_33_1/tools/build/v2/boost-build.jam:2: in module
scope
/home/dick/boost_1_33_1/tools/build/v2/build/project.jam:680: in
project.attribute
warning: rulename $($(project).attributes).get expands to empty string
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:219: in get
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:282: in
targets-to-build
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:250: in
object(project-target)@3.generate
/home/dick/boost_1_33_1/tools/build/v2/build-system.jam:267: in load
/home/dick/boost_1_33_1/tools/build/v2/kernel/modules.jam:259: in import
/home/dick/boost_1_33_1/tools/build/v2/kernel/bootstrap.jam:153: in
boost-build
/home/dick/boost_1_33_1/tools/build/v2/boost-build.jam:2: in module
scope
/home/dick/boost_1_33_1/tools/build/v2/build/project.jam:680: in
project.attribute
warning: rulename $($(project).attributes).get expands to empty string
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:219: in get
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:281: in
targets-to-build
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:250: in
object(project-target)@3.generate
/home/dick/boost_1_33_1/tools/build/v2/build-system.jam:267: in load
/home/dick/boost_1_33_1/tools/build/v2/kernel/modules.jam:259: in import
/home/dick/boost_1_33_1/tools/build/v2/kernel/bootstrap.jam:153: in
boost-build
/home/dick/boost_1_33_1/tools/build/v2/boost-build.jam:2: in module
scope
/home/dick/boost_1_33_1/tools/build/v2/build/project.jam:680: in
project.attribute
warning: rulename $($(project).attributes).get expands to empty string
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:219: in get
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:282: in
targets-to-build
/home/dick/boost_1_33_1/tools/build/v2/build/targets.jam:250: in
object(project-target)@3.generate
/home/dick/boost_1_33_1/tools/build/v2/build-system.jam:267: in load
/home/dick/boost_1_33_1/tools/build/v2/kernel/modules.jam:259: in import
/home/dick/boost_1_33_1/tools/build/v2/kernel/bootstrap.jam:153: in
boost-build
/home/dick/boost_1_33_1/tools/build/v2/boost-build.jam:2: in module
scope
don't know how to make install
...found 1 target...
...can't find 1 target...
</msg>
Apologies for all the error messages but I'm so lost I don't even know
what can be snipped and what is meaningful. I'd be very
grateful if someone could point me in the right direction.
Regards,
Dick Bridges
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net