Summary: | sys-devel/gcc-11.2.0: ICE when compiling sys-devel/gdb-11.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | MarcT <banjax7> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | Alpha | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log |
Description
MarcT
2021-09-22 15:41:06 UTC
Hi! This would be a bug in GCC. Can you look at https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide? I updated my CFLAGS to ="-mieee -mcpu=ev67" (removing -O2) and re-ran the emerge. it used to fail like this make[3]: Entering directory '/var/tmp/portage/sys-devel/gdb-11.1/work/gdb-11.1/g dbsupport' CXX agent.o CXX btrace-common.o CXX buffer.o CXX cleanups.o CXX common-debug.o CXX common-exceptions.o CXX common-inferior.o CXX common-regcache.o CXX common-utils.o In file included from /usr/lib/gcc/alpha-unknown-linux-gnu/11.2.0/include/ g++-v11/functional:49, from ptid.h:35, from common-defs.h:198, from common-utils.cc:20: /usr/lib/gcc/alpha-unknown-linux-gnu/11.2.0/include/g++-v11/bits/stl_funct ion.h:1086:37: internal compiler error: in push_class_level_bin ding_1, at cp/name-lookup.c:5409 1086 | pointer_to_unary_function() { } | ^ 0x12137972b internal_error(char const*, ...) ???:0 0x12016c7c7 fancy_abort(char const*, int, char const*) ???:0 0x1202c3997 push_class_level_binding(tree_node*, tree_node*) ???:0 Now it passes by and completes the emerge. ake[2]: Entering directory '/var/tmp/portage/sys-devel/gdb-11.1/work/gdb-11.1/gdbsupport' make all-am make[3]: Entering directory '/var/tmp/portage/sys-devel/gdb-11.1/work/gdb-11.1/gdbsupport' CXX agent.o CXX btrace-common.o CXX buffer.o CXX cleanups.o CXX common-debug.o CXX common-exceptions.o CXX common-inferior.o CXX common-regcache.o CXX common-utils.o CXX environ.o CXX errors.o CXX event-loop.o CXX fileio.o CXX filestuff.o CXX format.o CXX gdb-dlfcn.o I'll add the -O2 again and see if it errors. additionally, note the ICE does not generate a segfault. Ive no memory issues, not using -pipe etc. Created attachment 742368 [details]
build.log
Latest build.log
This appears to have been a memory/hardware issue possibly relating to an ELSA Gloria graphics card. I noticed when undertaking a compilation free memory would dip into the 20MB range (while the bufcache was 600MB). I set min free memory through the kernel tunable but this had no positive effect. Every compile caused low memory like this, _but only when undertaking the compilation on the console itself_. When I compiled via ssh, free memory never dipped below ~500MB (total 1GB). So something about the ELSA, maybe the fb device, maybe it was faulty, was consuming memory as the build progressed until the enevetable ICE. I swapped to a Trio64 and its compiling from the console now. Weird thing, no compilation crashed, ever, from the livecd with the ELSA present. I'm going to get another ELSA and try that. Thanks. |