|
Boost-Build : |
From: Stjepan Rajko (stipe_at_[hidden])
Date: 2008-06-02 21:44:01
On Sat, May 31, 2008 at 2:25 AM, Vladimir Prus <ghost_at_[hidden]> wrote:
> On Saturday 31 May 2008 07:44:33 Stjepan Rajko wrote:
>>
>> 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.
>
Thanks for the suggestion - that unfortunately didn't work.
> 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.
>
This might be the problem. The gcc is FSF, but the ld is apple's.
This is where I'm inexperienced with the building process - I thought
that the system's ld should work just fine. I now tried building the
GNU binutils package using Fink, which is supposed to include ld but
for some reason it doesn't.
> 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?
Yes, both Apple's nm and FSF nm (I don't know whether there is a
difference) list a bunch of symbols.
>
> - Volodya
Thanks for trying to help me - I'll keep working on building an FSF
version of ld and see where that takes me.
Stjepan
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