Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352306 - sys-devel/gcc-4.4.4-r2 bootstrap-lean fails: LONG_MIN undefined in fibheap.c:258
Summary: sys-devel/gcc-4.4.4-r2 bootstrap-lean fails: LONG_MIN undefined in fibheap.c:258
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 02:35 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2011-01-22 01:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/tmp/emerge--info.txt (emerge--info.txt,7.49 KB, text/plain)
2011-01-21 02:36 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
/tmp/gcc-4.4.4-r2-build-head.log (gcc-4.4.4-r2-build-head.log,549.64 KB, text/plain)
2011-01-21 03:58 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
/tmp/gcc-4.4.4-r2-build-tail.log (gcc-4.4.4-r2-build-tail.log,808.91 KB, text/plain)
2011-01-21 03:58 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
fibheap.i (fibheap.i,136.36 KB, text/plain)
2011-01-21 23:35 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
gcc-4.4.4-r2-build.log.bz2 (gcc-4.4.4-r2-build.log.bz2,131.73 KB, application/bzip2)
2011-01-21 23:37 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-01-21 02:35:04 UTC
if [ x"-fpic" != x ]; then \
  /var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -pipe -march=athlon64 -g -ggdb    -I. -I/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fpic /var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/libiberty/fibheap.c -o pic/fibheap.o; \
else true; fi
/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/libiberty/fibheap.c: In function 'fibheap_delete_node':
/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/libiberty/fibheap.c:258: error: 'LONG_MIN' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/libiberty/fibheap.c:258: error: (Each undeclared identifier is reported only once
/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/libiberty/fibheap.c:258: error: for each function it appears in.)


See to-be-attached build.log and emerge --info.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-01-21 02:36:22 UTC
Created attachment 260405 [details]
/tmp/emerge--info.txt
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-01-21 03:58:17 UTC
Created attachment 260407 [details]
/tmp/gcc-4.4.4-r2-build-head.log

See the full build log at http://ohnopub.net/~ohnobinki/tmp/gcc-4.4.4-r2-build.log . I here attach the head and tail of the log...
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-01-21 03:58:55 UTC
Created attachment 260409 [details]
/tmp/gcc-4.4.4-r2-build-tail.log
Comment 4 SpanKY gentoo-dev 2011-01-21 23:19:32 UTC
if the full log wont fit, then simply compress it and post that

go into the build dir:
/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libiberty

and run:
/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -E -dD -DHAVE_CONFIG_H -O2 -pipe -march=athlon64 -g -ggdb    -I. -I/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fpic /var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/libiberty/fibheap.c -o fibheap.i

then post the fibheap.i file as an attachment
Comment 5 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-01-21 23:35:40 UTC
Created attachment 260474 [details]
fibheap.i
Comment 6 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-01-21 23:37:59 UTC
Created attachment 260475 [details]
gcc-4.4.4-r2-build.log.bz2

I didn't think of compression, but that works very well. Here's the full build.log.
Comment 7 SpanKY gentoo-dev 2011-01-22 00:56:16 UTC
limits.h isnt being included in your fibheap build.  this is because it isnt being detected by configure.

if we look at the log, we see:
  checking for limits.h... checking for memory.h... Terminated

that cant be good.  grepping for "Terminated" in the log shows many more hits.  something is screwed on your system.  look at `dmesg` to see if you're running out of memory or something.
Comment 8 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-01-22 01:20:36 UTC
(In reply to comment #7)
> limits.h isnt being included in your fibheap build.  this is because it isnt
> being detected by configure.
> 
> if we look at the log, we see:
>   checking for limits.h... checking for memory.h... Terminated
> 
> that cant be good.  grepping for "Terminated" in the log shows many more hits. 
> something is screwed on your system.  look at `dmesg` to see if you're running
> out of memory or something.
> 

Well, I did have a memory-hungry process running for a messed up rbot instance a day ago and because I had it set up with the initscripts, it ended up restarting. I don't ever see any OOM killer being woken up in my dmesg, but this is probably the problem. However, I'm more concerned about some ``Hangcheck: hangcheck value past margin!'' dmesgs which I think are pointing to some problem with my reiserfs partitions, but I'm convinced that this dmesg is unrelated to gcc being Terminated.

Thanks for debugging this for me and sorry for not noticing the ``Terminated'' lines in my build.log which point to problems in my system.