1 |
Mickaël Bucas wrote: |
2 |
> |
3 |
> It seems that the command line to compile "genautomata" contains useful information to understand the cause. |
4 |
> Can you find it in the GCC compile logs ? |
5 |
|
6 |
I think the command which triggers the error is "build/genautomata ...": |
7 |
|
8 |
make[3]: Entering directory '/var/tmp/portage/sys-devel/gcc-11.3.0/work/build/gcc' |
9 |
build/genautomata /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/common.md /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/config/i386/i386.md \ |
10 |
insn-conditions.md > tmp-automata.c |
11 |
make[3]: *** [Makefile:2456: s-automata] Error 139 |
12 |
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.3.0/work/build/gcc' |
13 |
make[3]: *** Waiting for unfinished jobs.... |
14 |
|
15 |
dmesg: |
16 |
[10789.040085] genautomata[5619]: segfault at bfa80ffc ip b775f23b sp bfa81000 error 6 in genautomata[b7755000+44000] |
17 |
|
18 |
Former lines in "build.log" containing "genautomata" are just these two: |
19 |
|
20 |
i686-pc-linux-gnu-g++ -std=c++11 -c -DEXTRA_OPTIONS -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag |
21 |
-Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild |
22 |
-I/var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc -I/var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/build -I/var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/../include |
23 |
-I/var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/../libcpp/include \ |
24 |
-o build/genautomata.o /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/genautomata.c |
25 |
|
26 |
and, a bit later |
27 |
|
28 |
i686-pc-linux-gnu-g++ -std=c++11 -DEXTRA_OPTIONS -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag |
29 |
-Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc |
30 |
-Wl,-O1 -Wl,--as-needed -o build/genautomata \ |
31 |
build/genautomata.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/sort.o build/read-md.o |
32 |
build/errors.o ../build-i686-pc-linux-gnu/libiberty/libiberty.a -lm |
33 |
|
34 |
which both just look normal, IMHO (no error or other message around them). |
35 |
|
36 |
Meanwhile, I have updated several other Gentoo systems (32 and 64 |
37 |
bit) which all worked well. It's just that one system which brings |
38 |
that error. I have also found https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79827 |
39 |
and made "ulimit -s 32768" (instead of 8192), but to no avail. |
40 |
|
41 |
The only difference is the kernel (4.0.5 on the old system; all others |
42 |
have 4.14.83 oder even some 5.x kernel). On the other hand: the difference |
43 |
between gcc 11.2.1 (which works fine) and 11.3.0 shouldn't be that big?! |
44 |
|
45 |
-Matt |