[Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284

2021-12-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

Richard Biener  changed:

   What|Removed |Added

 CC||linuxsquirrel.dev at gmail dot 
com

--- Comment #10 from Richard Biener  ---
*** Bug 57715 has been marked as a duplicate of this bug. ***

[Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284

2014-04-07 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

--- Comment #9 from Tobias Burnus burnus at gcc dot gnu.org ---
(In reply to Václav Zeman from comment #7)
 Created attachment 32422 [details]
 preprocessed source

Works for me with GCC 4.9 on x86-64-gnu-linux with both -fuse-linker-plugin and
-fno-use-linker-plugin and g++ -O3 -std=c++11 -w -r -nostdlib -flto. I
haven't tried 4.8, though.

[I had to replace std::size_t by unsigned long for the new operator in
order to make it compile.]

[Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284

2014-03-21 Thread vhaisman at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

--- Comment #7 from Václav Zeman vhaisman at gmail dot com ---
Created attachment 32422
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32422action=edit
preprocessed source

[Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284

2014-03-21 Thread vhaisman at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

--- Comment #6 from Václav Zeman vhaisman at gmail dot com ---
(In reply to Tobias Burnus from comment #5)
 This PR might have the same reason as PR60567.
 
 Namely, your GCC has not been compiled on a system with working linker
 plugin - and thus, lto1 is not invoked with -fresolution=.
 
 Try compiling with -fuse-linker-plugin - if that gives an error, try a GCC
 which has been configured with --with-plugin-ld= pointing to a newer
 Binutils - 2.21 or newer. If that helps, it is a duplicate of PR60567.

I was able to (manually) reduce the test to 

g++  -r -nostdlib  src/.libs/liblog4cplus_la-rootlogger.ii -flto -o
.libs/cyglog4cplus-1-2-2.dll

The preprocessed file is attached compressed.

 
 If it doesn't help: Create a reduced test case as described at
 http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs

[Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284

2014-03-21 Thread vhaisman at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

--- Comment #8 from Václav Zeman vhaisman at gmail dot com ---
BTW, the current version with which I have reduced the test case is this:

`-- g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.8.2/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.2-2/src/gcc-4.8.2/configure
--srcdir=/cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.2-2/src/gcc-4.8.2 --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C
--build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin
--without-libiconv-prefix --without-libintl-prefix --enable-shared
--enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs
--enable-bootstrap --disable-__cxa_atexit --with-dwarf2 --with-arch=i686
--with-tune=generic --disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite
--enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm
--enable-libquadmath --enable-libquadmath-support --enable-libssp
--enable-libada --enable-libjava --enable-libgcj-sublibs --disable-java-awt
--disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld
--with-gnu-as --with-cloog-include=/usr/include/cloog-isl
--without-libiconv-prefix --without-libintl-prefix --with-system-zlib
--libexecdir=/usr/lib
Thread model: posix
gcc version 4.8.2 (GCC)

[Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284

2014-03-20 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

Tobias Burnus burnus at gcc dot gnu.org changed:

   What|Removed |Added

 CC||burnus at gcc dot gnu.org

--- Comment #5 from Tobias Burnus burnus at gcc dot gnu.org ---
This PR might have the same reason as PR60567.

Namely, your GCC has not been compiled on a system with working linker plugin -
and thus, lto1 is not invoked with -fresolution=.

Try compiling with -fuse-linker-plugin - if that gives an error, try a GCC
which has been configured with --with-plugin-ld= pointing to a newer Binutils -
2.21 or newer. If that helps, it is a duplicate of PR60567.

If it doesn't help: Create a reduced test case as described at
http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs