Boost logo

Boost-Build :

Subject: [Boost-build] link rules and "piecemeal"
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2017-11-13 08:43:44


Hi all,

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.

kind regards

Thorsten


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