This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: cross gcc linking errors


Kai,

This may be of limited use to the newsgroup (although ...?), but which file
are you talking about, containing the "libc.so script" ?

Regards,

Philippe.


> -----Original Message-----
> From:	Kai Ruottu [SMTP:kai.ruottu@luukku.com]
> Sent:	donderdag 4 april 2002 21:15
> To:	ludovico.basili@poste.it
> Cc:	crossgcc@sources.redhat.com
> Subject:	Re: cross gcc linking errors
> 
> "ludovico.basili@poste.it" wrote:
> > 
> > Hello,
> > I have built a cross compiler for the powerpc target on a
> > i686 host.
> > 
> > when I try to cross-compile a test program, the gcc fails
> > with the message:
> > [cc@lub cc]$ powerpc-linux-gnu-gcc test.c
> > /lib/libc.so.6: could not read symbols: Invalid operation
> 
>  This is the native one, please check your 'libc.so' script
> for the 'powerpc-linux-gnu' target. Basically you should have
> edited it after installing it on the cross-host. Just remove
> all absolute paths from the 'GROUP' definition...
> 
> 	/* GNU ld script
> 	   Use the shared library, but some functions are only in
> 	   the static library, so try that secondarily.  */
> 	GROUP ( libc.so.6 libc_nonshared.a )
> 
> > I have copied the ppc libraries (/usr/lib,/headers
> > respectively into
> > /usr/local/powerpc-linux-gnu/lib
> > /usr/local/powerpc-linux-gnu/sys-include
> 
>  The 'sys-include' is a weird place for the target headers,
> please use the standard 'include'...
> 
>  And you should have ALL libs in the 'lib', not only the '.a'
> ones and the 'lib*.so*' ones, but the 'ld.so.1' too... And
> have done quite a lot work with rearranging the symlinks...
> 
> Cheers, Kai
> 
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ,
> http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to
> crossgcc-unsubscribe@sources.redhat.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]