This is the mail archive of the gcc@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]

libiberty/fibheap.c, LONG_MIN, and powerpc-eabisim


I just tried building current mainline, a cross from i686-pc-linux-gnu to
powerpc-eabisim, using --with-newlib.  The libiberty build is failing with

if [ x"-fPIC" != x ]; then \
  /home/pme/build/build-2002-06-13-ppc/gcc/xgcc -B/home/pme/build/build-2002-06-13-ppc/gcc/ -nostdinc -B/home/pme/build/build-2002-06-13-ppc/powerpc-eabisim/newlib/ -isystem /home/pme/build/build-2002-06-13-ppc/powerpc-eabisim/newlib/targ-include -isystem /home/pme/src/unified/newlib/libc/include -B/home/pme/build/install-2002-06-13-ppc/powerpc-eabisim/bin/ -B/home/pme/build/install-2002-06-13-ppc/powerpc-eabisim/lib/ -isystem /home/pme/build/install-2002-06-13-ppc/powerpc-eabisim/include -L/home/pme/build/build-2002-06-13-ppc/ld -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I/home/pme/src/unified/libiberty/../include  -W -Wall -Wtraditional -pedantic -fPIC /home/pme/src/unified/libiberty/fibheap.c -o pic/fibheap.o; \
else true; fi
/home/pme/src/unified/libiberty/fibheap.c: In function `fibheap_delete_node':
/home/pme/src/unified/libiberty/fibheap.c:285: error: `LONG_MIN' undeclared (first use in this function)
/home/pme/src/unified/libiberty/fibheap.c:285: error: (Each undeclared identifier is reported only once
/home/pme/src/unified/libiberty/fibheap.c:285: error: for each function it appears in.)
gmake[1]: *** [fibheap.o] Error 1
gmake[1]: Leaving directory `/home/pme/build/build-2002-06-13-ppc/powerpc-eabisim/libiberty'
gmake: *** [all-target-libiberty] Error 2

The header stack looks like this:

. config.h
. /home/pme/src/unified/newlib/libc/include/stdlib.h
.. /home/pme/src/unified/newlib/libc/include/_ansi.h
... /home/pme/src/unified/newlib/libc/include/sys/config.h
.. /home/pme/build/build-2002-06-13-ppc/gcc/include/stddef.h
.. /home/pme/src/unified/newlib/libc/include/sys/reent.h
... /home/pme/src/unified/newlib/libc/include/sys/_types.h
.. /home/pme/src/unified/newlib/libc/include/machine/stdlib.h
.. /home/pme/src/unified/newlib/libc/include/alloca.h
. /home/pme/src/unified/newlib/libc/include/string.h
.. /home/pme/build/build-2002-06-13-ppc/gcc/include/stddef.h
. /home/pme/src/unified/include/libiberty.h
.. /home/pme/src/unified/include/ansidecl.h
.. /home/pme/build/build-2002-06-13-ppc/gcc/include/stddef.h
.. /home/pme/build/build-2002-06-13-ppc/gcc/include/stdarg.h
. /home/pme/src/unified/include/fibheap.h

and sure enough, newlib's stdlib.h doesn't define LONG_MIN anywhere.

Not sure what I'm doing wrong here... help?


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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