Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614834 - =sys-devel/gcc-4.6.4 - libiberty/fibheap.c:261:36: error: 'LONG_MIN' undeclared (first use in this function)
Summary: =sys-devel/gcc-4.6.4 - libiberty/fibheap.c:261:36: error: 'LONG_MIN' undeclar...
Status: RESOLVED DUPLICATE of bug 580414
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-06 09:57 UTC by Coacher
Modified: 2017-04-30 15:08 UTC (History)
0 users

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


Attachments
build.log.gz (build.log.gz,296.40 KB, application/gzip)
2017-04-06 09:59 UTC, Coacher
Details
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,237.65 KB, application/x-bzip2)
2017-04-06 10:00 UTC, Coacher
Details
emerge --info '=sys-devel/gcc-4.6.4::gentoo' (info,5.04 KB, text/plain)
2017-04-06 10:01 UTC, Coacher
Details
emerge -pqv '=sys-devel/gcc-4.6.4::gentoo' (pqv,280 bytes, text/plain)
2017-04-06 10:02 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2017-04-06 09:57:21 UTC
Hello.

gcc-4.6.4 fails to build with

/var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.6.4/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linu
x-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 -m64 -O2 -pipe -Wimplicit-
function-declaration -gtoggle  -I. -I/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic
 /var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/dyn-string.c -o dyn-string.o
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c: In function 'fibheap_union':
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:151:7: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:151:7: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:156:7: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:172:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c: In function 'fibheap_extract_min':
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:190:7: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c: In function 'fibheap_replace_key_data':
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:220:30: error: 'LONG_MIN' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:220:30: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c: In function 'fibheap_delete_node':
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:261:36: error: 'LONG_MIN' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:265:7: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:265:7: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c: In function 'fibheap_delete':
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:277:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c: In function 'fibheap_consolidate':
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:368:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
/var/tmp/portage/sys-devel/gcc-4.6.4/work/gcc-4.6.4/libiberty/fibheap.c:368:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
make[3]: *** [Makefile:646: fibheap.o] Error 1

All other gcc versions from 4.2 up to 5.4 build fine.

Please fix.
Comment 1 Coacher 2017-04-06 09:59:22 UTC
Created attachment 469314 [details]
build.log.gz
Comment 2 Coacher 2017-04-06 10:00:12 UTC
Created attachment 469316 [details]
gcc-build-logs.tar.bz2
Comment 3 Coacher 2017-04-06 10:01:23 UTC
Created attachment 469318 [details]
emerge --info '=sys-devel/gcc-4.6.4::gentoo'
Comment 4 Coacher 2017-04-06 10:02:27 UTC
Created attachment 469320 [details]
emerge -pqv '=sys-devel/gcc-4.6.4::gentoo'
Comment 5 Coacher 2017-04-30 15:08:47 UTC
*** This bug has been marked as a duplicate of bug 580414 ***