* [Bug lto/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127
[not found] <bug-65828-4@http.gcc.gnu.org/bugzilla/>
@ 2015-04-21 10:23 ` steven at uplinklabs dot net
2015-04-21 10:32 ` steven at uplinklabs dot net
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: steven at uplinklabs dot net @ 2015-04-21 10:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
--- Comment #1 from Steven Noonan <steven at uplinklabs dot net> ---
If you want a nice tarball with a ready-to-go repro case, I've put it here:
https://www.uplinklabs.net/files/lto-65828.tar.xz
Should just be able to run something like:
$ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/lto1 -quiet -dumpdir .libs/
-dumpbase libglib-2.0.so.0.4400.0.wpa -mtune=generic -march=x86-64
-mtune=generic -march=x86-64 -auxbase libglib_2_0_la-gallocator -O2 -O2
-version -fno-trapv -fPIC
-fltrans-output-list=libglib-2.0.so.0.4400.0.ltrans.out -fwpa
-fresolution=libglib-2.0.so.res @ccWGeoup.args
from inside the extracted directory and see the issue.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127
[not found] <bug-65828-4@http.gcc.gnu.org/bugzilla/>
2015-04-21 10:23 ` [Bug lto/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127 steven at uplinklabs dot net
@ 2015-04-21 10:32 ` steven at uplinklabs dot net
2015-04-21 12:39 ` [Bug sanitizer/65828] " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: steven at uplinklabs dot net @ 2015-04-21 10:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
--- Comment #2 from Steven Noonan <steven at uplinklabs dot net> ---
I just noticed that libtool appears to be stripping some of the arguments in
LDFLAGS when invoking GCC:
/bin/sh ../libtool --tag=CC --mode=link gcc -flto -Wall -Wstrict-prototypes
-Werror=declaration-after-statement -Werror=missing-prototypes
-Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self
-Werror=format=2 -Werror=missing-include-dirs -fvisibility=hidden -O2
-fsanitize=undefined -Wl,-Bsymbolic-functions -version-info 4400:0:4400
-export-dynamic -O2 -fsanitize=undefined -o libglib-2.0.la -rpath
/usr/local/lib [[.lo files]] libcharset/libcharset.la pcre/libpcre.la
-lpthread
libtool: link: gcc -flto -shared -fPIC -DPIC [[.o files]]
-Wl,--whole-archive libcharset/.libs/libcharset.a pcre/.libs/libpcre.a
-Wl,--no-whole-archive -lpthread -flto -O2 -Wl,-Bsymbolic-functions -O2
-Wl,-soname -Wl,libglib-2.0.so.0 -o .libs/libglib-2.0.so.0.4400.0
In particular it dropped the -fsanitize=undefined flag.
If I invoke the libtool-generated GCC command line with '-fsanitize=undefined'
added then there's no ICE.
$ gcc -flto -shared -fPIC -DPIC [[.o files]] -Wl,--whole-archive
libcharset/.libs/libcharset.a pcre/.libs/libpcre.a -Wl,--no-whole-archive
-lpthread -flto -O2 -Wl,-Bsymbolic-functions -O2 -Wl,-soname
-Wl,libglib-2.0.so.0 -o .libs/libglib-2.0.so.0.4400.0 -fsanitize=undefined
$ ls -cahl .libs/libglib-2.0.so.0.4400.0
-rwxr-xr-x 1 snoonan snoonan 4.3M Apr 21 03:31 .libs/libglib-2.0.so.0.4400.0
Hmm.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug sanitizer/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127
[not found] <bug-65828-4@http.gcc.gnu.org/bugzilla/>
2015-04-21 10:23 ` [Bug lto/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127 steven at uplinklabs dot net
2015-04-21 10:32 ` steven at uplinklabs dot net
@ 2015-04-21 12:39 ` rguenth at gcc dot gnu.org
2015-04-21 12:50 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-21 12:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |lto
CC| |dodji at gcc dot gnu.org,
| |dvyukov at gcc dot gnu.org,
| |jakub at gcc dot gnu.org,
| |kcc at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
Component|lto |sanitizer
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I remember seeing patches for this kind of issue (for GCC 5 at least). Maybe
somebody remembers.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug sanitizer/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127
[not found] <bug-65828-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2015-04-21 12:39 ` [Bug sanitizer/65828] " rguenth at gcc dot gnu.org
@ 2015-04-21 12:50 ` jakub at gcc dot gnu.org
2015-04-21 12:55 ` mpolacek at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-21 12:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I remember PR65583, but not anything else in that area.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug sanitizer/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127
[not found] <bug-65828-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2015-04-21 12:50 ` jakub at gcc dot gnu.org
@ 2015-04-21 12:55 ` mpolacek at gcc dot gnu.org
2015-07-30 18:04 ` zeccav at gmail dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-04-21 12:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
ICE in streamer_get_builtin_tree doesn't ring a bell for me, sorry.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug sanitizer/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127
[not found] <bug-65828-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2015-04-21 12:55 ` mpolacek at gcc dot gnu.org
@ 2015-07-30 18:04 ` zeccav at gmail dot com
2015-07-30 18:08 ` trippels at gcc dot gnu.org
2022-01-09 9:36 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: zeccav at gmail dot com @ 2015-07-30 18:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
Vittorio Zecca <zeccav at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zeccav at gmail dot com
--- Comment #6 from Vittorio Zecca <zeccav at gmail dot com> ---
(In reply to Steven Noonan from comment #1)
> If you want a nice tarball with a ready-to-go repro case, I've put it here:
>
> https://www.uplinklabs.net/files/lto-65828.tar.xz
>
> Should just be able to run something like:
>
> $ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/lto1 -quiet -dumpdir .libs/
> -dumpbase libglib-2.0.so.0.4400.0.wpa -mtune=generic -march=x86-64
> -mtune=generic -march=x86-64 -auxbase libglib_2_0_la-gallocator -O2 -O2
> -version -fno-trapv -fPIC
> -fltrans-output-list=libglib-2.0.so.0.4400.0.ltrans.out -fwpa
> -fresolution=libglib-2.0.so.res @ccWGeoup.args
>
> from inside the extracted directory and see the issue.
I just run it with gcc-5.2.0 and I got the following error:
./repro.sh
+ /home/vitti/local/gcc-5.2.0/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/lto1
-quiet -dumpdir .libs/ -dumpbase libglib-2.0.so.0.4400.0.wpa -mtune=generic
-march=x86-64 -mtune=generic -march=x86-64 -auxbase libglib_2_0_la-gallocator
-O2 -O2 -version -fno-trapv -fPIC
-fltrans-output-list=libglib-2.0.so.0.4400.0.ltrans.out -fwpa
-fresolution=libglib-2.0.so.res @ccWGeoup.args
GNU GIMPLE (GCC) version 5.2.0 (x86_64-unknown-linux-gnu)
compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.2,
MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 5.2.0 (x86_64-unknown-linux-gnu)
compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.2,
MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
lto1: fatal error: bytecode stream generated with LTO version 3.0 instead of
the expected 4.0
compilation terminated.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug sanitizer/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127
[not found] <bug-65828-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2015-07-30 18:04 ` zeccav at gmail dot com
@ 2015-07-30 18:08 ` trippels at gcc dot gnu.org
2022-01-09 9:36 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-30 18:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Vittorio Zecca from comment #6)
> (In reply to Steven Noonan from comment #1)
> > If you want a nice tarball with a ready-to-go repro case, I've put it here:
> >
> > https://www.uplinklabs.net/files/lto-65828.tar.xz
> >
> > Should just be able to run something like:
> >
> > $ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/lto1 -quiet -dumpdir .libs/
> > -dumpbase libglib-2.0.so.0.4400.0.wpa -mtune=generic -march=x86-64
> > -mtune=generic -march=x86-64 -auxbase libglib_2_0_la-gallocator -O2 -O2
> > -version -fno-trapv -fPIC
> > -fltrans-output-list=libglib-2.0.so.0.4400.0.ltrans.out -fwpa
> > -fresolution=libglib-2.0.so.res @ccWGeoup.args
> >
> > from inside the extracted directory and see the issue.
>
> I just run it with gcc-5.2.0 and I got the following error:
>
> ./repro.sh
> +
> /home/vitti/local/gcc-5.2.0/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/lto1
> -quiet -dumpdir .libs/ -dumpbase libglib-2.0.so.0.4400.0.wpa -mtune=generic
> -march=x86-64 -mtune=generic -march=x86-64 -auxbase
> libglib_2_0_la-gallocator -O2 -O2 -version -fno-trapv -fPIC
> -fltrans-output-list=libglib-2.0.so.0.4400.0.ltrans.out -fwpa
> -fresolution=libglib-2.0.so.res @ccWGeoup.args
> GNU GIMPLE (GCC) version 5.2.0 (x86_64-unknown-linux-gnu)
> compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.2, MPC
> version 1.0.2
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> GNU GIMPLE (GCC) version 5.2.0 (x86_64-unknown-linux-gnu)
> compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.2, MPC
> version 1.0.2
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> lto1: fatal error: bytecode stream generated with LTO version 3.0 instead of
> the expected 4.0
> compilation terminated.
That is expected. Using lto files from older compilers is not supported.
>From gcc-bugs-return-493775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 30 18:12:59 2015
Return-Path: <gcc-bugs-return-493775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72747 invoked by alias); 30 Jul 2015 18:12:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72720 invoked by uid 48); 30 Jul 2015 18:12:56 -0000
From: "aoliva at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/67000] [6 Regression] ICE in split_complex_args, at function.c:2325 on ppc64le
Date: Thu, 30 Jul 2015 18:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aoliva at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-67000-4-beGDJCuqBt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67000-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67000-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-07/txt/msg02665.txt.bz2
Content-length: 1025
https://gcc.gnu.org/bugzilla/show_bug.cgi?idg000
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-07-30
Assignee|unassigned at gcc dot gnu.org |aoliva at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
The problem initially reported in this bug is now fixed in the git branch
aoliva/pr64164. I'm not sure how to go about duplicating the one in comment 1,
but, having fixed a number of additional split_complex issues since the patch
that caused the problems was put in, I hope it's fixed too. Gary, would you
please detail the toplevel configure and build command lines to trigger it, or
perhaps give the branch a try and confirm that it fixes the problem? Thanks,
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug sanitizer/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127
[not found] <bug-65828-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2015-07-30 18:08 ` trippels at gcc dot gnu.org
@ 2022-01-09 9:36 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-09 9:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 69254, fixed for GCC 6.
*** This bug has been marked as a duplicate of bug 69254 ***
^ permalink raw reply [flat|nested] 8+ messages in thread