public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin
@ 2021-02-14 17:54 hubicka at gcc dot gnu.org
  2021-02-14 18:03 ` [Bug middle-end/99097] " hubicka at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: hubicka at gcc dot gnu.org @ 2021-02-14 17:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99097
           Summary: profiledbootstrap fails with LTO and disabled plugin
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org
  Target Milestone: ---

Configuring with 
../configure --disable-multilib --prefix=/home/jan/trunk-install
--with-build-config=bootstrap-lto --enable-checking=release --disable-plugin

I get on x86-64:

cc1: internal compiler error: Segmentation fault
0xe3ae79 crash_signal
        ../../gcc/toplev.c:327
0x149fcc7 ix86_option_override_internal
        ../../gcc/config/i386/i386-options.c:2045
0x14a3c2f ix86_option_override()
        ../../gcc/config/i386/i386-options.c:3046
0xe41831 process_options
        ../../gcc/toplev.c:1247
0x47f3d4 do_compile
        ../../gcc/toplev.c:2119

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

* [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
@ 2021-02-14 18:03 ` hubicka at gcc dot gnu.org
  2021-02-15  9:20 ` marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: hubicka at gcc dot gnu.org @ 2021-02-14 18:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Also linker used is gold which may be a problem since:

So the problem ssems to be wrong call to strcmp:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7886372 in __strcmp_avx2 () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff7886372 in __strcmp_avx2 () from /lib64/libc.so.6
#1  0x000000000149fcc8 in ix86_option_override_internal (main_args_p=<optimized
out>, opts=0x3396c60 <global_options>, opts_set=0x33d4fe0 <global_options_set>)
    at ../../gcc/config/i386/i386-options.c:2045
#2  0x00000000014a3c30 in ix86_option_override () at
../../gcc/config/i386/i386-options.c:3046
#3  0x0000000000e41832 in process_options () at ../../gcc/toplev.c:1247
#4  0x000000000047f3d5 in do_compile () at ../../gcc/toplev.c:2119
#5  toplev::main (this=0x7fffffffe0de, argc=<optimized out>, argv=<optimized
out>) at ../../gcc/toplev.c:2336
#6  0x0000000000486caf in main (argc=1, argv=0x7fffffffe1e8) at
../../gcc/main.c:39
(gdb) up
#1  0x000000000149fcc8 in ix86_option_override_internal (main_args_p=<optimized
out>, opts=0x3396c60 <global_options>, opts_set=0x33d4fe0 <global_options_set>)
    at ../../gcc/config/i386/i386-options.c:2045
2045        if (! strcmp (opts->x_ix86_arch_string,
processor_alias_table[i].name))
(gdb) p opts->x_ix86_arch_string
$1 = 0x23896fb "x86-64"
(gdb) p processor_alias_table[i].name
$2 = 0x0
(gdb) p i
$3 = 0

processor alias table is const so i do not see how that can happen legally...

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

* [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
  2021-02-14 18:03 ` [Bug middle-end/99097] " hubicka at gcc dot gnu.org
@ 2021-02-15  9:20 ` marxin at gcc dot gnu.org
  2021-02-15  9:41   ` Jan Hubicka
  2021-02-15  9:41 ` hubicka at ucw dot cz
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-02-15  9:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
                 CC|                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2021-02-15
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
I've just tried to reproduce it:
../configure --with-build-config=bootstrap-lto --enable-checking=release
--disable-plugin

But the build is fine for me.

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

* Re: [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-15  9:20 ` marxin at gcc dot gnu.org
@ 2021-02-15  9:41   ` Jan Hubicka
  0 siblings, 0 replies; 11+ messages in thread
From: Jan Hubicka @ 2021-02-15  9:41 UTC (permalink / raw)
  To: marxin at gcc dot gnu.org; +Cc: gcc-bugs

> I've just tried to reproduce it:
> ../configure --with-build-config=bootstrap-lto --enable-checking=release
> --disable-plugin
> 
> But the build is fine for me.
On our dhcp230 (zen III machine) it works if you make system linker ld,
if system linker is gold (from tumbleweed) it fails

GNU gold (GNU Binutils 2.36.50.20210211) 1.16
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

I will rebuild and produce resolution files, looks like linker bug to
me.

Honza


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

* [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
  2021-02-14 18:03 ` [Bug middle-end/99097] " hubicka at gcc dot gnu.org
  2021-02-15  9:20 ` marxin at gcc dot gnu.org
@ 2021-02-15  9:41 ` hubicka at ucw dot cz
  2021-02-15  9:51 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: hubicka at ucw dot cz @ 2021-02-15  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> ---
> I've just tried to reproduce it:
> ../configure --with-build-config=bootstrap-lto --enable-checking=release
> --disable-plugin
> 
> But the build is fine for me.
On our dhcp230 (zen III machine) it works if you make system linker ld,
if system linker is gold (from tumbleweed) it fails

GNU gold (GNU Binutils 2.36.50.20210211) 1.16
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

I will rebuild and produce resolution files, looks like linker bug to
me.

Honza

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

* [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-02-15  9:41 ` hubicka at ucw dot cz
@ 2021-02-15  9:51 ` rguenth at gcc dot gnu.org
  2021-02-15  9:56 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-15  9:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Works on the branch.

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

* [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-02-15  9:51 ` rguenth at gcc dot gnu.org
@ 2021-02-15  9:56 ` marxin at gcc dot gnu.org
  2021-02-15 10:12   ` Jan Hubicka
  2021-02-15 10:12 ` hubicka at ucw dot cz
                   ` (2 subsequent siblings)
  7 siblings, 1 reply; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-02-15  9:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #3)
> > I've just tried to reproduce it:
> > ../configure --with-build-config=bootstrap-lto --enable-checking=release
> > --disable-plugin
> > 
> > But the build is fine for me.

Ah, my bad, I used BFD.

> On our dhcp230 (zen III machine) it works if you make system linker ld,
> if system linker is gold (from tumbleweed) it fails
> 
> GNU gold (GNU Binutils 2.36.50.20210211) 1.16

Note that this isn't ld.gold from openSUSE Tumbleweed. We still have 2.35.1
release in the distribution. This must be a built gold from source files?

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

* Re: [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-15  9:56 ` marxin at gcc dot gnu.org
@ 2021-02-15 10:12   ` Jan Hubicka
  0 siblings, 0 replies; 11+ messages in thread
From: Jan Hubicka @ 2021-02-15 10:12 UTC (permalink / raw)
  To: marxin at gcc dot gnu.org; +Cc: gcc-bugs

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99097
> 
> --- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
> (In reply to Jan Hubicka from comment #3)
> > > I've just tried to reproduce it:
> > > ../configure --with-build-config=bootstrap-lto --enable-checking=release
> > > --disable-plugin
> > > 
> > > But the build is fine for me.
> 
> Ah, my bad, I used BFD.
> 
> > On our dhcp230 (zen III machine) it works if you make system linker ld,
> > if system linker is gold (from tumbleweed) it fails
> > 
> > GNU gold (GNU Binutils 2.36.50.20210211) 1.16
> 
> Note that this isn't ld.gold from openSUSE Tumbleweed. We still have 2.35.1
> release in the distribution. This must be a built gold from source files?

Ah, you are right. It is binutils trunk (unpatched).   Will figure out
what is going on here.

Honza


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

* [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-02-15  9:56 ` marxin at gcc dot gnu.org
@ 2021-02-15 10:12 ` hubicka at ucw dot cz
  2021-02-15 10:25 ` marxin at gcc dot gnu.org
  2021-02-18 11:07 ` marxin at gcc dot gnu.org
  7 siblings, 0 replies; 11+ messages in thread
From: hubicka at ucw dot cz @ 2021-02-15 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jan Hubicka <hubicka at ucw dot cz> ---
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99097
> 
> --- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
> (In reply to Jan Hubicka from comment #3)
> > > I've just tried to reproduce it:
> > > ../configure --with-build-config=bootstrap-lto --enable-checking=release
> > > --disable-plugin
> > > 
> > > But the build is fine for me.
> 
> Ah, my bad, I used BFD.
> 
> > On our dhcp230 (zen III machine) it works if you make system linker ld,
> > if system linker is gold (from tumbleweed) it fails
> > 
> > GNU gold (GNU Binutils 2.36.50.20210211) 1.16
> 
> Note that this isn't ld.gold from openSUSE Tumbleweed. We still have 2.35.1
> release in the distribution. This must be a built gold from source files?

Ah, you are right. It is binutils trunk (unpatched).   Will figure out
what is going on here.

Honza

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

* [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-02-15 10:12 ` hubicka at ucw dot cz
@ 2021-02-15 10:25 ` marxin at gcc dot gnu.org
  2021-02-18 11:07 ` marxin at gcc dot gnu.org
  7 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-02-15 10:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
> Ah, you are right. It is binutils trunk (unpatched).   Will figure out
> what is going on here.

Good! If the failure happens quickly, you can likely bisect binutils quickly.
In which build stage do you see the failure?

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

* [Bug middle-end/99097] profiledbootstrap fails with LTO and disabled plugin
  2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-02-15 10:25 ` marxin at gcc dot gnu.org
@ 2021-02-18 11:07 ` marxin at gcc dot gnu.org
  7 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-02-18 11:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
I really cannot reproduce it with a custom ld.gold build.

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

end of thread, other threads:[~2021-02-18 11:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-14 17:54 [Bug middle-end/99097] New: profiledbootstrap fails with LTO and disabled plugin hubicka at gcc dot gnu.org
2021-02-14 18:03 ` [Bug middle-end/99097] " hubicka at gcc dot gnu.org
2021-02-15  9:20 ` marxin at gcc dot gnu.org
2021-02-15  9:41   ` Jan Hubicka
2021-02-15  9:41 ` hubicka at ucw dot cz
2021-02-15  9:51 ` rguenth at gcc dot gnu.org
2021-02-15  9:56 ` marxin at gcc dot gnu.org
2021-02-15 10:12   ` Jan Hubicka
2021-02-15 10:12 ` hubicka at ucw dot cz
2021-02-15 10:25 ` marxin at gcc dot gnu.org
2021-02-18 11:07 ` 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).