Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-05-31 05:25:57

On Saturday 31 May 2008 07:44:33 Stjepan Rajko wrote:
> Hello,
> I am trying to use boost build with GCC 4.3 (built using Fink) on OS
> X, and running into problems. At first, I was facing issues similar
> to those explained here:
> I got around that by butchering gcc.jam (removing the lines
> introducing the offending options), and eventually got to a point
> where I can build a simple executable. However, when the build
> process includes a library that is to be linked into the executable, I
> get e.g.:
> ld: in /Development/boost/bin.v2/libs/signals/build/gcc-4.3/debug/link-static/libboost_signals-gcc43-d-1_35.a,
> archive has no table of contents

For a quick check, can you find this code in gcc.jam:
actions piecemeal archive
    "$(.AR)" $(AROPTIONS) rc "$(<)" "$(>)"

and change it to

actions piecemeal archive
    "$(.AR)" $(AROPTIONS) src "$(<)" "$(>)"

That is, adding the 's' option.

If that fails to work, we need more details.

Is this Apple's gcc or FSF's gcc? If this FSF's gcc, is 'ld' an FSF's gcc, or Apple's gcc?
I think if you're using FSF's gcc you better use FSF's ld too, so make sure the 'ld' found
in PATH is the FSF's ld.

Can you do

  nm /Development/boost/bin.v2/libs/signals/build/gcc-4.3/debug/link-static/libboost_signals-gcc43-d-1_35.a

and tell if that produce any output. In particular, are any symbols listed?

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at