https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96343
Bug ID: 96343 Summary: LTO ICE on PPC64le Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: axel.huebl at web dot de CC: marxin at gcc dot gnu.org Target Milestone: --- Hi, we are trying to compile a few larger HPC libraries and applications with GCC and CMake using LTO support on Power9 (ppc64le). With the available GCC versions we have on Summit (OLCF), 6.4.0 - 9.1.0, we reproducibly tap into an ICE in the LTO step. GCC 6.4.0: lto1: internal compiler error: invalid resolution in the resolution file 0x101d0e93 lto_resolution_read /sw/summit/gcc/6.4.0/src/gcc-6.4.0/gcc/lto/lto.c:1923 0x101d0e93 lto_file_read /sw/summit/gcc/6.4.0/src/gcc-6.4.0/gcc/lto/lto.c:2092 0x101d0e93 read_cgraph_and_symbols /sw/summit/gcc/6.4.0/src/gcc-6.4.0/gcc/lto/lto.c:2806 0x101d0e93 lto_main() /sw/summit/gcc/6.4.0/src/gcc-6.4.0/gcc/lto/lto.c:3310 GCC 7.4.0: lto1: internal compiler error: invalid resolution in the resolution file 0x101a589b lto_resolution_read /sw/summit/gcc/7.4.0/src/gcc-7.4.0/gcc/lto/lto.c:1939 0x101a589b lto_file_read /sw/summit/gcc/7.4.0/src/gcc-7.4.0/gcc/lto/lto.c:2108 0x101a589b read_cgraph_and_symbols /sw/summit/gcc/7.4.0/src/gcc-7.4.0/gcc/lto/lto.c:2824 0x101a589b lto_main() /sw/summit/gcc/7.4.0/src/gcc-7.4.0/gcc/lto/lto.c:3341 GCC 9.1.0: lto1: internal compiler error: invalid line in the resolution file 0x101915bb lto_resolution_read /tmp/belhorn/gcc-build-9.1.0-alpha+20190716/gcc-9.1.0/gcc/lto/lto.c:1957 0x101915bb lto_file_read /tmp/belhorn/gcc-build-9.1.0-alpha+20190716/gcc-9.1.0/gcc/lto/lto.c:2142 0x10191c57 read_cgraph_and_symbols /tmp/belhorn/gcc-build-9.1.0-alpha+20190716/gcc-9.1.0/gcc/lto/lto.c:2849 0x10191c57 lto_main() /tmp/belhorn/gcc-build-9.1.0-alpha+20190716/gcc-9.1.0/gcc/lto/lto.c:3387 The problem occurs with the library https://github.com/ornladios/ADIOS2 or the application https://github.com/ECP-WarpX/WarpX independently, given one adds set_property(TARGET WarpX PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) to the latter's CMakeLists.txt, anywhere after add_executable(WarpX) . We try to derive a smaller example but have not arrived at one yet. Maybe the ICE line numbers above can hint us where to look? Ref.: https://github.com/ornladios/ADIOS2/issues/1524#issuecomment-662783738