public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/65995] New: LTO: ICE in add_symbol_to_partition_1 for debug build
@ 2015-05-03 18:27 daniel.f.starke at freenet dot de
  2015-05-04 11:13 ` [Bug lto/65995] " ktietz at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: daniel.f.starke at freenet dot de @ 2015-05-03 18:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65995

            Bug ID: 65995
           Summary: LTO: ICE in add_symbol_to_partition_1 for debug build
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.f.starke at freenet dot de
  Target Milestone: ---

Using GCC 5.1.0 compiled as:
COLLECT_GCC=E:\msys\mingw64-64\bin\g++.exe
COLLECT_LTO_WRAPPER=e:/msys/mingw64-64/bin/../libexec/gcc/x86_64-w64-mingw32/5.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../src/gcc-5.1.0/configure --host=x86_64-w64-mingw32
--enable-languages=c,c++ --enable-seh-exceptions --disable-nls --disable-shared
--enable-static --enable-fully-dynamic-string --enable-lto --enable-plugins
--enable-libgomp --with-dwarf2 --disable-win32-registry
--enable-version-specific-runtime-libs --prefix=/mingw64-64
--with-sysroot=/mingw64-64 --target=x86_64-w64-mingw32 --enable-targets=all
--enable-checking=release --with-gmp=/usr/new-gcc/lib/gmp-5.0.5
--with-mpfr=/usr/new-gcc/lib/mpfr-2.4.2 --with-mpc=/usr/new-gcc/lib/mpc-0.9
--with-isl=/usr/new-gcc/lib/isl-0.12.2
--with-cloog=/usr/new-gcc/lib/cloog-0.18.1 --with-host-libstdcxx='-lstdc++
-lsupc++' --disable-cloog-version-check --enable-cloog-backend=isl
Thread model: win32
gcc version 5.1.0 (GCC)

produces an ICE at lto/lto-partition.c:211 for me when linking as:
g++ -static -Wl,--allow-multiple-definition -flto -Llib64 -L../libpcfxx/lib64
-o bin/pp.exe lib64/libpcfxx.a bin/pp.o bin/posix_main.o bin/data/pp/Script.o
bin/data/pp/Execution.o bin/data/pp/Variable.o -lpcfxx -lboost_program_options
-lboost_locale -lboost_filesystem -lboost_iostreams -lboost_date_time
-lboost_thread -lboost_regex -lboost_system -lpcf -lws2_32

The command line passed to lto1.exe is:
e:/msys/mingw64-64/lib/gcc/../../libexec/gcc/x86_64-w64-mingw32/5.1.0/lto1.exe
-quiet -dumpdir bin/ -dumpbase pp.exe.wpa -mstackrealign -mtune=core2
-march=core2 -municode -mtune=generic -march=x86-64 -auxbase pp -Og
-fexceptions -fmath-errno -fsigned-zeros -ftrapping-math -fno-trapv
-fno-strict-overflow -fno-openmp -fno-openacc
-fltrans-output-list=C:\Users\a\AppData\Local\Temp\ccx77s2N.ltrans.out -fwpa
@C:\Users\a\AppData\Local\Temp\ccZr8s2N

The backtrace is:
#0  add_symbol_to_partition_1 (part=0x1f6d6fb0, node=0x2ceed930) at
../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:211
        added = false
        c = <value optimized out>
        ref = <value optimized out>
        node1 = 0x2cee1000
        __FUNCTION__ = "add_symbol_to_partition_1"
#1  0x000000000043462d in add_symbol_to_partition (part=0x1f6d6fb0,
node=0x2ceed930) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:264
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition"
#2  0x0000000000434818 in add_references_to_partition (part=0x1f6d6fb0,
node=0x2ce82480) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:115
        i = 1
        ref = 0x2cfb6030
#3  0x0000000000434510 in add_symbol_to_partition_1 (part=0x1f6d6fb0,
node=0x2ce82480) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:196
        c = <value optimized out>
        ref = <value optimized out>
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition_1"
#4  0x000000000043462d in add_symbol_to_partition (part=0x1f6d6fb0,
node=0x2ce82480) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:264
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition"
#5  0x0000000000434818 in add_references_to_partition (part=0x1f6d6fb0,
node=0x2ce87620) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:115
        i = 0
        ref = 0x2cfabf80
#6  0x0000000000434510 in add_symbol_to_partition_1 (part=0x1f6d6fb0,
node=0x2ce87620) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:196
        c = <value optimized out>
        ref = <value optimized out>
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition_1"
#7  0x00000000004344a6 in add_symbol_to_partition_1 (part=0x1f6d6fb0,
node=0x2ce877a8) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:181
        e = 0x2cf5b750
        c = <value optimized out>
        ref = <value optimized out>
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition_1"
#8  0x00000000004344a6 in add_symbol_to_partition_1 (part=0x1f6d6fb0,
node=0x2ce87930) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:181
        e = 0x2cf5b7b8
        c = <value optimized out>
        ref = <value optimized out>
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition_1"
#9  0x00000000004344a6 in add_symbol_to_partition_1 (part=0x1f6d6fb0,
node=0x2ce87ab8) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:181
        e = 0x2cf5b820
        c = <value optimized out>
        ref = <value optimized out>
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition_1"
#10 0x00000000004344a6 in add_symbol_to_partition_1 (part=0x1f6d6fb0,
node=0x2cedc620) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:181
        e = 0x2cf7ff08
        c = <value optimized out>
        ref = <value optimized out>
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition_1"
#11 0x000000000043462d in add_symbol_to_partition (part=0x1f6d6fb0,
node=0x2cedc620) at ../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:264
        node1 = <value optimized out>
        __FUNCTION__ = "add_symbol_to_partition"
#12 0x00000000004358d1 in lto_balanced_map (n_lto_partitions=32) at
../../../src/gcc-5.1.0/gcc/lto/lto-partition.c:550
        n_nodes = 3144
        n_varpool_nodes = 0
        varpool_pos = 0
        best_varpool_pos = 0
        order = 0x259ec9e0
        noreorder = {<vec<cgraph_node*, va_heap, vl_ptr>> = {m_vec = 0x0}, <No
data fields>}
        varpool_order = {<vec<varpool_node*, va_heap, vl_ptr>> = {m_vec = 0x0},
<No data fields>}
        i = 462
        node = <value optimized out>
        total_size = 164769
        best_total_size = 164769
        partition_size = 6021
        partition = 0x1f6d6fb0
        last_visited_node = 292
        vnode = <value optimized out>
        cost = 348476
        internal = 411946
        best_n_nodes = 292
        best_i = 461
        best_cost = 348476
        best_internal = 411946
        npartitions = 5
        current_order = 161698
        noreorder_pos = 0
        __FUNCTION__ = "lto_balanced_map"
        next_nodes = {<vec<symtab_node*, va_heap, vl_ptr>> = {m_vec = 0x0}, <No
data fields>}
#13 0x000000000042fd09 in do_whole_program_analysis () at
../../../src/gcc-5.1.0/gcc/lto/lto.c:3324
        node = <value optimized out>
        __FUNCTION__ = "do_whole_program_analysis"
#14 0x0000000000431b70 in lto_main () at
../../../src/gcc-5.1.0/gcc/lto/lto.c:3485
No locals.
#15 0x00000000007a45d2 in compile_file () at
../../../src/gcc-5.1.0/gcc/toplev.c:594
No locals.
#16 0x00000000007a6675 in do_compile () at
../../../src/gcc-5.1.0/gcc/toplev.c:2076
        i = <value optimized out>
#17 0x00000000007a686d in toplev::main (this=0x1d16fe30, argc=30,
argv=0x2fa730) at ../../../src/gcc-5.1.0/gcc/toplev.c:2174
No locals.
#18 0x0000000000ec0b66 in main (argc=26, argv=0x2e77f0) at
../../../src/gcc-5.1.0/gcc/main.c:39
        toplev = {m_use_TV_TOTAL = true, m_init_signals = true}

I do not know how to reproduce this bug with less code at the moment.
Furthermode, the source is not open thus I cannot post it here. But I can help
to debug this problem if someone can tell me where I should look at. May be
related to PR65380.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/65995] LTO: ICE in add_symbol_to_partition_1 for debug build
  2015-05-03 18:27 [Bug lto/65995] New: LTO: ICE in add_symbol_to_partition_1 for debug build daniel.f.starke at freenet dot de
@ 2015-05-04 11:13 ` ktietz at gcc dot gnu.org
  2015-05-05 17:15 ` daniel.f.starke at freenet dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu.org @ 2015-05-04 11:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65995

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-05-04
                 CC|                            |ktietz at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Kai Tietz <ktietz at gcc dot gnu.org> ---
It might be that this bug is a duplicate of pr/65559.
Could you please check if with current trunk (or 5-branch) problem still
exists?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/65995] LTO: ICE in add_symbol_to_partition_1 for debug build
  2015-05-03 18:27 [Bug lto/65995] New: LTO: ICE in add_symbol_to_partition_1 for debug build daniel.f.starke at freenet dot de
  2015-05-04 11:13 ` [Bug lto/65995] " ktietz at gcc dot gnu.org
@ 2015-05-05 17:15 ` daniel.f.starke at freenet dot de
  2015-05-06  4:47 ` daniel.f.starke at freenet dot de
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: daniel.f.starke at freenet dot de @ 2015-05-05 17:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65995

--- Comment #3 from Daniel Starke <daniel.f.starke at freenet dot de> ---
I have yet to bootstrap the current trunk (r222810). It currently fails with
/usr/new-gcc/bin32/./prev-gcc/xg++ -B/usr/new-gcc/bin32/./prev-gcc/
-B/mingw/mingw32/bin/ -nostdinc++
-B/usr/new-gcc/bin32/prev-mingw32/libstdc++-v3/src/.libs
-B/usr/new-gcc/bin32/prev-mingw32/libstdc++-v3/libsupc++/.libs 
-I/usr/new-gcc/bin32/prev-mingw32/libstdc++-v3/include/mingw32 
-I/usr/new-gcc/bin32/prev-mingw32/libstdc++-v3/include 
-I/usr/new-gcc/src/gcc-trunk/libstdc++-v3/libsupc++
-L/usr/new-gcc/bin32/prev-mingw32/libstdc++-v3/src/.libs
-L/usr/new-gcc/bin32/prev-mingw32/libstdc++-v3/libsupc++/.libs -c   -g -O2
-D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -gtoggle -DIN_GCC   
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror  
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../src/gcc-trunk/gcc
-I../../src/gcc-trunk/gcc/build -I../../src/gcc-trunk/gcc/../include 
-I../../src/gcc-trunk/gcc/../libcpp/include -DPTW32_STATIC_LIB \
                -o build/genmddeps.o ../../src/gcc-trunk/gcc/genmddeps.c
In file included from ../../src/gcc-trunk/gcc/genmddeps.c:19:0:
../../src/gcc-trunk/gcc/system.h:1024:0: error: "CONST_CAST2" redefined
[-Werror]
 #define CONST_CAST2(TOTYPE,FROMTYPE,X) (const_cast<TOTYPE> (X))
 ^
In file included from
E:/msys/new-gcc/bin32/prev-mingw32/libstdc++-v3/include/mingw32/bits/gthr.h:148:0,
                 from
E:/msys/new-gcc/bin32/prev-mingw32/libstdc++-v3/include/ext/atomicity.h:35,
                 from
E:/msys/new-gcc/bin32/prev-mingw32/libstdc++-v3/include/bits/basic_string.h:39,
                 from
E:/msys/new-gcc/bin32/prev-mingw32/libstdc++-v3/include/string:52,
                 from ../../src/gcc-trunk/gcc/system.h:201,
                 from ../../src/gcc-trunk/gcc/genmddeps.c:19:
E:/msys/new-gcc/bin32/prev-mingw32/libstdc++-v3/include/mingw32/bits/gthr-default.h:33:0:
note: this is the location of the previous definition
 #define CONST_CAST2(TOTYPE,FROMTYPE,X) ((__extension__(union {FROMTYPE _q;
TOTYPE _nq;})(X))._nq)
 ^
cc1plus.exe: all warnings being treated as errors

I will try to compile the trunk without bootstrap.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/65995] LTO: ICE in add_symbol_to_partition_1 for debug build
  2015-05-03 18:27 [Bug lto/65995] New: LTO: ICE in add_symbol_to_partition_1 for debug build daniel.f.starke at freenet dot de
  2015-05-04 11:13 ` [Bug lto/65995] " ktietz at gcc dot gnu.org
  2015-05-05 17:15 ` daniel.f.starke at freenet dot de
@ 2015-05-06  4:47 ` daniel.f.starke at freenet dot de
  2015-08-10 14:01 ` zerolo at gmail dot com
  2021-12-07  7:25 ` [Bug lto/65995] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:211 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: daniel.f.starke at freenet dot de @ 2015-05-06  4:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65995

--- Comment #4 from Daniel Starke <daniel.f.starke at freenet dot de> ---
I was able to build r222810 without bootstrap. However, the result remains the
same. I am still getting the following error when linking all together:
lto1.exe: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.c:211
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper.exe: fatal error: E:\msys\mingw64-64\bin\g++.exe returned 1 exit
status
compilation terminated.
collect2.exe: fatal error: lto-wrapper returned 1 exit status
compilation terminated.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/65995] LTO: ICE in add_symbol_to_partition_1 for debug build
  2015-05-03 18:27 [Bug lto/65995] New: LTO: ICE in add_symbol_to_partition_1 for debug build daniel.f.starke at freenet dot de
                   ` (2 preceding siblings ...)
  2015-05-06  4:47 ` daniel.f.starke at freenet dot de
@ 2015-08-10 14:01 ` zerolo at gmail dot com
  2021-12-07  7:25 ` [Bug lto/65995] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:211 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: zerolo at gmail dot com @ 2015-08-10 14:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65995

Daniel Vollmer <zerolo at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zerolo at gmail dot com

--- Comment #6 from Daniel Vollmer <zerolo at gmail dot com> ---
I'm seeing the same ICE in GCC 5.2.0 for x86_64 on Darwin. Unfortunately I
cannot provide the code in question (C++11, heavy template usage, computational
simulation code) and was unable to reduce the problem. I seem to recall that
the code (or at least a slightly earlier version of it) compiled fine with LTO
with 4.9.

Disabling partitioning with "-flto-partition=none" works around the ICE.

The link invocation is
g++-5 -v -flto -g -fopenmp -dynamiclib -Wl,-compatibility_version,1
-Wl,-current_version,1 src/SpatialDiscretization/DiscretizationFactory.cpp.5.o
src/SpatialDiscretization/Instantiations.cpp.5.o
src/SpatialDiscretization/InstantiationsFV.cpp.5.o -o
/Users/maven/Development/dlr/dx/negev/build/libSpatialDiscretization.dylib -L.
-L/Users/maven/Development/dlr/flowsim/packages-gcc/fsdm/lib -L/usr/local/lib
-L/Users/maven/Development/dlr/flowsim/packages/utparmetis/lib -L/usr/local/lib
-L/usr/local/lib -lDiscreteEquation -lDistributed -lParallel -lDXCommon
-lFSMesh -lFSRelationsModel -lFSDataLog -lFSBoundaryCondition -lFSCommon -lmpi
-lxml2 -lnetcdf -lhdf5_hl -lhdf5 -lcgns -lutparmetis -lutmetis -lutgklib
-lzoltan -lmpi

The reported error is
lto1: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.c:211

lto1: internal compiler error: Abort trap: 6
g++-5: internal compiler error: Abort trap: 6 (program lto1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/Homebrew/homebrew/issues> for instructions.
lto-wrapper: fatal error: g++-5 returned 4 exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.


The complete output of the command run with -v is
g++-5 -v -flto -g -fopenmp -dynamiclib -Wl,-compatibility_version,1
-Wl,-current_version,1 src/SpatialDiscretization/DiscretizationFactory.cpp.5.o
src/SpatialDiscretization/Instantiations.cpp.5.o
src/SpatialDiscretization/InstantiationsFV.cpp.5.o -o
/Users/maven/Development/dlr/dx/negev/build/libSpatialDiscretization.dylib -L.
-L/Users/maven/Development/dlr/flowsim/packages-gcc/fsdm/lib -L/usr/local/lib
-L/Users/maven/Development/dlr/flowsim/packages/utparmetis/lib -L/usr/local/lib
-L/usr/local/lib -lDiscreteEquation -lDistributed -lParallel -lDXCommon
-lFSMesh -lFSRelationsModel -lFSDataLog -lFSBoundaryCondition -lFSCommon -lmpi
-lxml2 -lnetcdf -lhdf5_hl -lhdf5 -lcgns -lutparmetis -lutmetis -lutgklib
-lzoltan -lmpi
Using built-in specs.
COLLECT_GCC=g++-5
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/5.2.0/libexec/gcc/x86_64-apple-darwin14.4.0/5.2.0/lto-wrapper
Target: x86_64-apple-darwin14.4.0
Configured with: ../configure --build=x86_64-apple-darwin14.4.0
--prefix=/usr/local/Cellar/gcc/5.2.0
--libdir=/usr/local/Cellar/gcc/5.2.0/lib/gcc/5
--enable-languages=c,c++,objc,obj-c++ --program-suffix=-5
--with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr
--with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl
--with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking
--enable-checking=release --enable-lto --with-build-config=bootstrap-debug
--disable-werror --with-pkgversion='Homebrew gcc 5.2.0 --without-fortran
--without-multilib' --with-bugurl=https://github.com/Homebrew/homebrew/issues
--enable-plugin --disable-nls --disable-multilib
Thread model: posix
gcc version 5.2.0 (Homebrew gcc 5.2.0 --without-fortran --without-multilib) 
COMPILER_PATH=/usr/local/Cellar/gcc/5.2.0/libexec/gcc/x86_64-apple-darwin14.4.0/5.2.0/:/usr/local/Cellar/gcc/5.2.0/libexec/gcc/x86_64-apple-darwin14.4.0/5.2.0/:/usr/local/Cellar/gcc/5.2.0/libexec/gcc/x86_64-apple-darwin14.4.0/:/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/5.2.0/:/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/
LIBRARY_PATH=/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/5.2.0/:/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/5.2.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.10.4' '-v' '-flto' '-g' '-fopenmp'
'-Zdynamiclib' '-o'
'/Users/maven/Development/dlr/dx/negev/build/libSpatialDiscretization.dylib'
'-L.' '-L/Users/maven/Development/dlr/flowsim/packages-gcc/fsdm/lib'
'-L/usr/local/lib'
'-L/Users/maven/Development/dlr/flowsim/packages/utparmetis/lib'
'-L/usr/local/lib' '-L/usr/local/lib' '-shared-libgcc' '-mtune=core2'

/usr/local/Cellar/gcc/5.2.0/libexec/gcc/x86_64-apple-darwin14.4.0/5.2.0/collect2
-flto -dynamic -dylib -arch x86_64 -macosx_version_min 10.10.4
-weak_reference_mismatches non-weak -o
/Users/maven/Development/dlr/dx/negev/build/libSpatialDiscretization.dylib -L.
-L/Users/maven/Development/dlr/flowsim/packages-gcc/fsdm/lib -L/usr/local/lib
-L/Users/maven/Development/dlr/flowsim/packages/utparmetis/lib -L/usr/local/lib
-L/usr/local/lib
-L/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/5.2.0
-L/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/5.2.0/../../..
-compatibility_version 1 -current_version 1
src/SpatialDiscretization/DiscretizationFactory.cpp.5.o
src/SpatialDiscretization/Instantiations.cpp.5.o
src/SpatialDiscretization/InstantiationsFV.cpp.5.o -lDiscreteEquation
-lDistributed -lParallel -lDXCommon -lFSMesh -lFSRelationsModel -lFSDataLog
-lFSBoundaryCondition -lFSCommon -lmpi -lxml2 -lnetcdf -lhdf5_hl -lhdf5 -lcgns
-lutparmetis -lutmetis -lutgklib -lzoltan -lmpi -lstdc++ -lgomp
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v -idsym
collect2 version 5.2.0
/usr/bin/ld -dynamic -dylib -arch x86_64 -macosx_version_min 10.10.4
-weak_reference_mismatches non-weak -o
/Users/maven/Development/dlr/dx/negev/build/libSpatialDiscretization.dylib -L.
-L/Users/maven/Development/dlr/flowsim/packages-gcc/fsdm/lib -L/usr/local/lib
-L/Users/maven/Development/dlr/flowsim/packages/utparmetis/lib -L/usr/local/lib
-L/usr/local/lib
-L/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/5.2.0
-L/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/5.2.0/../../..
-compatibility_version 1 -current_version 1
src/SpatialDiscretization/DiscretizationFactory.cpp.5.o
src/SpatialDiscretization/Instantiations.cpp.5.o
src/SpatialDiscretization/InstantiationsFV.cpp.5.o -lDiscreteEquation
-lDistributed -lParallel -lDXCommon -lFSMesh -lFSRelationsModel -lFSDataLog
-lFSBoundaryCondition -lFSCommon -lmpi -lxml2 -lnetcdf -lhdf5_hl -lhdf5 -lcgns
-lutparmetis -lutmetis -lutgklib -lzoltan -lmpi -lstdc++ -lgomp
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld  PROJECT:ld64-242.2
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h
armv6m armv7m armv7em
Library search paths:
        .
        /Users/maven/Development/dlr/flowsim/packages-gcc/fsdm/lib
        /usr/local/lib
        /Users/maven/Development/dlr/flowsim/packages/utparmetis/lib
        /usr/local/lib
        /usr/local/lib
       
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin14.4.0/5.2.0
        /usr/local/Cellar/gcc/5.2.0/lib/gcc/5
        /usr/lib
        /usr/local/lib
Framework search paths:
        /Library/Frameworks/
        /System/Library/Frameworks/
 /usr/bin/nm -n src/SpatialDiscretization/DiscretizationFactory.cpp.5.o
 /usr/bin/nm -n src/SpatialDiscretization/Instantiations.cpp.5.o
 /usr/bin/nm -n src/SpatialDiscretization/InstantiationsFV.cpp.5.o
/usr/local/Cellar/gcc/5.2.0/libexec/gcc/x86_64-apple-darwin14.4.0/5.2.0/lto-wrapper
src/SpatialDiscretization/DiscretizationFactory.cpp.5.o
src/SpatialDiscretization/Instantiations.cpp.5.o
src/SpatialDiscretization/InstantiationsFV.cpp.5.o
g++-5 @/var/folders/02/yl3m8d4d0397mk6dxn6dpcqw0000gp/T//ccrl5k1v
Using built-in specs.
COLLECT_GCC=g++-5
Target: x86_64-apple-darwin14.4.0
Configured with: ../configure --build=x86_64-apple-darwin14.4.0
--prefix=/usr/local/Cellar/gcc/5.2.0
--libdir=/usr/local/Cellar/gcc/5.2.0/lib/gcc/5
--enable-languages=c,c++,objc,obj-c++ --program-suffix=-5
--with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr
--with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl
--with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking
--enable-checking=release --enable-lto --with-build-config=bootstrap-debug
--disable-werror --with-pkgversion='Homebrew gcc 5.2.0 --without-fortran
--without-multilib' --with-bugurl=https://github.com/Homebrew/homebrew/issues
--enable-plugin --disable-nls --disable-multilib
Thread model: posix
gcc version 5.2.0 (Homebrew gcc 5.2.0 --without-fortran --without-multilib) 
COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros'
'-ftrapping-math' '-fno-trapv' '-fno-strict-overflow' '-fno-openacc'
'-mmacosx-version-min=10.10' '-mtune=core2' '-Og' '-fPIC'
'-mmacosx-version-min=10.10.4' '-v' '-g' '-fopenmp' '-Zdynamiclib' '-L.'
'-L/Users/maven/Development/dlr/flowsim/packages-gcc/fsdm/lib'
'-L/usr/local/lib'
'-L/Users/maven/Development/dlr/flowsim/packages/utparmetis/lib'
'-L/usr/local/lib' '-L/usr/local/lib' '-shared-libgcc' '-mtune=core2'
'-dumpdir' '/Users/maven/Development/dlr/dx/negev/build/' '-dumpbase'
'libSpatialDiscretization.dylib.wpa'
'-fltrans-output-list=/var/folders/02/yl3m8d4d0397mk6dxn6dpcqw0000gp/T//ccuefjlP.ltrans.out'
'-fwpa' '-shared-libgcc'
 /usr/local/Cellar/gcc/5.2.0/libexec/gcc/x86_64-apple-darwin14.4.0/5.2.0/lto1
-fPIC -feliminate-unused-debug-symbols -quiet -dumpdir
/Users/maven/Development/dlr/dx/negev/build/ -dumpbase
libSpatialDiscretization.dylib.wpa -mmacosx-version-min=10.10 -mtune=core2
-mmacosx-version-min=10.10.4 -mtune=core2 -auxbase DiscretizationFactory.cpp.5
-g -Og -version -fexceptions -fmath-errno -fsigned-zeros -ftrapping-math
-fno-trapv -fno-strict-overflow -fno-openacc -fPIC -fopenmp
-fltrans-output-list=/var/folders/02/yl3m8d4d0397mk6dxn6dpcqw0000gp/T//ccuefjlP.ltrans.out
-fwpa @/var/folders/02/yl3m8d4d0397mk6dxn6dpcqw0000gp/T//ccwwe5xB
GNU GIMPLE (Homebrew gcc 5.2.0 --without-fortran --without-multilib) version
5.2.0 (x86_64-apple-darwin14.4.0)
        compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version
3.1.3-p2, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (Homebrew gcc 5.2.0 --without-fortran --without-multilib) version
5.2.0 (x86_64-apple-darwin14.4.0)
        compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version
3.1.3-p2, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
lto1: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.c:211

lto1: internal compiler error: Abort trap: 6
g++-5: internal compiler error: Abort trap: 6 (program lto1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/Homebrew/homebrew/issues> for instructions.
lto-wrapper: fatal error: g++-5 returned 4 exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/65995] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:211 for debug build
  2015-05-03 18:27 [Bug lto/65995] New: LTO: ICE in add_symbol_to_partition_1 for debug build daniel.f.starke at freenet dot de
                   ` (3 preceding siblings ...)
  2015-08-10 14:01 ` zerolo at gmail dot com
@ 2021-12-07  7:25 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-12-07  7:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65995

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |sandra at codesourcery dot com
            Summary|LTO: ICE in                 |LTO: ICE in
                   |add_symbol_to_partition_1   |add_symbol_to_partition_1,
                   |for debug build             |at lto/lto-partition.c:211
                   |                            |for debug build
           Keywords|                            |ice-on-valid-code

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
On trunk this is lto-partition.c:215 now with a patch attacking such ICE posted
at https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586290.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-07  7:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-03 18:27 [Bug lto/65995] New: LTO: ICE in add_symbol_to_partition_1 for debug build daniel.f.starke at freenet dot de
2015-05-04 11:13 ` [Bug lto/65995] " ktietz at gcc dot gnu.org
2015-05-05 17:15 ` daniel.f.starke at freenet dot de
2015-05-06  4:47 ` daniel.f.starke at freenet dot de
2015-08-10 14:01 ` zerolo at gmail dot com
2021-12-07  7:25 ` [Bug lto/65995] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:211 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).