Description of problem: On a POWER8 system, g++ fails with this error: ITK/Modules/Segmentation/KLMRegionGrowing/test/itkRegionGrow2DTest.cxx:1973:1: error: unrecognizable insn: } // End test_regiongrow3D() ^ (insn 4281 1410 4282 193 (set (reg:DI 10 10) (pre_inc:DI (reg:DI 30 30 [orig:237 ivtmp.11293 ] [237]))) ITK/Modules/Segmentation/KLMRegionGrowing/test/itkRegionGrow2DTest.cxx:1776 -1 (nil)) ITK/Modules/Segmentation/KLMRegionGrowing/test/itkRegionGrow2DTest.cxx:1979:1: internal compiler error: in extract_insn, at recog.c:2154 Version-Release number of selected component (if applicable): This is on CentOS 7.4 with the system compiler. $ g++ --version g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) Copyright (C) 2015 Free Software Foundation, Inc. Trying to build ITK, 4.13.0: https://github.com/InsightSoftwareConsortium/ITK How reproducible: Steps to Reproduce: 1. git clone https://github.com/InsightSoftwareConsortium/ITK && cd ITK && git checkout v4.13.0 && cd .. 2. mkdir ITK-build && cd ITK-build && cmake ../ITK 3. make Actual results: Compiler fails with internal error. Expected results: This builds with many other compilers and platforms.
Created attachment 1407297 [details] bz1554030.ii Attaching the preprocessed source
I'm moving this to DTS 8.1: this problem seems to be unfixable for RHEL 7. The workaround for RHEL 7 is to compile the TU with -O. This problem is fixed in DTS 8: $ g++ --version g++ (GCC) 8.2.1 20180905 (Red Hat 8.2.1-3) $ g++ -c x.ii -O2 # no crash
Since it's been fixed, dev_ack+ for inclusion in DTS 8.1.
Reproduced with RHEL gcc on powerpc, DTS gcc works. VERIFIED for devtoolset-8-gcc-8.3.1-3.el7.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:1446