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

Reply via email to