From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14797 invoked by alias); 17 Jan 2013 15:38:16 -0000 Received: (qmail 12217 invoked by uid 48); 17 Jan 2013 15:37:57 -0000 From: "bryrober at cisco dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/56021] New: HAVE_STBLIB_H and HAVE_LIMITS_H not defined. Can't build gcc 3.2.1 Date: Thu, 17 Jan 2013 15:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: bryrober at cisco dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg01630.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56021 Bug #: 56021 Summary: HAVE_STBLIB_H and HAVE_LIMITS_H not defined. Can't build gcc 3.2.1 Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: blocker Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: bryrober@cisco.com I am using CentOS 4.8 and gcc3.4.6 to build a gcc 3.2.1 cross compiler for mipsisa32-elf (using binutils 2.13.1). After configuring I get the following error when issuing make -w all install 2>&1 | tee make.out on the command line. gcc -c -DHAVE_CONFIG_H -O2 -ffunction-sections -I. -I/home/bryrober/BRCM/gcc-3.2.1/libiberty/../include -W -Wall -Wtraditional -pedantic /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c:46: error: conflicting types for 'malloc' /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c:46: error: conflicting types for 'malloc' /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c: In function `code_for_qualifier': /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c:623: warning: implicit declaration of function `abort' /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c: In function `ada_demangle': /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c:1003: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c:1056: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c: In function `squangle_mop_up': /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c:1149: warning: implicit declaration of function `free' /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c: In function `demangle_qualified': /home/bryrober/BRCM/gcc-3.2.1/libiberty/cplus-dem.c:3282: warning: implicit declaration of function `atoi' If I fix this error I get a error in fib heap.c complaining about LONG_MIN undeclared which is defined in limits.h. Here is my configuration output /home/bryrober/BRCM/gcc-3.2.1/configure --target=mipsisa32-elf --prefix=/home/bryrober/BRCM/gnutools --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-gxx-include-dir=/home/bryrober/BRCM/gnutools/mipsisa32-elf/sys-include --host=i686-unknown-linux-gnu --with-headers=/usr/include -v 2>&1 | tee configure.out