|
Boost Users : |
From: Bernhard Fischer (rep.dot.nop_at_[hidden])
Date: 2007-06-16 13:10:25
On Wed, May 16, 2007 at 10:29:32AM -0600, David Abrahams wrote:
>
>on Tue May 15 2007, Bernhard Fischer <rep.dot.nop-AT-gmail.com> wrote:
>
>> On Mon, May 14, 2007 at 11:04:56PM -0600, David Abrahams wrote:
>>
>>>It's not your fault for following the pattern that was already there,
>>>but looking at the path to identify the compiler is suboptimal at
>>>best. We should be invoking the compiler using the SHELL function and
>>>asking it to tell us its version. See gcc.jam for an example.
>>
>> Does gcc.jam pickup CC and CXX env variables, btw?
>
>No.
>
>> I think that i had trouble to use the auto guessed toolset since
>> i want to use the CC and CXX and do not have gcc nor g++. I had to
>> create my own cc.jam, since for --with-toolset=cc i was unable to find
>> a corresponding jam file. CC and CXX both point to gcc executables of
>> the form gcc-4.2-suffix resp. g++-etc
>>
>> How would i use these compilers to build boost?
>
>Create a user-config.jam file in your home directory where you have
>
> import toolset.using ;
> using gcc : 4.2-<suffix> : <command that invokes g++-4.2-suffix> ;
>
>which might look just like:
>
> import toolset.using ;
> using gcc : 4.2-mysuf : g++-4.2-mysuf ;
>
>Then you can build with --toolset=gcc-4.2-mysuf
That didn't work out for me:
$ cat ~/user-config.jam
import toolset.using ;
using gcc : -4.3-HEAD : g++-4.3-HEAD ;
$ make distclean
$ which gcc-4.3-HEAD g++-4.3-HEAD jam bjam
/opt/gcc-4.3/bin/gcc-4.3-HEAD
/opt/gcc-4.3/bin/g++-4.3-HEAD
$ ./configure --prefix=/opt/boost-1.35.0 --with-toolset=gcc-4.3-HEAD
Building Boost.Jam with toolset gcc-4.3-HEAD... ./configure: line 199:
./bootstrap/jam0: No such file or directory
# try with plain gcc:
$ ./configure --prefix=/opt/boost-1.35.0 --with-toolset=gcc
Building Boost.Jam with toolset gcc... ./configure: line 199:
./bootstrap/jam0: No such file or directory
I must be doing something wrong..
For now i'm back to use my cc.jam, but IMHO it's a little bit odd that
one cannot specify the compiler one wants to use (resp. i can not).
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