This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Need some help with a possible bug
- From: George R Goffe <grgoffe at yahoo dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Wed, 23 Apr 2014 20:24:16 -0700 (PDT)
- Subject: Need some help with a possible bug
- Authentication-results: sourceware.org; auth=none
- Reply-to: George R Goffe <grgoffe at yahoo dot com>
Hi,
I'm trying to build the latest gcc and am getting a message from the process "collect2: error: ld returned 1 exit status" for this library /usr/lsd/Linux/lib/libgmp.so. Here's the full msg: "/usr/lsd/Linux/lib/libgmp.so: could not read symbols: File in wrong format"
When I use the file command on this library, I get this:
file libgmp.so.10.2.0
libgmp.so.10.2.0: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked,
BuildID[sha1]=c8ca89cca80d669102f5b3e8e077b5d00f47bf78, not stripped
I'm running Fedora 19 X86_64 and, as far as I know, building for this architecture. I just built the latest gmp, mpc, mpfr hoping that that was the problem but I still get the msg.
Here's a more elaborate snip of the build log. I have the complete log if it's needed.
Thanks,
George...
file libgmp.so.10.2.0
libgmp.so.10.2.0: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked,
BuildID[sha1]=c8ca89cca80d669102f5b3e8e077b5d00f47bf78, not stripped
make[8]: Leaving directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/32/libjava/classpath/native/jni/midi-alsa'
Making all in java-math
make[8]: Entering directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/32/libjava/classpath/native/jni/java-math'
/bin/bash ../../../libtool --tag=CC --mode=compile
/tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/ -B/usr/ls
mv -f .deps/maxloc0_4_i4.Tpo .deps/maxloc0_4_i4.Plo
/bin/bash ./libtool --tag=CC --mode=compile
/tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/ -B/usr/lsd/Linu
libtool: compile: /tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/l
libtool: compile: /tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/l
libtool: compile: /tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-shared-libgcc -B/tools/gcc/obj-i686-pc-linux-gnu/./gcc -nostdinc++
-L/tools/gcc/obj-i686-pc-linux-gnu/x86_64-unknown-linux-gnu/libs
mv -f .deps/tsan_symbolize_addr2line_linux.Tpo
.deps/tsan_symbolize_addr2line_linux.Plo
/bin/bash ./libtool --tag=CC --mode=compile
/tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/ -B/usr/lsd/Linu
libtool: compile: /tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/l
libtool: compile: /tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/l
mv -f .deps/gnu_java_math_GMP.Tpo .deps/gnu_java_math_GMP.Plo
/bin/bash ../../../libtool --tag=CC --mode=link
/tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/ -B/usr/lsd/L
libtool: link: /tools/gcc/obj-i686-pc-linux-gnu/./gcc/xgcc
-B/tools/gcc/obj-i686-pc-linux-gnu/./gcc/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/bin/
-B/usr/lsd/Linux/x86_64-unknown-linux-gnu/lib/
/usr/lsd/Linux/lib/libgmp.so: could not read symbols: File in wrong
format
collect2: error: ld returned 1 exit status
make[8]: *** [libjavamath.la] Error 1
make[8]: Leaving directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/32/libjava/classpath/native/jni/java-math'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/32/libjava/classpath/native/jni'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/32/libjava/classpath/native'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/32/libjava/classpath'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/32/libjava'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory
`/sdc1/exphome/clipper/export/home/tools/gcc/obj-i686-pc-linux-gnu/
x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: *** Waiting for unfinished jobs....
In trying to find what architecture ld is I went through this chain:
filew ld
/bin/ld: symbolic link to `/etc/alternatives/ld'
file /etc/alternatives/ld
/etc/alternatives/ld: symbolic link to `/usr/bin/ld.bfd'
file /usr/bin/ld.bfd
/usr/bin/ld.bfd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=efd090312fe0b79eca8d5a559ef0a57faa038015, stripped