This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/56021] New: HAVE_STBLIB_H and HAVE_LIMITS_H not defined. Can't build gcc 3.2.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]