From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13532 invoked by alias); 31 Aug 2005 15:34:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13513 invoked by uid 48); 31 Aug 2005 15:34:05 -0000 Date: Wed, 31 Aug 2005 15:36:00 -0000 From: "bart dot vanassche at gmail dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20050831153403.23656.bart.vanassche@gmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug other/23656] New: Cross-compilation with newlib fails in libiberty X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg03606.txt.bz2 List-Id: 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