This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
--with-ld breakage for me.
- From: "Loisel, Sebastien" <loisel at amazon dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Wed, 20 Aug 2003 17:36:33 -0700
- Subject: --with-ld breakage for me.
I've been unsuccesful at compiling gcc 3.3 and 3.4 with --with-ld=/usr/local/glibc-2.2.3/lib/ld-linux.so.2. I know that ld-2.3.2.do works because I've used it to link some c programs with -Wl,--dynamic-linker=/usr/local/glibc-2.2.3/lib/ld-linux.so.2 and I checked my linkage with ldd. (Note: the 2.2.3 in the path is a typo I made when I chose the install directory. The actual glibc that's sitting in there is 2.3.2.)
The error message I get is very weird:
----------8<-------------
(...)
make[2]: Entering directory `/home/loisel/gcc-3.3.1/gcc'
for d in libgcc; do \
if [ -d $d ]; then true; else /bin/sh ./mkinstalldirs $d; fi; \
done
mkdir libgcc
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/loisel/gcc-3.3.1/gcc/xgcc -B/home/loisel/gcc-3.3.1/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I. -I./. -I./config -I./../include -DL_muldi3 -c ./libgcc2.c -o libgcc/./_muldi3.o
-m: error while loading shared libraries: -m: cannot open shared object file: No such file or directory
collect2: ld returned 127 exit status
make[2]: *** [libgcc/./_muldi3.oS] Error 1
make[2]: Leaving directory `/home/loisel/gcc-3.3.1/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/loisel/gcc-3.3.1/gcc'
make: *** [all-gcc] Error 2
----------8<-------------
I entered the directory and typed the copy-pasted the failing compile, but it succeeded. Then I typed make again, and I got this:
----------8<-------------
make[2]: Entering directory `/home/loisel/gcc-3.3.1/gcc'
for d in libgcc; do \
if [ -d $d ]; then true; else /bin/sh ./mkinstalldirs $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
-m: error while loading shared libraries: -m: cannot open shared object file: No such file or directory
collect2: ld returned 127 exit status
make[2]: *** [libgcc/./_muldi3.oS] Error 1
make[2]: Leaving directory `/home/loisel/gcc-3.3.1/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/loisel/gcc-3.3.1/gcc'
make: *** [all-gcc] Error 2
----------8<-------------
I get substantially the same error messages with 3.3.1 and 3.4. What am I doing wrong?
Thanks,
Sebastien Loisel