cross-compiling linker error linking for ppc860...

Paul Chitescu konq-e@mail.kde.org
Tue, 17 Dec 2002 14:30:33 +0200


> main.o(.text+0x580): relocation truncated to fit: R_PPC_REL24
KCookieServer::KCookieServer(void)

This suggests you are (incorrectly) linking against host's libraries or one
of the libraries was already built with i386 code inside (happened to me
once). Sometimes ld crashes, sometimes gives a message similar to the one
above, sometimes 'successfully' links the wrong library.

Please check the config.log and the .la files to see what libraries are
detected and used while linking.

You said nothing about the binutils version used. AFAIK at least some
versions of binutils 2.11 may result in undefined references to c++ code in
libraries. I strongly suggest using (or building) a binutils 2.12 based
toolchain.


Paul Chitescu

--
 Paul Chitescu
 pchitescu@null.ro   http://pchitescu.null.ro/   ICQ:22641673
 Any spammers will be painfully squeezed into /dev/null