[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Issues] Wrong path to library in libc.a



Hey Andrew,

 

The default sysroot path is hardcoded into the linker at build time. You can use the âsysroot=<path> option to gcc/g++ to specify the correct sysroot if it has moved.

 

If the path is correct, see if the libraries were built correctly: run the `file` command and check the architecture of libc.so.6.

 

--

Warm regards,

Sayan Chaliha.

 

May the force be with you

 

From: issues-bounces@xxxxxxxxxx [mailto:issues-bounces@xxxxxxxxxx] On Behalf Of Andrew Rose
Sent: Monday, January 13, 2014 7:46 AM
To: Carlos O'Donell
Cc: issues@xxxxxxxxxx
Subject: Re: [Issues] Wrong path to library in libc.a

 


))! I'am ask question gnu LD developer. What he answer:

 

"

On Sun, Jan 12, 2014 at 10:28:39AM +0400, Andrew Rose wrote:

I think it's a bug


Yes, in your libc.so.  Take a look at that file with an editor.

-- 
Alan Modra
Australia Development Lab, IBM"



I try other linker, with same result

 

 

 

 

 

On 13 ÑÐÐ. 2014 Ð., at 5:43, Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx> wrote:

 

On Sun, Jan 12, 2014 at 3:43 PM, Andrew Rose <roseandrew@xxxxxx> wrote:

Good day! I build own toolchan under mips architecture

Script to create toolchan:

http://pastebin.com/RxwS09iT

Toolchan build great.

 

Building is the easy part. Testing and validating are the hard parts.

 

This looks a configuration error with your linker likely looking in

$SYSROOT + $SYSROOT/lib/libc.so.6 for the libraries (do an strace to

see what full paths it's trying to open).

 

You need to fix your configuration.

 

Cheers,

Carlos.

_______________________________________________
Issues mailing list
Issues@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/issues