Hi, I'm trying to build arm-elf-gcc --with-sysroot. I succeeded to build and install binutils before (worked out of the box) and now I'm tring to get a C compiler. If I did miss any documentation, any pointers appreciated! Builds aborted with "Link tests are not allowed after GCC_NO_EXECUTABLES" at some libdl (?) check. Some page in the internet suggested --disable-shared, so I added it to the configure options. Now building stops at: checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libiberty] Error 1 make[1]: Leaving directory `/usr/local/build/gcc/gcc-4.6.0-arm' If I understand correctly, it attempts to builb libiberty for my target platform? I don't need it. When I give `--disable-libiberty', I get an error earlier (that is, there is no rule to make target ../libiberty/libiberty.a or similar). It seems to work when I configure with --enable-libiberty, make until it aborts (as above), then configure in the same build dir with --disable-libiberty and re-run make. Now the probably needed ../libiberty/libiberty.a is still there and used for linking, but the no configure-target-libiberty executed and building works. So I think I need libiberty for building the host gcc (called the first and second stage compilers?), but not when building for my target. How do I do this correctly? Any hints welcome! Regards, Steffen ../gcc-4.6.0/configure \ --prefix=/usr/local/exp/gcc-4.6.0/ \ --enable-languages=c \ --target=arm-elf \ --program-prefix=arm-elf- \ --with-sysroot=/usr/local/build/gcc/sysroot/ \ --enable-interwork --enable-multilib \ --enable-target-optspace --with-float=soft \ --with-zlib=no \ --disable-libssp \ --disable-shared