Boost logo

Boost-Build :

Subject: Re: [Boost-build] link rules and "piecemeal"
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-11-15 05:41:56


AMDG

On 11/13/2017 01:43 AM, Thorsten Ottosen via Boost-build wrote:
>
> I was trying to figure out some very strange linking behavior where
> symbols where missing.
>
> I finally tracked it down in tools/darwin.jam. I don't know if this is a
> problem on other platforms.
>
> Anyway, at the bottom it says
>
> actions piecemeal achieve
> {
> ...
> }
>
> So what happened for me was that the link command was too long and so
> bjam generated two commands because of "piecemeal". The end result was
> that the second invocation overwrote the lib file, resulting in a lib
> file with only 10% of the compiled object files.
>
> I fixed it by adding --abbreviate-paths to the command line, but it
> would have been nice if the tool would give an error instead of silently
> generating two incompatible achieve commands.
>

  The rm needs to be split off into a separate action,
so that piecemeal will actually work.

In Christ,
Steven Watanabe


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