../../gcc-4.7.1/libiberty/fibheap.c:220:30: error: 'LONG_MIN' undeclared (first use i
Hi,
When I tried to compile gcc4.7.1 at pass 2, everything was fine, but I got struck up with this error... lfs@boss:/media/LFS/sources/gcc-build$ make . . . . make[2]: Entering directory `/media/LFS/sources/gcc-build/libiberty' if [ x"-fpic" != x ]; then \ i686-lfs-linux-gnu-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-4.7.1/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../gcc-4.7.1/libiberty/fibheap.c -o pic/fibheap.o; \ else true; fi ../../gcc-4.7.1/libiberty/fibheap.c: In function 'fibheap_replace_key_data': ../../gcc-4.7.1/libiberty/fibheap.c:220:30: error: 'LONG_MIN' undeclared (first use in this function) ../../gcc-4.7.1/libiberty/fibheap.c:220:30: note: each undeclared identifier is reported only once for each function it appears in ../../gcc-4.7.1/libiberty/fibheap.c: In function 'fibheap_delete_node': ../../gcc-4.7.1/libiberty/fibheap.c:261:36: error: 'LONG_MIN' undeclared (first use in this function) make[2]: *** [fibheap.o] Error 1 make[2]: Leaving directory `/media/LFS/sources/gcc-build/libiberty' make[1]: *** [all-libiberty] Error 2 make[1]: Leaving directory `/media/LFS/sources/gcc-build' make: *** [all] Error 2 kindly help me out of this.... Audhil |
It means that either the define or the variable LONG_MIN is undeclared in your build environment. You need to fix this before you can continue your build.
Do an Internet search. Lots of information available about this particular problem. |
My first guess: the programmer forgot to #include limits.h into fibheap.c
|
[solved]
Hi,
Friends very much thank for your dynamic replies, I solved this problem, by just deleting the build directories(which I created) of various packages, which I installed before this package... |
All times are GMT -5. The time now is 11:26 AM. |