This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/85238] [8 Regression] lto-wrapper: fatal error: simple_object_copy_lto_debug_sections not implemented: Invalid argument on Cygwin
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Apr 2018 16:09:38 +0000
- Subject: [Bug target/85238] [8 Regression] lto-wrapper: fatal error: simple_object_copy_lto_debug_sections not implemented: Invalid argument on Cygwin
- Auto-submitted: auto-generated
- References: <bug-85238-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85238
--- Comment #22 from rguenther at suse dot de <rguenther at suse dot de> ---
On April 11, 2018 4:21:06 PM GMT+02:00, "ebotcazou at gcc dot gnu.org"
<gcc-bugzilla@gcc.gnu.org> wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85238
>
>--- Comment #21 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
>> Looks good to me, aka OK if it passes whatever testing you think is
>> sufficient.
>
>Thanks. There is apparently another, preexisting issue visible in Ada:
>
>$ gcc -o t t.c -flto -g
>lto-wrapper.exe: fatal error: simple_object_copy_lto_debug_sections not
>implemented: Invalid argument
>
>$ gnatmake nested_controlled_alloc -flto
>gcc -c -flto nested_controlled_alloc.adb
>gnatbind -x nested_controlled_alloc.ali
>gnatlink nested_controlled_alloc.ali -flto
>lto-wrapper.exe: fatal error: file too short: No error
>
>compilation terminated.
>c:/home/botcazou/anod-wave/x86_64-windows/gcc-gcc-head.0/install/bin/../libexec/gcc/x86_64-pc-mingw32/8.0.1/ld.exe:
>error: lto-wrapper failed
>
>but adding -g0 makes it disappear:
>
>$ gnatmake nested_controlled_alloc -flto -g0
>gcc -c -flto -g0 nested_controlled_alloc.adb
>gnatbind -x nested_controlled_alloc.ali
>gnatlink nested_controlled_alloc.ali -flto -g0
>
>Do you have any idea about what's going on here?
Huh, no. Never seen that. When debugging lto-wrapper issues I place a
raise(SIGSTOP) inside it and attach