Boost logo

Boost Users :

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


________________________________________
From: boost-users-bounces_at_[hidden] [boost-users-bounces_at_[hidden]] On Behalf Of Vladimir Prus [vladimir_at_[hidden]]
Sent: Friday, January 30, 2009 12:08 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Cross compiling

Yepez, Esteban wrote:

> the problem is that I don't know how to tell jam to use my embedded compiler when it tries to
> generate build.jam
>
> sh ./build.sh

When building bjam, with "./build.sh", you don't need to use your embedded compiler. bjam is purely
host binary, it does not know anything about the compiler that will be used later.

> Yes, initially, I had modified the build.sh and set BOOST_JAM_CC=tile-gcc. But like you said, I
> want to use the host compiler in the first stage

Yes, so you build bjam for the host.

> and the target compiler to do the last bit.
>
> So I still get an error because it doesn't pick up the embedded compiler tile-gcc

After you've build bjam for the host, you follow instructions at:

        http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html

which shows both where to specify the compiler command, and how to request that this
compiler be used. Did you try those instructions?

>> THESE INSTRUCTIONS TELL YOU TO INDICATE AN ALTERNATIVE TOOLSET. HOW DO YOU CREATE A TOOLSET. THAT IS I WANT IT TO PICK UP A CC THAT IS NOT CURRENTLY SUPPORTED.

- Volodya

_______________________________________________
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