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.

Reply via email to