[Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled

2019-08-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636

Martin Liška  changed:

   What|Removed |Added

 Status|WAITING |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |marxin at gcc dot 
gnu.org

--- Comment #8 from Martin Liška  ---
(In reply to John Paul Adrian Glaubitz from comment #7)
> (In reply to Martin Liška from comment #6)
> > Can you please debug the internal compiler error?
> > I'm interested in how 'hist' struct looks like?
> 
> The gcc compile farm has a fast sparc64 porterbox running Debian unstable,
> so if you want, you can try it yourself.

Good, I have access to the compile farm machine. So let me take a look..

[Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled

2019-08-23 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636

--- Comment #7 from John Paul Adrian Glaubitz  ---
(In reply to Martin Liška from comment #6)
> Can you please debug the internal compiler error?
> I'm interested in how 'hist' struct looks like?

The gcc compile farm has a fast sparc64 porterbox running Debian unstable, so
if you want, you can try it yourself.

[Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled

2019-08-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636

--- Comment #6 from Martin Liška  ---
Can you please debug the internal compiler error?
I'm interested in how 'hist' struct looks like?

[Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled

2019-08-18 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636

--- Comment #5 from John Paul Adrian Glaubitz  ---
I can confirm that disabling LTO on sparc64 makes gcc build fine.

[Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled

2019-08-17 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636

John Paul Adrian Glaubitz  changed:

   What|Removed |Added

 CC||glaubitz at physik dot 
fu-berlin.d
   ||e

--- Comment #4 from John Paul Adrian Glaubitz  ---
This looks very similar to the failure on linux-sparc64 with LTO enabled:

../../src/libiberty/strerror.c: In function 'strtoerrno':
../../src/libiberty/strerror.c:773:1: warning:
'/<>/build/libiberty/strerror.gcda' profile count data file not
found [-Wmissing-profile]
  773 | }
  | ^
../../src/libiberty/strsignal.c: In function 'strtosigno':
../../src/libiberty/strsignal.c:536:1: warning:
'/<>/build/libiberty/strsignal.gcda' profile count data file not
found [-Wmissing-profile]
  536 | }
  | ^
during IPA pass: pure-const
../../src/libiberty/simple-object.c: In function
'simple_object_write_add_data':
../../src/libiberty/simple-object.c:565:1: internal compiler error: in
stream_out_histogram_value, at value-prof.c:369
  565 | }
  | ^
if [ x"" != x ]; then \
  /<>/build/./prev-gcc/xgcc -B/<>/build/./prev-gcc/
-B/usr/sparc64-linux-gnu/bin/ -B/usr/sparc64-linux-gnu/bin/
-B/usr/sparc64-linux-gnu/lib/ -isystem /usr/sparc64-linux-gnu/include -isystem
/usr/sparc64-linux-gnu/sys-include -isystem /<>/build/sys-include 
  -c -DHAVE_CONFIG_H -g -O2 -fprofile-use -flto=jobserver  -I.
-I../../src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -Wshadow=local -pedantic  -D_GNU_SOURCE -fPIC 
../../src/libiberty/simple-object-elf.c -o noasan/simple-object-elf.o; \
else true; fi
/<>/build/./prev-gcc/xgcc -B/<>/build/./prev-gcc/
-B/usr/sparc64-linux-gnu/bin/ -B/usr/sparc64-linux-gnu/bin/
-B/usr/sparc64-linux-gnu/lib/ -isystem /usr/sparc64-linux-gnu/include -isystem
/usr/sparc64-linux-gnu/sys-include -isystem /<>/build/sys-include 
  -c -DHAVE_CONFIG_H -g -O2 -fprofile-use -flto=jobserver  -I.
-I../../src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -Wshadow=local -pedantic  -D_GNU_SOURCE
../../src/libiberty/simple-object-elf.c -o simple-object-elf.o
../../src/libiberty/cp-demangle.c: In function 'd_print_cast.isra.0':
../../src/libiberty/cp-demangle.c:6648:1: warning:
'/<>/build/libiberty/pic/cp-demangle.gcda' profile count data file
not found [-Wmissing-profile]
 6648 | }
  | ^
../../src/libiberty/regex.c: In function 'xregfree':
../../src/libiberty/regex.c:8131:1: warning:
'/<>/build/libiberty/pic/regex.gcda' profile count data file not
found [-Wmissing-profile]
 8131 | }
  | ^
configure: creating cache ./config.cache
checking build system type... sparc64-unknown-linux-gnu
checking host system type... sparc64-unknown-linux-gnu
checking target system type... sparc64-unknown-linux-gnu
checking whether /usr/bin/make sets $(MAKE)... if [ x"" != x ]; then \
  /<>/build/./prev-gcc/xgcc -B/<>/build/./prev-gcc/
-B/usr/sparc64-linux-gnu/bin/ -B/usr/sparc64-linux-gnu/bin/
-B/usr/sparc64-linux-gnu/lib/ -isystem /usr/sparc64-linux-gnu/include -isystem
/usr/sparc64-linux-gnu/sys-include -isystem /<>/build/sys-include 
  -c -DHAVE_CONFIG_H -g -O2 -fprofile-use -flto=jobserver  -I.
-I../../src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -Wshadow=local -pedantic  -D_GNU_SOURCE -fPIC 
../../src/libiberty/regex.c -o noasan/regex.o; \
else true; fi
/<>/build/./prev-gcc/xgcc -B/<>/build/./prev-gcc/
-B/usr/sparc64-linux-gnu/bin/ -B/usr/sparc64-linux-gnu/bin/
-B/usr/sparc64-linux-gnu/lib/ -isystem /usr/sparc64-linux-gnu/include -isystem
/usr/sparc64-linux-gnu/sys-include -isystem /<>/build/sys-include 
  -c -DHAVE_CONFIG_H -g -O2 -fprofile-use -flto=jobserver  -I.
-I../../src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -Wshadow=local -pedantic  -D_GNU_SOURCE
../../src/libiberty/regex.c -o regex.o
if [ x"" != x ]; then \
  /<>/build/./prev-gcc/xgcc -B/<>/build/./prev-gcc/
-B/usr/sparc64-linux-gnu/bin/ -B/usr/sparc64-linux-gnu/bin/
-B/usr/sparc64-linux-gnu/lib/ -isystem /usr/sparc64-linux-gnu/include -isystem
/usr/sparc64-linux-gnu/sys-include -isystem /<>/build/sys-include 
  -c -DHAVE_CONFIG_H -g -O2 -fprofile-use -flto=jobserver  -I.
-I../../src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -Wshadow=local -pedantic  -D_GNU_SOURCE -fPIC 
../../src/libiberty/cp-demangle.c -o noasan/cp-demangle.o; \
else true; fi
yes
checking for a BSD-compatible install... 0x9ab447
stream_out_histogram_value(output_block*, histogram_value_t*)
../../src/gcc/value-prof.c:369
/usr/bin/install -c

Full log in:
https://buildd.debian.org/status/fetch.php?pkg=gcc-9=sparc64=9.2.1-1=1565961822=0

[Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled

2017-05-05 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2017-05-05
 CC||marxin at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #3 from Martin Liška  ---
Hi. Can you please test it with a new release of GCC? If yes, then please
attach the pre-processed file and regex.gcda file that's needed for
-fprofile-use.

[Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled

2015-01-16 Thread carson at taltos dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636

--- Comment #1 from Carson Gaspar carson at taltos dot org ---
Created attachment 34467
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34467action=edit
preprocessed regex.i


[Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled

2015-01-16 Thread carson at taltos dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636

--- Comment #2 from Carson Gaspar carson at taltos dot org ---
Removing -fprofile-use also makes the compilation work, so it appears to be a
problem with profile feedback combined with LTO. Either works individually, but
error out if used together.