public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
@ 2015-06-27  0:42 ` guido.hatzsis at yandex dot com
  2015-06-27  0:45 ` [Bug lto/66687] " pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: guido.hatzsis at yandex dot com @ 2015-06-27  0:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Guido Haztsis <guido.hatzsis at yandex dot com> ---
Created attachment 35861
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35861&action=edit
preproc source


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

* [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
@ 2015-06-27  0:42 guido.hatzsis at yandex dot com
  2015-06-27  0:42 ` [Bug c/66687] " guido.hatzsis at yandex dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: guido.hatzsis at yandex dot com @ 2015-06-27  0:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66687
           Summary: WPA link fau: internal compiler error: bytecode
                    stream: found non-null terminated string
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guido.hatzsis at yandex dot com
  Target Milestone: ---

Created attachment 35860
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35860&action=edit
res file

With gcc 5.1 is was possible to compile executables statically with with an
libc (musl) static library. It is no longer possible with 6.0



COLLECT_GCC_OPTIONS='-c' '-ffp-contract=off' '-fmath-errno' '-fsigned-zeros'
'-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-mtune=generic'
'-march=x86-64' '-O2' '-fPIC' '-fno-exceptions' '-B' '/x32/gcc/stageN/./gcc/'
'-B' '/x32/build/host/x86_64-sb-linux-muslx32/bin/' '-B'
'/x32/build/host/x86_64-sb-linux-muslx32/lib/' '-v' '-save-temps'
'-mtune=generic' '-march=x86-64'
'-fltrans-output-list=/tmp/cctXDCnL.ltrans.out' '-fwpa'
'-fresolution=conftest.res'
 /x32/gcc/stageN/./gcc/lto1 -quiet -dumpbase crt1.o -mtune=generic
-march=x86-64 -mtune=generic -march=x86-64 -auxbase crt1 -O2 -version
-ffp-contract=off -fmath-errno -fsigned-zeros -ftrapping-math -fno-trapv
-fno-openmp -fno-openacc -fPIC -fno-exceptions
-fltrans-output-list=/tmp/cctXDCnL.ltrans.out -fwpa -fresolution=conftest.res
@/tmp/ccir6VzL

GNU GIMPLE (GCC) version 6.0.0 20150619 (experimental)
(x86_64-sb-linux-muslx32)
        compiled by GNU C version 5.1.0, GMP version 6.0.0, MPFR version 3.1.3,
MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU GIMPLE (GCC) version 6.0.0 20150619 (experimental)
(x86_64-sb-linux-muslx32)
        compiled by GNU C version 5.1.0, GMP version 6.0.0, MPFR version 3.1.3,
MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
lto1: internal compiler error: bytecode stream: found non-null terminated
string
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: fatal error: /x32/gcc/stageN/./gcc/xgcc returned 1 exit status
compilation terminated.
[Leaving LTRANS /tmp/ccO8tBym]
[Leaving LTRANS /tmp/cctXDCnL.ltrans.out]
/x32/build/host/x86_64-sb-linux-muslx32/bin/ld: fatal error: lto-wrapper failed


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
  2015-06-27  0:42 ` [Bug c/66687] " guido.hatzsis at yandex dot com
@ 2015-06-27  0:45 ` pinskia at gcc dot gnu.org
  2015-06-27  1:16 ` guido.hatzsis at yandex dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-06-27  0:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Are you sure that this is not a bug in musl?


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
  2015-06-27  0:42 ` [Bug c/66687] " guido.hatzsis at yandex dot com
  2015-06-27  0:45 ` [Bug lto/66687] " pinskia at gcc dot gnu.org
@ 2015-06-27  1:16 ` guido.hatzsis at yandex dot com
  2015-06-27  1:24 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: guido.hatzsis at yandex dot com @ 2015-06-27  1:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Guido Haztsis <guido.hatzsis at yandex dot com> ---
Musl claims that they support LTO. Also all that I have changed was bumping gcc
from the 5.1_release tag to the latest overnight commit.

The res file doesn't even include libc.so (nor libc.a for a static build) which
is strange and musl has long claimed to support lto without fat objects.

(In reply to Andrew Pinski from comment #2)
> Are you sure that this is not a bug in musl?


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
                   ` (2 preceding siblings ...)
  2015-06-27  1:16 ` guido.hatzsis at yandex dot com
@ 2015-06-27  1:24 ` pinskia at gcc dot gnu.org
  2015-06-27 15:15 ` hjl.tools at gmail dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-06-27  1:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
MUSL support is not included in GCC 5.x is another thing.  Also you are using
x32 which is not tested that much.


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
                   ` (3 preceding siblings ...)
  2015-06-27  1:24 ` pinskia at gcc dot gnu.org
@ 2015-06-27 15:15 ` hjl.tools at gmail dot com
  2015-06-28 19:50 ` guido.hatzsis at yandex dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2015-06-27 15:15 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andrew Pinski from comment #4)
> MUSL support is not included in GCC 5.x is another thing.  Also you are
> using x32 which is not tested that much.

Can it be reproduced with x32 glibc?


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
                   ` (4 preceding siblings ...)
  2015-06-27 15:15 ` hjl.tools at gmail dot com
@ 2015-06-28 19:50 ` guido.hatzsis at yandex dot com
  2015-06-28 19:57 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: guido.hatzsis at yandex dot com @ 2015-06-28 19:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Guido Haztsis <guido.hatzsis at yandex dot com> ---
(In reply to H.J. Lu from comment #5)
> (In reply to Andrew Pinski from comment #4)
> > MUSL support is not included in GCC 5.x is another thing.  Also you are
> > using x32 which is not tested that much.
> 
> Can it be reproduced with x32 glibc?

I am pretty sure it can be reproduced without any libc. Actually, for some
reason the libc.a file isn't even in the res file. This used to appear in the
5.1 version.


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
                   ` (5 preceding siblings ...)
  2015-06-28 19:50 ` guido.hatzsis at yandex dot com
@ 2015-06-28 19:57 ` hjl.tools at gmail dot com
  2015-06-29  4:35 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2015-06-28 19:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Guido Haztsis from comment #6)
> I am pretty sure it can be reproduced without any libc. Actually, for some
> reason the libc.a file isn't even in the res file. This used to appear in
> the 5.1 version.

Does it mean it is musl specific and it can be reproduced with
musl for any targets?


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
                   ` (6 preceding siblings ...)
  2015-06-28 19:57 ` hjl.tools at gmail dot com
@ 2015-06-29  4:35 ` pinskia at gcc dot gnu.org
  2015-06-29  8:42 ` rguenth at gcc dot gnu.org
  2015-07-01 23:32 ` guido.hatzsis at yandex dot com
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-06-29  4:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Guido Haztsis from comment #6)
> (In reply to H.J. Lu from comment #5)
> > (In reply to Andrew Pinski from comment #4)
> > > MUSL support is not included in GCC 5.x is another thing.  Also you are
> > > using x32 which is not tested that much.
> > 
> > Can it be reproduced with x32 glibc?
> 
> I am pretty sure it can be reproduced without any libc. Actually, for some
> reason the libc.a file isn't even in the res file. This used to appear in
> the 5.1 version.

We are talking about the compiled GCC here.  Not the one being used with GCC at
this point.


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
                   ` (7 preceding siblings ...)
  2015-06-29  4:35 ` pinskia at gcc dot gnu.org
@ 2015-06-29  8:42 ` rguenth at gcc dot gnu.org
  2015-07-01 23:32 ` guido.hatzsis at yandex dot com
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-29  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Are you sure you produced all LTO bytecode with exactly the same compiler?
Reminds me to bump the LTO bytecode version again on trunk (it's still the same
as that on the GCC 5 branch...)


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

* [Bug lto/66687] WPA link fau: internal compiler error: bytecode stream: found non-null terminated string
  2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
                   ` (8 preceding siblings ...)
  2015-06-29  8:42 ` rguenth at gcc dot gnu.org
@ 2015-07-01 23:32 ` guido.hatzsis at yandex dot com
  9 siblings, 0 replies; 11+ messages in thread
From: guido.hatzsis at yandex dot com @ 2015-07-01 23:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Guido Haztsis <guido.hatzsis at yandex dot com> ---
(In reply to Richard Biener from comment #9)
> Are you sure you produced all LTO bytecode with exactly the same compiler?
> Reminds me to bump the LTO bytecode version again on trunk (it's still the
> same
> as that on the GCC 5 branch...)

Was it bumped from 4 to 5? Yes, I am pretty sure I am using the same compliler.


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

end of thread, other threads:[~2015-07-01 23:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-27  0:42 [Bug c/66687] New: WPA link fau: internal compiler error: bytecode stream: found non-null terminated string guido.hatzsis at yandex dot com
2015-06-27  0:42 ` [Bug c/66687] " guido.hatzsis at yandex dot com
2015-06-27  0:45 ` [Bug lto/66687] " pinskia at gcc dot gnu.org
2015-06-27  1:16 ` guido.hatzsis at yandex dot com
2015-06-27  1:24 ` pinskia at gcc dot gnu.org
2015-06-27 15:15 ` hjl.tools at gmail dot com
2015-06-28 19:50 ` guido.hatzsis at yandex dot com
2015-06-28 19:57 ` hjl.tools at gmail dot com
2015-06-29  4:35 ` pinskia at gcc dot gnu.org
2015-06-29  8:42 ` rguenth at gcc dot gnu.org
2015-07-01 23:32 ` guido.hatzsis at yandex dot com

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).