LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 03: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, 11:30 AM   #2
fpmurphy
Member
 
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
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,880
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
My first guess: the programmer forgot to #include limits.h into fibheap.c
 
Old 03-08-2013, 11:15 PM   #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



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 libiberty.an antonio.moschini@nsn.com Linux From Scratch 3 03-28-2011 03: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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 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
Open Source Consulting | Domain Registration