Boost logo

Boost Users :

Subject: Re: [Boost-users] Cross compiling
From: Yepez, Esteban (esyepez_at_[hidden])
Date: 2009-01-30 01:27:36


steve-

yeah i understand. However, I don't know how to tell the last stage to use my embedded compiler. That is the following command fails:
echo_run ./bootstrap/jam0 -f build.jam --toolset=tile "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" clean

because it doesn't recognize the toolset=tile. For some reason, the makefile doesn't go back and set the BOOST_JAMCC=tile-gcc
________________________________________
From: boost-users-bounces_at_[hidden] [boost-users-bounces_at_[hidden]] On Behalf Of Steven Watanabe [watanabesj_at_[hidden]]
Sent: Thursday, January 29, 2009 7:35 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Cross compiling

AMDG

Yepez, Esteban wrote:
> An update…
> I found the link that tells me how to build Bjam, but I run into a
> problem on the last part of the script:
> if test -x "./bootstrap/jam0" ; then
> if test "${BJAM_UPDATE}" != "update" ; then
> echo "bjam update = update"
> # echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET
> "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" clean
> echo_run ./bootstrap/jam0 -f build.jam --toolset=tile
> "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" clean
> fi
> echo "no update, just build"
> # echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET
> "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@"
> echo_run ./bootstrap/jam0 -f build.jam --toolset=tile
> "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@"
> Fi
> Because I have cross-compiled, I am not able to execute build.jam on
> the host. However when I try to execute on the target, the compiler is
> only on the host and the toolset I defined is not recognized! Yes, I
> copied the entire src directory into the target.

To build bjam you must use a compiler for the host because bjam has to
run on the host. There's no way around this.

In Christ,
Steven Watanabe

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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