public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/96492] New: <built-in>: internal compiler error: Segmentation fault
@ 2020-08-06  3:34 townsend at astro dot wisc.edu
  2020-08-06  8:06 ` [Bug bootstrap/96492] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: townsend at astro dot wisc.edu @ 2020-08-06  3:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

            Bug ID: 96492
           Summary: <built-in>: internal compiler error: Segmentation
                    fault
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: townsend at astro dot wisc.edu
  Target Milestone: ---

I'm attempting to build 10.2 from within a Docker container based on Centos
5.11, which ships with glibc 2.5 and gcc 4.1.2. (The reason I'm doing this is
I'm building a gcc-based SDK that should be able to run on crusty old systems).

I'm configuring with the following options:

../gcc/configure --build=x86_64-pc-linux-gnu
--prefix=/home/user/sdk2-tmp/mesasdk --with-mpc=/home/user/sdk2-tmp/mesasdk
--with-mpfr=/home/user/sdk2-tmp/mesasdk --with-gmp=/home/user/sdk2-tmp/mesasdk
--disable-multilib --disable-nls --disable-libsanitizer
--enable-languages=c,c++,fortran

During the build (make -j), I get ICEs:

/home/user/sdk2-tmp/build/gcc-build/./gcc/xgcc
-B/home/user/sdk2-tmp/build/gcc-build/./gcc/ -xc -nostdinc /dev/null -S -o
/dev/null -fself-test=../../gcc/gcc/testsuite/selftests
<built-in>: internal compiler error: Segmentation fault
<built-in>: internal compiler error: Segmentation fault
/home/user/sdk2-tmp/build/gcc-build/./gcc/xgcc
-B/home/user/sdk2-tmp/build/gcc-build/./gcc/ -xc++ -nostdinc /dev/null -S -o
/dev/null -fself-test=../../gcc/gcc/testsuite/selftests
<built-in>: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
make[3]: *** [s-selftest-c] Error 1
make[3]: *** Waiting for unfinished jobs....
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
/bin/sh ../../gcc/gcc/../move-if-change tmp-macro_list macro_list
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
make[3]: *** [s-selftest-c++] Error 1
echo timestamp > s-macro_list
rm gfortran.pod gcc.pod
make[3]: Leaving directory `/home/user/sdk2-tmp/build/gcc-build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/user/sdk2-tmp/build/gcc-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/user/sdk2-tmp/build/gcc-build'
make: *** [all] Error 2

Full build log is attached.

cheers,

Rich

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/96492] <built-in>: internal compiler error: Segmentation fault
  2020-08-06  3:34 [Bug bootstrap/96492] New: <built-in>: internal compiler error: Segmentation fault townsend at astro dot wisc.edu
@ 2020-08-06  8:06 ` rguenth at gcc dot gnu.org
  2020-08-06 11:43 ` townsend at astro dot wisc.edu
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-08-06  8:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Did GCC 10.1 work or any older version you tried to build this way in the past?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/96492] <built-in>: internal compiler error: Segmentation fault
  2020-08-06  3:34 [Bug bootstrap/96492] New: <built-in>: internal compiler error: Segmentation fault townsend at astro dot wisc.edu
  2020-08-06  8:06 ` [Bug bootstrap/96492] " rguenth at gcc dot gnu.org
@ 2020-08-06 11:43 ` townsend at astro dot wisc.edu
  2020-08-06 11:59 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: townsend at astro dot wisc.edu @ 2020-08-06 11:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #2 from Rich Townsend <townsend at astro dot wisc.edu> ---
(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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/96492] <built-in>: internal compiler error: Segmentation fault
  2020-08-06  3:34 [Bug bootstrap/96492] New: <built-in>: internal compiler error: Segmentation fault townsend at astro dot wisc.edu
  2020-08-06  8:06 ` [Bug bootstrap/96492] " rguenth at gcc dot gnu.org
  2020-08-06 11:43 ` townsend at astro dot wisc.edu
@ 2020-08-06 11:59 ` jakub at gcc dot gnu.org
  2020-08-06 14:34 ` townsend at astro dot wisc.edu
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-08-06 11:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/96492] <built-in>: internal compiler error: Segmentation fault
  2020-08-06  3:34 [Bug bootstrap/96492] New: <built-in>: internal compiler error: Segmentation fault townsend at astro dot wisc.edu
                   ` (2 preceding siblings ...)
  2020-08-06 11:59 ` jakub at gcc dot gnu.org
@ 2020-08-06 14:34 ` townsend at astro dot wisc.edu
  2020-08-08 21:41 ` townsend at astro dot wisc.edu
  2020-08-10  4:12 ` marxin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: townsend at astro dot wisc.edu @ 2020-08-06 14:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #4 from Rich Townsend <townsend at astro dot wisc.edu> ---
(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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
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.
0x00007f10b4696ca0 in strlen () from /lib64/libc.so.6
(gdb) bt
#0  0x00007f10b4696ca0 in strlen () from /lib64/libc.so.6
#1  0x0000000000ac1e79 in get_identifier(char const*) ()
#2  0x00000000009304fd in build_builtin_function(unsigned int, char const*,
tree_node*, int, built_in_class, char const*, tree_node*) ()
#3  0x00000000000000c5 in ?? ()
#4  0x00000000b4547c00 in ?? ()
#5  0x0000000001593374 in ix86_builtin_func_args ()
#6  0x0000000000000002 in ?? ()
#7  0x00000000000000ae in ?? ()
#8  0x0000000000000002 in ?? ()
#9  0x0000000000000001 in ?? ()
#10 0x0000000000000000 in ?? ()

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/96492] <built-in>: internal compiler error: Segmentation fault
  2020-08-06  3:34 [Bug bootstrap/96492] New: <built-in>: internal compiler error: Segmentation fault townsend at astro dot wisc.edu
                   ` (3 preceding siblings ...)
  2020-08-06 14:34 ` townsend at astro dot wisc.edu
@ 2020-08-08 21:41 ` townsend at astro dot wisc.edu
  2020-08-10  4:12 ` marxin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: townsend at astro dot wisc.edu @ 2020-08-08 21:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

--- Comment #5 from Rich Townsend <townsend at astro dot wisc.edu> ---
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/96492] <built-in>: internal compiler error: Segmentation fault
  2020-08-06  3:34 [Bug bootstrap/96492] New: <built-in>: internal compiler error: Segmentation fault townsend at astro dot wisc.edu
                   ` (4 preceding siblings ...)
  2020-08-08 21:41 ` townsend at astro dot wisc.edu
@ 2020-08-10  4:12 ` marxin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-08-10  4:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Let's close it as invalid then.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-10  4:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06  3:34 [Bug bootstrap/96492] New: <built-in>: internal compiler error: Segmentation fault townsend at astro dot wisc.edu
2020-08-06  8:06 ` [Bug bootstrap/96492] " rguenth at gcc dot gnu.org
2020-08-06 11:43 ` townsend at astro dot wisc.edu
2020-08-06 11:59 ` jakub at gcc dot gnu.org
2020-08-06 14:34 ` townsend at astro dot wisc.edu
2020-08-08 21:41 ` townsend at astro dot wisc.edu
2020-08-10  4:12 ` marxin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).