https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83121
Bug ID: 83121 Summary: [8 Regression] ICE: in linemap_ordinary_map_lookup, at libcpp/line-map.c:995 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org Target Milestone: --- Building Node.js on ppc64le with "-g -flto" leads to: g++ -g -Wno-class-memaccess -Wno-ignored-qualifiers -flto=60 -pthread -rdynamic -m64 -Wl,--whole-archive,/home/trippels/node/out/Release/obj.target/deps/openssl/libopenssl.a -Wl,--no-whole-archive -Wl,-z,noexecstack -Wl,--whole-archive /home/trippels/node/out/Release/obj.target/deps/v8/src/libv8_base.a -Wl,--no-whole-archive -pthread -o /home/trippels/node/out/Release/cctest -Wl,--start-group /home/trippels/node/out/Release/obj.target/cctest/test/cctest/node_module_reg.o /home/trippels/node/out/Release/obj.target/cctest/test/cctest/node_test_fixture.o /home/trippels/node/out/Release/obj.target/cctest/test/cctest/test_aliased_buffer.o /home/trippels/node/out/Release/obj.target/cctest/test/cctest/test_base64.o /home/trippels/node/out/Release/obj.target/cctest/test/cctest/test_environment.o /home/trippels/node/out/Release/obj.target/cctest/test/cctest/test_util.o /home/trippels/node/out/Release/obj.target/cctest/test/cctest/test_url.o /home/trippels/node/out/Release/obj.target/cctest/test/cctest/test_inspector_socket.o /home/trippels/node/out/Release/obj.target/cctest/test/cctest/test_inspector_socket_server.o /home/trippels/node/out/Release/obj.target/deps/gtest/libgtest.a /home/trippels/node/out/Release/obj.target/deps/zlib/libzlib.a /home/trippels/node/out/Release/obj.target/deps/openssl/libopenssl.a /home/trippels/node/out/Release/obj.target/deps/http_parser/libhttp_parser.a /home/trippels/node/out/Release/obj.target/deps/uv/libuv.a /home/trippels/node/out/Release/obj.target/deps/nghttp2/libnghttp2.a /home/trippels/node/out/Release/obj.target/deps/v8/src/libv8_libplatform.a /home/trippels/node/out/Release/obj.target/tools/icu/libicui18n.a /home/trippels/node/out/Release/obj.target/deps/cares/libcares.a /home/trippels/node/out/Release/obj.target/deps/v8/src/libv8_libbase.a /home/trippels/node/out/Release/obj.target/deps/v8/src/libv8_base.a /home/trippels/node/out/Release/obj.target/deps/v8/src/libv8_libsampler.a /home/trippels/node/out/Release/obj.target/tools/icu/libicuucx.a /home/trippels/node/out/Release/obj.target/tools/icu/libicudata.a /home/trippels/node/out/Release/obj.target/tools/icu/libicustubdata.a /home/trippels/node/out/Release/obj.target/deps/v8/src/libv8_snapshot.a /home/trippels/node/out/Release/obj.target/node/src/async_wrap.o /home/trippels/node/out/Release/obj.target/node/src/env.o /home/trippels/node/out/Release/obj.target/node/src/node.o /home/trippels/node/out/Release/obj.target/node/src/node_buffer.o /home/trippels/node/out/Release/obj.target/node/src/node_debug_options.o /home/trippels/node/out/Release/obj.target/node/src/node_i18n.o /home/trippels/node/out/Release/obj.target/node/src/node_perf.o /home/trippels/node/out/Release/obj.target/node/src/node_platform.o /home/trippels/node/out/Release/obj.target/node/src/node_url.o /home/trippels/node/out/Release/obj.target/node/src/util.o /home/trippels/node/out/Release/obj.target/node/src/string_bytes.o /home/trippels/node/out/Release/obj.target/node/src/string_search.o /home/trippels/node/out/Release/obj.target/node/src/stream_base.o /home/trippels/node/out/Release/obj.target/node/src/node_constants.o /home/trippels/node/out/Release/obj.target/node/src/tracing/agent.o /home/trippels/node/out/Release/obj.target/node/src/tracing/node_trace_buffer.o /home/trippels/node/out/Release/obj.target/node/src/tracing/node_trace_writer.o /home/trippels/node/out/Release/obj.target/node/src/tracing/trace_event.o /home/trippels/node/out/Release/obj.target/node/gen/node_javascript.o /home/trippels/node/out/Release/obj.target/node/src/node_crypto.o /home/trippels/node/out/Release/obj.target/node/src/node_crypto_bio.o /home/trippels/node/out/Release/obj.target/node/src/node_crypto_clienthello.o /home/trippels/node/out/Release/obj.target/node/src/tls_wrap.o /home/trippels/node/out/Release/obj.target/node/src/inspector_agent.o /home/trippels/node/out/Release/obj.target/node/src/inspector_io.o /home/trippels/node/out/Release/obj.target/node/src/inspector_js_api.o /home/trippels/node/out/Release/obj.target/node/src/inspector_socket.o /home/trippels/node/out/Release/obj.target/node/src/inspector_socket_server.o /home/trippels/node/out/Release/obj.target/node/src/backtrace_posix.o -lm -ldl -lrt -Wl,--end-group ../src/env.h:389: warning: type ‘struct AsyncHooks’ violates the C++ One Definition Rule [-Wodr] class AsyncHooks { ../src/env.h:389: note: a different type is defined in another translation unit class AsyncHooks { ../src/env.h:449: note: the first difference of corresponding definitions is field ‘providers_’ v8::Eternal<v8::String> providers_[AsyncWrap::PROVIDERS_LENGTH]; ../src/env.h:449: note: a field of same name but different type is defined in another translation unit v8::Eternal<v8::String> providers_[AsyncWrap::PROVIDERS_LENGTH]; lto1: internal compiler error: in linemap_ordinary_map_lookup, at libcpp/line-map.c:995 0x112ebdcf linemap_ordinary_map_lookup ../../gcc/libcpp/line-map.c:995 0x112ebdcf linemap_lookup(line_maps*, unsigned int) ../../gcc/libcpp/line-map.c:948 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /home/trippels/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status Sorry, no testcase yet.