Bug 2043937 - flamethrower no longer builds on ppc64le, fails on catch2.hpp
Summary: flamethrower no longer builds on ppc64le, fails on catch2.hpp
Keywords:
Status: CLOSED DUPLICATE of bug 2043040
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: ppc64le
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-22 16:34 UTC by Petr Menšík
Modified: 2022-01-25 11:26 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-25 11:26:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Menšík 2022-01-22 16:34:12 UTC
Description of problem:
After fixed flamethrower package on f36 mass rebuild, it builds fine on all architectures but ppc64le [1]. I have tried also additional scratch build [2], which failed again [2].

Version-Release number of selected component (if applicable):
gcc-12.0.1-0.2.fc36.ppc64le
catch-devel-2.13.5-2.fc35.ppc64le
flamethrower-0.11.0-11.fc36

How reproducible:
reliable

Steps to Reproduce:
1. fedpkg clone --anonymous flamethrower
2. cd flamethrower
3. fedpkg scratch-build --arches ppc64le

Actual results:
gmake[2]: Entering directory '/builddir/build/BUILD/flamethrower-0.11.0/redhat-linux-build'
gmake[2]: Entering directory '/builddir/build/BUILD/flamethrower-0.11.0/redhat-linux-build'
[ 76%] Building CXX object CMakeFiles/tests.dir/tests/main.cpp.o
/usr/bin/g++ -DDOH_ENABLE -DUSE_HTTP_PARSER -I/builddir/build/BUILD/flamethrower-0.11.0/tests -I/builddir/build/BUILD/flamethrower-0.11.0/flame -I/usr/include/ldns/ldns -I/usr/include/p11-kit-1 -I/builddir/build/BUILD/flamethrower-0.11.0/3rd/base64url -O2 -flto=auto -ffat-lto-objects -fexceptions -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 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -g -Wall -std=c++17 -MD -MT CMakeFiles/tests.dir/tests/main.cpp.o -MF CMakeFiles/tests.dir/tests/main.cpp.o.d -o CMakeFiles/tests.dir/tests/main.cpp.o -c /builddir/build/BUILD/flamethrower-0.11.0/tests/main.cpp
[ 84%] Building CXX object CMakeFiles/flame.dir/flame/main.cpp.o
/usr/bin/g++ -DDOH_ENABLE -DUSE_HTTP_PARSER -I/usr/include/docopt -I/builddir/build/BUILD/flamethrower-0.11.0/3rd/cpp-httplib -I/usr/include/ldns/ldns -I/usr/include/p11-kit-1 -I/builddir/build/BUILD/flamethrower-0.11.0/3rd/base64url -O2 -flto=auto -ffat-lto-objects -fexceptions -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 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -g -Wall -std=c++17 -MD -MT CMakeFiles/flame.dir/flame/main.cpp.o -MF CMakeFiles/flame.dir/flame/main.cpp.o.d -o CMakeFiles/flame.dir/flame/main.cpp.o -c /builddir/build/BUILD/flamethrower-0.11.0/flame/main.cpp
*** 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 RTL pass: final
In file included from /builddir/build/BUILD/flamethrower-0.11.0/tests/main.cpp:2:
/usr/include/catch2/catch.hpp: In member function 'Catch::LazyExpression::LazyExpression(bool)':
/usr/include/catch2/catch.hpp:8185:5: internal compiler error: Segmentation fault
 8185 |     LazyExpression::LazyExpression( bool isNegated )
      |     ^~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
[ 92%] Linking CXX executable flame
/usr/bin/cmake -E cmake_link_script CMakeFiles/flame.dir/link.txt --verbose=1
/usr/bin/g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -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 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -g -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/flamethrower-0.11.0/.package_note-flamethrower-0.11.0-11.fc36.ppc64le.ld CMakeFiles/flame.dir/flame/main.cpp.o -o flame  libflamecore.so -L/usr/lib64 -luv -luv -L/usr/lib64 -ldocopt -ldocopt /usr/lib64/libhttp_parser.so 
gmake[2]: Leaving directory '/builddir/build/BUILD/flamethrower-0.11.0/redhat-linux-build'
[ 92%] Built target flame
The bug is not reproducible, so it is likely a hardware or OS problem.
gmake[2]: Leaving directory '/builddir/build/BUILD/flamethrower-0.11.0/redhat-linux-build'
gmake[2]: *** [CMakeFiles/tests.dir/build.make:79: CMakeFiles/tests.dir/tests/main.cpp.o] Error 1
gmake[1]: Leaving directory '/builddir/build/BUILD/flamethrower-0.11.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:142: CMakeFiles/tests.dir/all] Error 2
gmake: *** [Makefile:139: all] Error 2

Expected results:
Passed build or reliable failure on all architectures.

Additional info:

1. https://koji.fedoraproject.org/koji/taskinfo?taskID=81665930
2. https://koji.fedoraproject.org/koji/taskinfo?taskID=81666358

Comment 1 Mattias Ellert 2022-01-24 09:36:46 UTC
The build of HepMC3 fails in the same way on the same architecture (ppc64le):

[  8%] Building CXX object CMakeFiles/HepMC3.dir/src/GenEvent.cc.o
/usr/bin/g++ -DHEPMC3_ROOTIO -DHepMC3_EXPORTS -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/usr/include/root -I/builddir/build/BUILD/HepMC3-3.2.4/include -O2 -flto=auto -ffat-lto-objects -fexceptions -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 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -std=c++17 -pipe -fsigned-char -pthread -Wno-strict-aliasing -DNDEBUG -fPIC -std=c++17 -MD -MT CMakeFiles/HepMC3.dir/src/GenEvent.cc.o -MF CMakeFiles/HepMC3.dir/src/GenEvent.cc.o.d -o CMakeFiles/HepMC3.dir/src/GenEvent.cc.o -c /builddir/build/BUILD/HepMC3-3.2.4/src/GenEvent.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 RTL pass: final
/builddir/build/BUILD/HepMC3-3.2.4/src/GenEvent.cc: In member function 'HepMC3::GenEvent::GenEvent(std::shared_ptr<HepMC3::GenRunInfo>, HepMC3::Units::MomentumUnit, HepMC3::Units::LengthUnit)':
/builddir/build/BUILD/HepMC3-3.2.4/src/GenEvent.cc:28:1: internal compiler error: Segmentation fault
   28 | GenEvent::GenEvent(std::shared_ptr<GenRunInfo> run,
      | ^~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
gmake[2]: *** [CMakeFiles/HepMC3.dir/build.make:163: CMakeFiles/HepMC3.dir/src/GenEvent.cc.o] Error 1
gmake[2]: Leaving directory '/builddir/build/BUILD/HepMC3-3.2.4/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:253: CMakeFiles/HepMC3.dir/all] Error 2
gmake[1]: Leaving directory '/builddir/build/BUILD/HepMC3-3.2.4/redhat-linux-build'
gmake: *** [Makefile:169: all] Error 2

Comment 2 Petr Menšík 2022-01-25 11:26:26 UTC
ICE package seems to hit the same issue in the same file, marking it as a duplicate of bug #2043040.

There are more potential duplicate bugs for internal compiler error, bug #2043246 for example. I expect similar fix would fix all of them. Make number of bugs to reference/solve smaller.

*** This bug has been marked as a duplicate of bug 2043040 ***


Note You need to log in before you can comment on or make changes to this bug.