https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85238
Bug ID: 85238
Summary: lto-wrapper: fatal error:
simple_object_copy_lto_debug_sections not implemented:
Invalid argument on Cygwin
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: tkoenig at gcc dot gnu.org
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Running the gfortran test suite on the 20180401 snapshot on cygwin
(current release as of today) yields some LTO errors:
FAIL: gfortran.dg/submodule_6.f08 -O3 -g (test for excess errors)
which, upon inspection, is
Executing on host:
/cygdrive/e/Gcc/snap-bin/gcc/testsuite/gfortran7/../../gfortran
-B/cygdrive/e/Gcc/snap-bin/gcc/testsuite/gfortran7/../../ -B/c
ygdrive/e/Gcc/snap-bin/x86_64-unknown-cygwin/./libgfortran/
/cygdrive/e/Gcc/gcc-8-20180401/gcc/testsuite/gfortran.dg/submodule_6.f08
-fno-diagno
stics-show-caret -fdiagnostics-color=never -O3 -g -flto
-B/cygdrive/e/Gcc/snap-bin/x86_64-unknown-cygwin/./libgfortran/.libs
-L/cygdrive/e/G
cc/snap-bin/x86_64-unknown-cygwin/./libgfortran/.libs
-B/cygdrive/e/Gcc/snap-bin/x86_64-unknown-cygwin/./libquadmath/.libs
-L/cygdrive/e/Gcc/snap
-bin/x86_64-unknown-cygwin/./libquadmath/.libs -o ./submodule_6.exe
(timeout = 300)
spawn /cygdrive/e/Gcc/snap-bin/gcc/testsuite/gfortran7/../../gfortran
-B/cygdrive/e/Gcc/snap-bin/gcc/testsuite/gfortran7/../../ -B/cygdrive/e/Gcc
/snap-bin/x86_64-unknown-cygwin/./libgfortran/
/cygdrive/e/Gcc/gcc-8-20180401/gcc/testsuite/gfortran.dg/submodule_6.f08
-fno-diagnostics-show-car
et -fdiagnostics-color=never -O3 -g -flto
-B/cygdrive/e/Gcc/snap-bin/x86_64-unknown-cygwin/./libgfortran/.libs
-L/cygdrive/e/Gcc/snap-bin/x86_64-
unknown-cygwin/./libgfortran/.libs
-B/cygdrive/e/Gcc/snap-bin/x86_64-unknown-cygwin/./libquadmath/.libs
-L/cygdrive/e/Gcc/snap-bin/x86_64-unknown
-cygwin/./libquadmath/.libs -o ./submodule_6.exe
lto-wrapper: fatal error: simple_object_copy_lto_debug_sections not
implemented: Invalid argument
plus a few more testsuite fails due to the same error, for example
FAIL: gfortran.dg/lto/20091016-1 f_lto_20091016-1_0.o-f_lto_20091016-1_0.o
link, -flto -g -fPIC -r -nostdlib