[Bug bootstrap/96492] : internal compiler error: Segmentation fault

2020-08-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID
 CC||marxin at gcc dot gnu.org

--- Comment #6 from Martin Liška  ---
Let's close it as invalid then.

[Bug bootstrap/96492] : internal compiler error: Segmentation fault

2020-08-08 Thread townsend at astro dot wisc.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #5 from Rich Townsend  ---
So, given that gcc 4.1.2 is really ancient, I've tried building 10.2 using gcc
9.3.0 instead (but still inside the Docker container). This builds fine, and in
fact I'm happy to go with this workaround.

However, might be worth noting somewhere that gcc 10.X cannot be built with gcc
4.1.2.

cheers,

Rich

[Bug bootstrap/96492] : internal compiler error: Segmentation fault

2020-08-06 Thread townsend at astro dot wisc.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #4 from Rich Townsend  ---
(In reply to Jakub Jelinek from comment #3)
> Can you run
> gdb --args ./cc1 -quiet -fself-test=../../gcc/gcc/testsuite/selftests
> /dev/null -o /dev/null
> and do
> run
> bt
> ?

[user@6d6cb5609b91 gcc]$ gdb --args ./cc1 -quiet
-fself-test=../../gcc/gcc/testsuite/selftests /dev/null -o /dev/null
GNU gdb (GDB) CentOS (7.0.1-45.el5.centos)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/user/sdk2-tmp/build/gcc-build/gcc/cc1...done.
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in
module /home/user/sdk2-tmp/build/gcc-build/gcc/cc1]
/home/user/sdk2-tmp/build/gcc-build/gcc/.gdbinit:14: Error in sourced command
file:
/home/user/sdk2-tmp/build/gcc/gcc/gdbinit.in:311: Error in sourced command
file:
Undefined command: "alias".  Try "help".
(gdb) run
Starting program: /home/user/sdk2-tmp/build/gcc-build/gcc/cc1 -quiet
-fself-test=../../gcc/gcc/testsuite/selftests /dev/null -o /dev/null
warning: Error disabling address space randomization: Operation not permitted
warning: no loadable sections found in added symbol-file system-supplied DSO at
0x7ffe393bf000

Program received signal SIGSEGV, Segmentation fault.
0x7f10b4696ca0 in strlen () from /lib64/libc.so.6
(gdb) bt
#0  0x7f10b4696ca0 in strlen () from /lib64/libc.so.6
#1  0x00ac1e79 in get_identifier(char const*) ()
#2  0x009304fd in build_builtin_function(unsigned int, char const*,
tree_node*, int, built_in_class, char const*, tree_node*) ()
#3  0x00c5 in ?? ()
#4  0xb4547c00 in ?? ()
#5  0x01593374 in ix86_builtin_func_args ()
#6  0x0002 in ?? ()
#7  0x00ae in ?? ()
#8  0x0002 in ?? ()
#9  0x0001 in ?? ()
#10 0x in ?? ()

[Bug bootstrap/96492] : internal compiler error: Segmentation fault

2020-08-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #3 from Jakub Jelinek  ---
Can you run
gdb --args ./cc1 -quiet -fself-test=../../gcc/gcc/testsuite/selftests /dev/null
-o /dev/null
and do
run
bt
?

[Bug bootstrap/96492] : internal compiler error: Segmentation fault

2020-08-06 Thread townsend at astro dot wisc.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #2 from Rich Townsend  ---
(In reply to Richard Biener from comment #1)
> Did GCC 10.1 work or any older version you tried to build this way in the
> past?

It's worked in 9.2, 9.3, and earlier releases; but not in 10.1.

If I try the build outside the Docker container, it works fine. So, there's
something about the Centos 5.11 toolchain/libraries that make it break.

[Bug bootstrap/96492] : internal compiler error: Segmentation fault

2020-08-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #1 from Richard Biener  ---
Did GCC 10.1 work or any older version you tried to build this way in the past?