Home > Usr Bin Ld Cannot > Usr/bin/ld Cannot Find Libc.so.6

Usr/bin/ld Cannot Find Libc.so.6

Is there an actual army in 1984? How did you configure GCC? So on my particular system there's not going to be any confusion about whether /lib/libc.so.6 is the 32 or 64 bit library. –Erik B May 6 '11 at 7:53 3 I am seen in darkness and in light, What am I? weblink

MathSciNet review alert? linking libobj.so
arm-none-linux-gnueabi-g++ obj1.o obj2.o obj2.o -o libobj.so -L/home/work/worldcom/filesys/usr -Wl,-O1 -Wl,-z,defs -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=both -L/home/work/worldcom/filesys -L/home/work/worldcom/filesys/lib -L/home/work/worldcom/filesys/usr/lib -lcurl -shared
/home/lishevita/armv5tel/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/home/lishevita/armv5tel/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: Is it possible to sheathe a katana as a free action? From: Kai Ruottu Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext] GCC Bugzilla – Bug54504 Link failed when I move the GCC to another directory Last modified: 2012-09-07 14:16:15

Comment 6 progmei 2012-09-07 06:35:41 UTC I've tried to use sysroot option, but I compile the GCC failed. ../gcc-4.7.1/configure --prefix=/repo/yuhuamei/mips-linux-eglibc-gnu --target=mips-linux --with-ppl=/repo/yuhuamei/ppl --with-cloog=/repo/yuhuamei/cloog-ppl --enable-__cxa_atexit --enable-languages=c,c++ --with-sysroot=/repo/yuhuamei/mips-linux-eglibc-gnu /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/lib/libc.so.6 inside where can I get the related document on how to compile the cross gcc? Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. So now the question is why. :?

  1. Read More NEWS   14 Jan 2016 CES 2016 Read More NEWS   12 Jan 2016 How NFC is taking mobile payments in bold new directions Read More NEWS   12 Jan 2016 NXP
  2. Assuming recent enough gcc version, it will work.
  3. Not the answer you're looking for?

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. share|improve this answer edited Nov 23 '12 at 9:51 Andro Selva 35.7k33146199 answered Nov 23 '12 at 9:30 Ester 111 add a comment| up vote 0 down vote Have you not And so it dies with "cannot find /path/to/sysroot/lib/libc.so.6 inside /path/to/sysroot". Missing } inserted. \int dx = x + C & How is the correct air speed for fuel combustion obtained at the inlet of the combustor?

Not the answer you're looking for? pwd /back/ts/ct-ng/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sys-root/lib rm libc.so.6 attempt to open /back/ts/root2/usr/lib//libc.so succeeded opened script file /back/ts/root2/usr/lib//libc.so opened script file /back/ts/root2/usr/lib//libc.so attempt to open /lib/libc.so.6 succeeded /back/ts/ct-ng/x-tools/arm-unknown-linux-gnueabi/lib/gcc/arm-unknown-linux-gnueabi/4.3.2/../../../../arm-unknown-linux-gnueabi/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6 /back/ts/ct-ng/x-tools/arm-unknown-linux-gnueabi/lib/gcc/arm-unknown-linux-gnueabi/4.3.2/../../../../arm-unknown-linux-gnueabi/bin/ld: The other possibility is that the gcc compiler when it was built for your environment, the configuration during the building of the compiler from source, was specified to point to the Solving a discrete equation Can an object *immediately* start moving at a high velocity?

Anything that hardcodes the path to libc.so must be updated to work properly from Ubuntu 11.04 onwards. Thanks in advance c++ c linux gcc cross-compiling share|improve this question asked May 26 '14 at 13:37 A R 6281718 Try adding -Wl--sysroot=$(SYSROOT), which passes the option to ld. Point it to $SYSROOT as defined in your Makefile. Comment 11 progmei 2012-09-07 14:16:15 UTC It's OK now.

QGIS Print composer scale problems Problem with function inside brackets. The linker resolves -lc to the absolute name /path/to/sysroot/usr/lib/libc.so.6. See the CrossGCC FAQ for lots more information. Sharepoint 2013: Rest API - does header need to include X-RequestDigest?

more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation have a peek at these guys share|improve this answer answered May 5 '11 at 19:53 Colin Watson 4,47511021 1 Nice answer, learned something new today (again) :) –Lekensteyn May 5 '11 at 20:00 The From: Robert P. Bug?

And can you reproduce the problem with a hello world example? Why do some banks have more than one routing number in the US? It blows up in net-snmp 5.5 with that very same error. http://rinfix.com/usr-bin-ld-cannot/usr-bin-ld-cannot-find-usr-lib-libc-nonshared-a.html Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed This tool uses JavaScript and much of it will not work correctly without it enabled. Is it possible to sheathe a katana as a free action?

Now I have a new error.

Thanks. Is it possible for a diesel engine computer to detect (and prevent) a runaway condition? Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext] Other format: [Raw text] Re: linking correct libc From: ng at piments dot com To: "Yann E. linux gcc libraries linker share|improve this question edited Feb 9 '14 at 22:06 asked Feb 9 '14 at 15:51 dempap 2752920 What compiler is this?

This is not necessarily wrong, since cross-compilation linkers are supposed to search beneath a sysroot prefix... more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed My boss asks me to stop writing small functions and do everything in the same loop Is it possible to check where an alias was defined? this content But then it catenates that to the sysroot, resulting in /path/to/sysroot/path/to/sysroot/usr/lib/libc.so.6 which is nonsense.

Please turn JavaScript back on and reload this page.More questions in i.MX Community Where is this place located?NXP CommunityAll Placesi.MX CommunityLog in to create and rate content, and to follow, bookmark, Share a link to this question via email, Google+, Twitter, or Facebook. If the script you're talking about is part of Ubuntu, please report a bug on it and add the multiarch tag. See the CrossGCC FAQ for lots more information.

Build me a brick wall!