From: Renegade M. <dra...@sp...> - 2001-09-11 02:15:12
|
I still have not been able to get glibc to compile. It compiles for about 20 minutes or so on my PII-450, and then gives these errors: /usr/local/sh-linux/lib/gcc-lib/sh-linux/3.0/../../../../sh-linux/bin/ld: cannot find -lgcc_s_ collect2: ld returned 1 exit status make[2]: *** [/home/build/build-glibc/iconvdata/ISO8859-1.so] Error 1 make[2]: Leaving directory `/home/build/glibc-2.2.2/iconvdata' make[1]: *** [iconvdata/others] Error 2 make[1]: Leaving directory `/home/build/glibc-2.2.2' make: *** [all] Error 2 make: Leaving directory `/home/build/build-glibc' I tried building glibc with the following commands. I have also tried the configure with various combinations of removing the "--target=${TARGET}" and adding "--disable-debug" and "--disable-profile" echo "CFLAGS := -ml -m4 -O \$(CFLAGS) ASFLAGS-.o := -ml LDFLAGS-relocatable := -ml crts-predefined=yes build-programs=no CC=${TARGET}-gcc -ml -m4 RANLIB=${TARGET}-ranlib AS=${TARGET}-gcc -ml LD=${TARGET}-ld -ml AR=${TARGET}-ar BUILD_CC=gcc" > configparms CC="${TARGET}-gcc -ml -m4" ../glibc-2.2.2/configure \ --host=${TARGET} --build=${HOST} --target=${TARGET} \ --prefix=${PREFIX} --enable-add-ons \ --with-headers=${PREFIX}/linux/include \ 2>&1 | tee -a configure.out make -w all \ 2>&1 | tee -a make.out Any assistance would once again be most appreciated. In case it helps, the command that make was trying to execute when it hit the error was as follows: sh-linux-gcc -ml -m4 -shared -o /home/build/build-glibc/iconvdata/ISO8859-1.so -Wl,-dynamic-linker=/usr/local/sh-linux/lib/ld-linux.so.2 -B/home/build/build-glibc/csu/ -L/home/build/build-glibc -L/home/build/build-glibc/math -L/home/build/build-glibc/elf -L/home/build/build-glibc/dlfcn -L/home/build/build-glibc/nss -L/home/build/build-glibc/nis -L/home/build/build-glibc/rt -L/home/build/build-glibc/resolv -L/home/build/build-glibc/crypt -L/home/build/build-glibc/linuxthreads -Wl,-rpath-link=/home/build/build-glibc:/home/build/build-glibc/math:/home/b uild/build-glibc/elf:/home/build/build-glibc/dlfcn:/home/build/build-glibc/n ss:/home/build/build-glibc/nis:/home/build/build-glibc/rt:/home/build/build- glibc/resolv:/home/build/build-glibc/crypt:/home/build/build-glibc/linuxthre ads -Wl,--whole-archive /home/build/build-glibc/iconvdata/iso8859-1.os /home/build/build-glibc/libc.so -Wl,--no-whole-archive |