Message-ID: <20030317054804.12744.qmail@sina.com> From: lixz3545 To: djgpp AT delorie DOT com, cygwin AT sourceware DOT cygnus DOT com Cc: baosheng DOT li AT geahk DOT ge DOT com Subject: can't compile gcc for redhat linux targe MIME-Version: 1.0 Date: Mon, 17 Mar 2003 13:48:04 +0800 X-Mailer: SinaMail 3.0Beta (FireToad) X-Priority: 3 Hello: my configuration is: ../gcc-3.2.2/configure --prefix=/usr/gcc/linux --with-gnu-as=/usr/gcc/objdir/bin utils/i486-linux-as --with-headers=/usr/gcc/linux/objdir/i486-linux/include -- with-libs=/usr/gcc/glib/lib --target=i486-linux --host=sparc-sun-solaris2.8 --li bdir=/usr/gcc/linux/lib --with-gxx-include-dir=/usr/gcc/linux/include error: checking for uintptr_t... no checking whether the C compiler (/usr/gcc/linux/objdir/gcc/xgcc -B/usr/gcc/linux /objdir/gcc/ -B/usr/gcc/linux/i486-linux/bin/ -B/usr/gcc/linux/i486-linux/lib/ - isystem /usr/gcc/linux/i486-linux/include -O2 -g -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot creat e executables. make: *** [configure-target-libiberty] Error 1 detail information in config.log: /usr/gcc/objdir/binutils/i486-linux-ld: warning: ld-linux.so.2, needed by /lib/l ibc.so.6, not found (try using -rpath or -rpath-link) /lib/libc.so.6: undefined reference to `_dl_lazy AT GLIBC_2 DOT 1 DOT 1' /lib/libc.so.6: undefined reference to `_dl_dst_substitute AT GLIBC_2 DOT 1 DOT 1' /lib/libc.so.6: undefined reference to `_dl_out_of_memory AT GLIBC_2 DOT 2' I set LD_LIBRARY_PATH to ld-linux.so.2 path, no luck! any help really appreciate!!! ______________________________________ ===================================================================