While attempting to generate a cross-compiler, I got a build error in libiberty/strsignal.c, because newlib has a strsignal() definition but libiberty does not test for the strsignal() declaration in the newlib headers.
####################################### $PREFIX kernel=... (2.4.31 Linux kernel sources) combined=... (tree with gcc-3.4.4 and newlib-1.13.0 sources combined) export PREFIX=/home/bart/cross export KERNELARCH=m68k export TARGET=m68k-amiga-linux export HOST=i686-pc-linux-gnu mkdir -p $PREFIX/$TARGET/include cd $PREFIX/$TARGET/include || exit $? ln -s $kernel/include/linux . ln -s $kernel/include/asm-generic . ln -s $kernel/include/asm-$KERNELARCH asm $combined/configure \ --disable-checking \ --disable-mudflap \ --disable-nls \ --disable-shared \ --enable-__cxa_atexit \ --enable-languages=c,c++ \ --enable-threads=single \ --prefix=$PREFIX \ --target=$TARGET \ --with-local-prefix=$PREFIX \ --with-newlib \ --with-sysroot=$PREFIX/$TARGET \ -- Summary: Cross-compilation with newlib fails in libiberty Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bart dot vanassche at gmail dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: m68k-amiga-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23656