public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error"
@ 2022-01-26 16:26 kloczko.tomasz at gmail dot com
2022-01-26 16:27 ` [Bug lto/104245] " kloczko.tomasz at gmail dot com
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: kloczko.tomasz at gmail dot com @ 2022-01-26 16:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
Bug ID: 104245
Summary: abseil-cpp 20211102.0 fails with "internal compiler
error"
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: kloczko.tomasz at gmail dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
https://github.com/abseil/abseil-cpp//archive/20211102.0/abseil-cpp-20211102.0.tar.gz
%build
%cmake \
-D ABSL_USE_EXTERNAL_GOOGLETEST=ON \
-D BUILD_TESTING=ON \
Build fails on linking
[ 52%] Building CXX object
absl/flags/CMakeFiles/absl_flags_flag_test.dir/flag_test.cc.o
cd
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20211102.0/x86_64-redhat-linux-gnu/absl/flags
&& /usr/bin/g++ -DGTEST_LINKED_AS_SHARED_LIBRARY=1
-I/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20211102.0 -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG
-Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security
-Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef
-Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings
-DNOMINMAX -Wno-conversion-null -Wno-deprecated-declarations
-Wno-missing-declarations -Wno-sign-compare -Wno-unused-function
-Wno-unused-parameter -Wno-unused-private-field -MD -MT
absl/flags/CMakeFiles/absl_flags_flag_test.dir/flag_test.cc.o -MF
CMakeFiles/absl_flags_flag_test.dir/flag_test.cc.o.d -o
CMakeFiles/absl_flags_flag_test.dir/flag_test.cc.o -c
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20211102.0/absl/flags/flag_test.cc
*** WARNING *** there are active plugins, do not report this as a bug unless
you can reproduce it without enabling any plugins.
Event | Plugins
PLUGIN_FINISH_UNIT | annobin: Generate final annotations
PLUGIN_START_UNIT | annobin: Generate global annotations
PLUGIN_ALL_PASSES_START | annobin: Generate per-function annotations
PLUGIN_ALL_PASSES_END | annobin: Register per-function end symbols
during IPA pass: modref
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20211102.0/absl/flags/flag_test.cc:979:1:
internal compiler error: tree code ‘template_type_parm’ is not supported in LTO
streams
979 | }
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
I'm not sure where I can find that preporocessed source.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/104245] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
@ 2022-01-26 16:27 ` kloczko.tomasz at gmail dot com
2022-01-26 16:41 ` marxin at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: kloczko.tomasz at gmail dot com @ 2022-01-26 16:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
--- Comment #1 from Tomasz Kłoczko <kloczko.tomasz at gmail dot com> ---
gcc from rawhide
[tkloczko@ss-desktop SRPMS]$ rpm -q gcc-c++
gcc-c++-12.0.1-0.2.fc36.x86_64
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/104245] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
2022-01-26 16:27 ` [Bug lto/104245] " kloczko.tomasz at gmail dot com
@ 2022-01-26 16:41 ` marxin at gcc dot gnu.org
2022-01-26 16:41 ` pinskia at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-01-26 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Can you please attach pre-processed source file (-E)?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/104245] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
2022-01-26 16:27 ` [Bug lto/104245] " kloczko.tomasz at gmail dot com
2022-01-26 16:41 ` marxin at gcc dot gnu.org
@ 2022-01-26 16:41 ` pinskia at gcc dot gnu.org
2022-01-26 16:42 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-26 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
First disable the plugin and then add -save-temps to the command line and
remove -pipe and then the preprocessed source will be something *.ii
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/104245] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
` (2 preceding siblings ...)
2022-01-26 16:41 ` pinskia at gcc dot gnu.org
@ 2022-01-26 16:42 ` pinskia at gcc dot gnu.org
2022-01-26 18:40 ` [Bug c++/104245] " pinskia at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-26 16:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2022-01-26
Status|UNCONFIRMED |WAITING
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/104245] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
` (3 preceding siblings ...)
2022-01-26 16:42 ` pinskia at gcc dot gnu.org
@ 2022-01-26 18:40 ` pinskia at gcc dot gnu.org
2022-01-27 11:45 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-26 18:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Well I can't reproduce it with the following cmake options:
cmake -DABSL_USE_EXTERNAL_GOOGLETEST=ON -DBUILD_TESTING=off
make
Also cmake projects are a pain to work with really.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/104245] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
` (4 preceding siblings ...)
2022-01-26 18:40 ` [Bug c++/104245] " pinskia at gcc dot gnu.org
@ 2022-01-27 11:45 ` jakub at gcc dot gnu.org
2022-01-27 12:59 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-27 11:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I've reproduce it with current trunk and I am cvise reducing it right now.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/104245] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
` (5 preceding siblings ...)
2022-01-27 11:45 ` jakub at gcc dot gnu.org
@ 2022-01-27 12:59 ` jakub at gcc dot gnu.org
2022-01-27 15:39 ` [Bug c++/104245] [12 Regression] " kloczko.tomasz at gmail dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-27 12:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
Priority|P3 |P1
CC| |jason at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase (just -flto needed):
template <typename T> struct A { alignas(T) alignas(int) int a; };
struct B { B(const char *, const char *, int, int); A<int> b; };
B c {"", "", 0, 0};
Started with r12-299-ga0fdff3cf33f72848d3f894272431a5d49fe6a16
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/104245] [12 Regression] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
` (6 preceding siblings ...)
2022-01-27 12:59 ` jakub at gcc dot gnu.org
@ 2022-01-27 15:39 ` kloczko.tomasz at gmail dot com
2022-01-27 15:48 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: kloczko.tomasz at gmail dot com @ 2022-01-27 15:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
--- Comment #7 from Tomasz Kłoczko <kloczko.tomasz at gmail dot com> ---
Created attachment 52303
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52303&action=edit
flag_test.cc.o.gz
gzipped file generated by
/usr/bin/g++ -save-temps -DGTEST_LINKED_AS_SHARED_LIBRARY=1
-I/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20211102.0 -O2 -g
-grecord-gcc-switches -E -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections
-flto=auto -flto-partition=none -DNDEBUG -Wall -Wextra -Wcast-qual
-Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings
-Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla
-Wwrite-strings -DNOMINMAX -Wno-conversion-null -Wno-deprecated-declarations
-Wno-missing-declarations -Wno-sign-compare -Wno-unused-function
-Wno-unused-parameter -Wno-unused-private-field -MD -MT
absl/flags/CMakeFiles/absl_flags_flag_test.dir/flag_test.cc.o -MF
CMakeFiles/absl_flags_flag_test.dir/flag_test.cc.o.d -o
CMakeFiles/absl_flags_flag_test.dir/flag_test.cc.o -c
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20211102.0/absl/flags/flag_test.cc
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/104245] [12 Regression] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
` (7 preceding siblings ...)
2022-01-27 15:39 ` [Bug c++/104245] [12 Regression] " kloczko.tomasz at gmail dot com
@ 2022-01-27 15:48 ` jason at gcc dot gnu.org
2022-01-27 21:55 ` cvs-commit at gcc dot gnu.org
2022-01-27 22:01 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2022-01-27 15:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/104245] [12 Regression] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
` (8 preceding siblings ...)
2022-01-27 15:48 ` jason at gcc dot gnu.org
@ 2022-01-27 21:55 ` cvs-commit at gcc dot gnu.org
2022-01-27 22:01 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-27 21:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:66b86171188dcb61d2d0e0a4a98a7467e58a84a7
commit r12-6904-g66b86171188dcb61d2d0e0a4a98a7467e58a84a7
Author: Jason Merrill <jason@redhat.com>
Date: Thu Jan 27 16:12:18 2022 -0500
c++: dependent and non-dependent attributes [PR104245]
A flaw in my patch for PR51344 was that cplus_decl_attributes calls
decl_attributes after save_template_attributes, which messes up the
ordering
that save_template_attributes set up. Fixed by splitting
save_template_attributes around the call to decl_attributes.
PR c++/104245
PR c++/51344
gcc/cp/ChangeLog:
* decl2.cc (save_template_attributes): Take late attrs as parm.
(cplus_decl_attributes): Call it after decl_attributes,
splice_template_attributes before.
gcc/testsuite/ChangeLog:
* g++.dg/lto/alignas1_0.C: New test.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/104245] [12 Regression] abseil-cpp 20211102.0 fails with "internal compiler error"
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
` (9 preceding siblings ...)
2022-01-27 21:55 ` cvs-commit at gcc dot gnu.org
@ 2022-01-27 22:01 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2022-01-27 22:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-01-27 22:01 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 16:26 [Bug lto/104245] New: abseil-cpp 20211102.0 fails with "internal compiler error" kloczko.tomasz at gmail dot com
2022-01-26 16:27 ` [Bug lto/104245] " kloczko.tomasz at gmail dot com
2022-01-26 16:41 ` marxin at gcc dot gnu.org
2022-01-26 16:41 ` pinskia at gcc dot gnu.org
2022-01-26 16:42 ` pinskia at gcc dot gnu.org
2022-01-26 18:40 ` [Bug c++/104245] " pinskia at gcc dot gnu.org
2022-01-27 11:45 ` jakub at gcc dot gnu.org
2022-01-27 12:59 ` jakub at gcc dot gnu.org
2022-01-27 15:39 ` [Bug c++/104245] [12 Regression] " kloczko.tomasz at gmail dot com
2022-01-27 15:48 ` jason at gcc dot gnu.org
2022-01-27 21:55 ` cvs-commit at gcc dot gnu.org
2022-01-27 22:01 ` jason 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).