Hi all, I've got a problem in building a cross compiler for an IBM powerpc. I successefully built the binutils (versione 2.13.92) and installed them under the ~/cross_compiler/Sources/install directory. I've then built the glibc 2.3.2 library using a minimal gcc build and installed it under my ~/cross_compiler/Sources/inst_glibc directory. I've finally tried to build the real fully-featured gcc (version 3.3) specifying the new built glibc as target libraries. The process runs for a while but it stops when it checks if the xgcc works. Looking at the ~/cross_compiler/Sources/build-real-gcc/powerpc-linux/libiberty/config.log I've noticed the compiler complain for some missing libraries. This is a snippet of the problem: [lapo@localhost libiberty]$ pwd /home/lapo/cross_compiler/Sources/build-real-gcc/powerpc-linux/libiberty [lapo@localhost libiberty]$ /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/xgcc -B/home/lapo/cross_compiler/Sources/build-real-gcc/gcc/ -B/home/lapo/cross_compiler/Sources/install/powerpc-linux/bin/ -B/home/lapo/cross_compiler/Sources/install/powerpc-linux/lib/ -isystem /home/lapo/cross_compiler/Sources/install/powerpc-linux/include -o conftest -O2 -g -O2 conftest.c Reading specs from /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/specs Configured with: ../gcc-3.3/configure --prefix=/home/lapo/cross_compiler/Sources/install --target=powerpc-linux --with-local-prefix=/home/lapo/cross_compiler/Sources/install --enable-thread=posix --with-gnu-as --with-gnu-ld --with-as=/home/lapo/cross_compiler/Sources/install/bin/powerpc-linux-as --with-ld=/home/lapo/cross_compiler/Sources/install/bin/powerpc-linux-ld --enable-languages=c,c++ --with-cpu=powerpc --with-sysroot=/home/lapo/cross_compiler/Sources/inst_glib --with-headers=/home/lapo/cross_compiler/Sources/inst_glib/include --with-libs=/home/lapo/cross_compiler/Sources/inst_glib/lib Thread model: posix gcc version 3.3 /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/cc1 -quiet -v -iprefix /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/../lib/gcc-lib/powerpc-linux/3.3/ -isystem /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/include -isystem /home/lapo/cross_compiler/Sources/install/powerpc-linux/bin/include -isystem /home/lapo/cross_compiler/Sources/install/powerpc-linux/lib/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix -isystem /home/lapo/cross_compiler/Sources/install/powerpc-linux/include conftest.c -quiet -dumpbase conftest.c -auxbase conftest -g -O2 -O2 -version -o /home/lapo/tmp/ccqQ4Fzu.s ignoring nonexistent directory "/home/lapo/cross_compiler/Sources/install/powerpc-linux/bin/include" ignoring nonexistent directory "/home/lapo/cross_compiler/Sources/install/powerpc-linux/lib/include" ignoring nonexistent directory "/home/lapo/cross_compiler/Sources/install/powerpc-linux/include" GNU C version 3.3 (powerpc-linux) compiled by GNU C version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk). GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32002 ignoring nonexistent directory "/home/lapo/cross_compiler/Sources/build-real-gcc/lib/gcc-lib/powerpc-linux/3.3/include" ignoring nonexistent directory "/home/lapo/cross_compiler/Sources/build-real-gcc/lib/gcc-lib/powerpc-linux/3.3/../../../../powerpc-linux/sys-include" ignoring nonexistent directory "/home/lapo/cross_compiler/Sources/build-real-gcc/lib/gcc-lib/powerpc-linux/3.3/../../../../powerpc-linux/include" ignoring nonexistent directory "/home/lapo/cross_compiler/Sources/install/lib/gcc-lib/powerpc-linux/3.3/include" ignoring nonexistent directory "/home/lapo/cross_compiler/Sources/install/powerpc-linux/include" #include "..." search starts here: #include <...> search starts here: /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/include /home/lapo/cross_compiler/Sources/install/powerpc-linux/sys-include End of search list. /home/lapo/cross_compiler/Sources/install/bin/powerpc-linux-as -mppc -V -Qy -o /home/lapo/tmp/ccgdwyZP.o /home/lapo/tmp/ccqQ4Fzu.s GNU assembler version 2.13.92 (ppc-linux) using BFD version 2.13.92 20030602 /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/collect2 --eh-frame-hdr -V -Qy -m elf32ppclinux -dynamic-linker /lib/ld.so.1 -o conftest /home/lapo/cross_compiler/Sources/install/powerpc-linux/lib/crt1.o /home/lapo/cross_compiler/Sources/install/powerpc-linux/lib/crti.o /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/crtbegin.o -L/home/lapo/cross_compiler/Sources/build-real-gcc/gcc -L/home/lapo/cross_compiler/Sources/install/powerpc-linux/lib -L/home/lapo/cross_compiler/Sources/install/lib/gcc-lib/powerpc-linux/3.3 -L/home/lapo/cross_compiler/Sources/install/lib/gcc-lib/powerpc-linux/3.3/../../../../powerpc-linux/lib /home/lapo/tmp/ccgdwyZP.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/crtsavres.o /home/lapo/cross_compiler/Sources/build-real-gcc/gcc/crtend.o /home/lapo/cross_compiler/Sources/install/powerpc-linux/lib/crtn.o /home/lapo/cross_compiler/Sources/install/bin/powerpc-linux-ld: warning: ld.so.1, needed by /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6, not found (try using -rpath or -rpath-link) /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol_skip@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_start_profile@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_check_map_versions@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_mcount@xxxxxxxxx' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_get_origin@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_dst_substitute@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_debug_state@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_init@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_dst_count@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_signal_error@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_r_debug@xxxxxxxxx' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_map_object_deps@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_unload_cache@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_relocate_object@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_catch_error@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_lookup_symbol_skip@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_lookup_symbol@GLIBC_PRIVATE' /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6: undefined reference to `_dl_map_object@GLIBC_PRIVATE' GNU ld version 2.13.92 20030602 Supported emulations: elf32ppclinux elf32ppc elf32ppcsim collect2: ld returned 1 exit status It seems to look for the file ld.so.1, needed by /home/lapo/cross_compiler/Sources/inst_glib/lib/libc.so.6. But the file is in the same durectory as for libc.so.6 [lapo@localhost libiberty]$ file /home/lapo/cross_compiler/Sources/inst_glib/lib/ld.so.1 /home/lapo/cross_compiler/Sources/inst_glib/lib/ld.so.1: symbolic link to ld-2.3.2.so [lapo@localhost libiberty]$ file /home/lapo/cross_compiler/Sources/inst_glib/lib/ld-2.3.2.so /home/lapo/cross_compiler/Sources/inst_glib/lib/ld-2.3.2.so: ELF 32-bit MSB shared object, PowerPC or cisco 4500, version 1 (SYSV), not stripped I've also tried not using the --with-sysroot option at all when I configured the gcc, with no luck. Can somebody help me in this problem. Thanks. Lapo