Boost logo

Boost-Build :

Subject: Re: [Boost-build] Mixing toolsets
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2011-03-30 15:15:33


On Wed, Mar 30, 2011 at 7:06 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> AMDG
>
> On 03/30/2011 12:00 PM, Bo Jensen wrote:
>>
>> On Wed, Mar 30, 2011 at 6:37 PM, Steven Watanabe<watanabesj_at_[hidden]>
>>  wrote:
>>>
>>> On 03/30/2011 11:24 AM, Bo Jensen wrote:
>>>>
>>>> Is it possible to use different toolsets on targets within a project ?
>>>>
>>>> Here is what I want to do :
>>>>
>>>> 1) Build some library wit say gcc
>>>> 2) Link the lib from 1) into another target, but now build with intel
>>>>
>>>> I realize you can specify toolset in properties, but when I do that,
>>>> it will build all dependencies with the specified toolset, which
>>>> clearly is not what I want.
>>>>
>>>> Any hint to how to do it or other jam files doing the same,much
>>>> appreciated.
>>>>
>>>
>>> Does it work if you specify gcc in the requirements
>>> of the library and intel in the requirements of
>>> the other target?
>>>
>>> lib mylib : mylib.cpp :<toolset>gcc ;
>>> exe test : test.cpp mylib :<toolset>intel ;
>>>
>>
>> Thanks Steven, that lead me in the right direction. Above should work
>> just fine, the real problem is me not understanding how the syntax for
>> specifying multiple toolsets.
>>
>> Here is what I thought was correct (but is not) :
>>
>> Define multiple using statements in my user-config.jam, so both gcc
>> and intel-linux is defined.
>>
>
> That's supposed to work.
>
>> But if gcc is not defined first then it fails :
>>
>> gcc.compile.c++
>> bin/gcc/release/address-model-32/threading-multi/sulumnetc.o
>> /bin/sh: -ftemplate-depth-128: not found
>>
>> Clearly the toolset is not set up properly and I am sure it's my
>> fault, how should I set the toolset up in my user-config.jam ?
>>
>
> if
>
> using gcc : ... ;
> using intel : ... ;
>
> doesn't just work, then it's probably a bug.
> What exactly are the contents of your user-config.jam?
>
> In Christ,
> Steven Watanabe
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>

Here it goes :

# This is for new gcc-4.6.0
using gcc : : : <compileflags>"-O3" ;

# This is for intel 11
using intel-linux : : : <compileflags>"-wd278 -wd279 -wd1292 -wd858
-wd191 -wd981 -wd1628 -wd592 -wd1125 -gcc-name=gcc-4.2
-gxx-name=g++-4.2" ;

using boostbook
  : /home/bj/sulum/external/boost/tools/boostbook/docbook-xsl-1.73.2
  : /home/bj/sulum/external/boost/tools/boostbook/docbook-dtd-4.2
     ;

using quickbook
     : /usr/local/bin/quickbook
     ;

using xsltproc : /usr/bin/xsltproc ;
using doxygen : /usr/bin/doxygen ;
using fop : /home/bj/sulum/external/boost/tools/boostbook/fop-0.94/fop
: : /usr/ ;


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk