Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2008-08-29 11:22:14


on Thu Aug 28 2008, David Abrahams <dave-AT-boostpro.com> wrote:

> on Wed Aug 27 2008, Juergen Hunold <juergen.hunold-AT-ivembh.de> wrote:
>
>> On Wednesday 27 August 2008 21:53:53 David Abrahams wrote:
>>> Hi,
>>>
>>> I've been trying to run the Boost 1.35.0 tests with GCC on Suse Linux
>>> Enterprise Server 10/AMD64, and there are some failures that indicate we
>>> got something wrong somewhere.
>>
>> Wow. Thats old ;-))
>>
>>> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld
>>>: /zorak/sles/build/boost/bin.v2/libs/statechart/test/gcc-4.1.0/release/
>>> link-static/LibTestNormalLibTuTest.o:
>>> relocation R_X86_64_32 against `a local symbol' can not be used when
>>> making a shared object; recompile with -fPIC
>>>
>>> I assume that there's something wrong with what Boost.Build is doing
>>> here, but I'm at a loss as to how it might be fixed.
>>
>> Well, x86_64 gcc targets sometimes requires -fPIC even for static builds. So
>> add <cxxflags>-fPIC to your user config jam or the Jamfile for Boost.StateChart.
>> And do a full (!) recompile.
>
>
> Maybe I didn't understand how you intended that I add -fPIC. What I did
> was in /etc/site-config.jam:
>
> using gcc : : : <cxxflags>-fPIC ;
>
> Unfortunately, it still fails in exactly the same way.

Ping, anyone? Is there a way to set up a site-config so that all gcc
compiles get -fPIC?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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