Boost logo

Boost-Build :

Subject: Re: [Boost-build] distcc and local linking issues
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-02-05 11:48:20


Dean Michael Berris wrote:

> On Thu, Feb 5, 2009 at 2:57 PM, Vladimir Prus <ghost_at_[hidden]> wrote:
>> On Thursday 05 February 2009 03:19:56 Dean Michael Berris wrote:
>>> Hi Guys,
>>>
>>> I've tried using distcc in place of the gcc compiler and I keep
>>> finding this linking error.
>>
>> Which linking error?
>>
>
> Something pertaining to missing the implementations of the standard
> library functions...
>
>>> I understand that linking is done locally
>>> from where I'm building the executables, but are there any caveats
>>> that I should be looking out for?
>>>
>>> I'm running the build in a virtual box running Ubuntu 8.10 (32-bit)
>>> and another desktop running distcc with Ubuntu 8.04 (64-bit) having
>>> the same compiler run with -m32 (to ensure 32-bit builds).
>>>
>>> My user-config.jam looks like this:
>>>
>>> using gcc : 4.2 : distcc : <cxxflags>-m32 ;
>>>
>>> Am I doing anything wrong?
>>
>> You probably need <linkflags>-m32 as well, though it's a blue-sky guess. If that
>> does not help, I would recommend simplifying your testcase as much as possible,
>> and see if building with distcc directly works -- I did not ever try this 32/64-bit
>> distcc setup. You might also want to try icecream -- which might do something different
>> in such mixed environment.
>>
>
> Apparently not only is <linkflags>-m32 required, so is <linkflags>-lstdc++ :D

Ooh! Are you actually using "distcc" as compilation command? I though I need to
use either "distcc gcc" or "distcc g++", with the latter being the right one.

- Volodya


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