Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-07-2013, 03:28 AM   #1
Registered: Feb 2013
Posts: 43

Rep: Reputation: Disabled
../../gcc-4.7.1/libiberty/fibheap.c:220:30: error: 'LONG_MIN' undeclared (first use i


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....

Old 03-08-2013, 11:30 AM   #2
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
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.
Old 03-08-2013, 03:41 PM   #3
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,274

Rep: Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994Reputation: 994
My first guess: the programmer forgot to #include limits.h into fibheap.c
Old 03-08-2013, 11:15 PM   #4
Registered: Feb 2013
Posts: 43

Original Poster
Rep: Reputation: Disabled


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...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] compiling gcc 4.5.2 without libiberty entz Linux - Software 2 12-07-2011 06:45 PM
Linux From Scratch - Version 6.7 GCC-4.5.1 - Pass 2 Error on Linux From Scratch 3 03-28-2011 03:48 AM
make: *** [configure-libiberty] Error 1 in 5.4. Binutils- - Pass 1 Flash_G Linux From Scratch 3 06-30-2005 08:51 PM
gcc-3.3.3 compling(configure-target-libiberty error 1) windus Linux - Software 0 04-18-2004 12:38 PM
GCC:- 'cout' is an undeclared function when #include <iostream> is included? caesius_01 Programming 5 04-04-2004 11:00 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration