compile error binutils-2.14 pass 1 (chapter 5, lfs-5.0)

Jappie jappie at
Wed Nov 12 07:01:11 PST 2003

hyroglyphix wrote:

>Hello Folks,
>please help me out. I'm using lfs-4.01 with gcc-3.2.1 and gcc-2.95.3
>and wanted to update to lfs-5.0
>But I got the following error right with the first package to
>comile!!! I tried both releases of gcc (above mentioned).
>I always get this error:
>[1] lfs:/mnt/lfs/sources/binutils-build
>$ make LDFLAGS="-all-static"
>make[1]: Entering directory `/mnt/lfs/sources/binutils-build/intl'
>make[1]: Nothing to be done for `all'.
>make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/intl'
>make[1]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty'
>if [ x"" != x ]; then \
>  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.14/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../binutils-2.14/libiberty/fibheap.c -o pic/fibheap.o; \
>else true; fi
>gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../binutils-2.14/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../binutils-2.14/libiberty/fibheap.c -o fibheap.o
>../../binutils-2.14/libiberty/fibheap.c: In function `fibheap_delete_node':
>../../binutils-2.14/libiberty/fibheap.c:285: `LONG_MIN' undeclared (first use in this function)
>../../binutils-2.14/libiberty/fibheap.c:285: (Each undeclared identifier is reported only once
>../../binutils-2.14/libiberty/fibheap.c:285: for each function it appears in.)
>make[1]: *** [fibheap.o] Error 1
>make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
>make: *** [all-libiberty] Error 2
>[1] lfs:/mnt/lfs/sources/binutils-build
If you followed the book exactly, and using a correctly build version of 
lfs-4.01, there shouldn"t be any difficulties...
Try redownloading the binutils tar-ball  :S
Also, I recommend using gcc-3.2.1 as compiler, cause glibc-2.3.2 (that 
comes with lfs-5.0) needs gcc-3.2 or later.


More information about the lfs-support mailing list