I have essentially the same problem when building a biarch gcc (my goal is to 
compile i386 and amd64 on i386). I had a look into /usr/x86_64-linux-gnu/lib, 
lib32, and lib64:
-lib32 contains 32-bit libraries
-lib64 contains 64-bit libraries
-lib contains 64-bit libraries as well, they seem to be identical (but not 
symlinked) to those in lib64.
-the only libraries not identical in lib and lib64 are libc.so and 
libpthread.so: they should symlink to libc.so.N
 but they contain snippets of (ld) linker script(!!!).

Contents of /usr/x86_64-linux-gnu/lib/libc.so:
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /usr/x86_64-linux-gnu/lib/libc.so.6 
/usr/x86_64-linux-gnu/lib/libc_nonshared.a  AS_NEEDED ( 
/usr/x86_64-linux-gnu/lib/ld-linux-x86-64.so.2 ) )

Contents of /usr/x86_64-linux-gnu/lib/libpthread.so:
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /usr/x86_64-linux-gnu/lib/libpthread.so.0 
/usr/x86_64-linux-gnu/lib/libpthread_nonshared.a )

My guess for the cause is a faulty linker script or linker.

-- 
Error building powerpc64 cross compiler: 64 bit libc not found linking libgcc
https://bugs.launchpad.net/bugs/280681
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to