LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
../../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
 
Old 03-08-2013, 12:30 PM   #2
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 297

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, 04:41 PM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 2,956

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
My first guess: the programmer forgot to #include limits.h into fibheap.c
 
Old 03-09-2013, 12:15 AM   #4
smdaudhilbe
Member
 
Registered: Feb 2013
Posts: 43

Original Poster
Rep: Reputation: Disabled
[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...
 
  


Reply


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 07:45 PM
Linux From Scratch - Version 6.7 GCC-4.5.1 - Pass 2 Error on libiberty.an antonio.moschini@nsn.com Linux From Scratch 3 03-28-2011 04:48 AM
make: *** [configure-libiberty] Error 1 in 5.4. Binutils-2.15.91.0.2 - Pass 1 Flash_G Linux From Scratch 3 06-30-2005 09:51 PM
gcc-3.3.3 compling(configure-target-libiberty error 1) windus Linux - Software 0 04-18-2004 01:38 PM
GCC:- 'cout' is an undeclared function when #include <iostream> is included? caesius_01 Programming 5 04-04-2004 12:00 PM


All times are GMT -5. The time now is 08:48 AM.

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