Boost logo

Boost :

From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-05-14 10:49:25


Richard Hadsell wrote:

> Richard Hadsell wrote:
>> I am trying to build Boost for G++ 32-bit applications on an Opteron
>> system running Linux Fedora Core 3. This is my command:
>>
>> bjam --user-config=user-config.LINUX_AMD32 threading=multi instruction-set=opteron
>> address-model=32 variant=release,debug,profile --stagedir=stageA32 stage
>>
>> ...
>>
>> It recognized the other options I requested, but not 'address-model=32'.
>>
> No reply? I realize that I can add '-m32' to the flags in my
> user-config file, but I was hoping that someone will fix the build system.

I presume you have already checked SVN HEAD, or 1.35, and the problem is still
here?

For the record, SVN HEAD version of tools/build/v2/tools/gcc.jam has this:

        flags gcc OPTIONS <architecture>x86/<address-model>32 : -m32 ;
        flags gcc OPTIONS <architecture>x86/<address-model>64 : -m64 ;

I suspect you version might not have the first line, so if the compiler
default is 64-bit, you'd always get 64-bit binary; you might want to
add the first line to your gcc.jam

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk