[Bug other/81146] Wine 2.10 cannot be compiled with -flto
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81146 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed||2017-06-21 CC||marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Martin Liška --- Well, trying to understand what's wrong is quite hard. The project uses a wrapper (winegcc.c) that does a lot of magic stuff. That explains why we see failures, I guess.
[Bug other/81146] Wine 2.10 cannot be compiled with -flto
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81146 --- Comment #1 from Artem S. Tashkinov --- When running with `make -j4` that's what I see first: gcc -o widl client.o expr.o hash.o header.o proxy.o register.o server.o typegen.o typelib.o \ typetree.o utils.o widl.o write_msft.o parser.tab.o parser.yy.o ../../libs/port/libwine_port.a \ ../../libs/wpp/libwpp.a -m32 -Wl,-O1 -Wl,--hash-style=gnu -flto /tmp/ccmagxOP.ltrans8.ltrans.o: In function `spawn': :(.text+0x1029): undefined reference to `_spawnvp' collect2: error: ld returned 1 exit status Makefile:235: recipe for target 'winebuild' failed make[1]: *** [winebuild] Error 1 make[1]: Leaving directory '/tmp/wine-2.10/tools/winebuild' Makefile:20130: recipe for target 'tools/winebuild' failed make: *** [tools/winebuild] Error 2 make[1]: Leaving directory '/tmp/wine-2.10/tools/winedump' /tmp/ccjKNKbe.ltrans17.ltrans.o: In function `main': :(.text.startup+0x47a): undefined reference to `wpp_add_include_path' :(.text.startup+0x4b9): undefined reference to `wpp_add_cmdline_define' :(.text.startup+0x652): undefined reference to `wpp_add_include_path' :(.text.startup+0x7a5): undefined reference to `wpp_set_debug' :(.text.startup+0x890): undefined reference to `wpp_add_define' :(.text.startup+0x8a4): undefined reference to `wpp_add_define' :(.text.startup+0x976): undefined reference to `wpp_parse' :(.text.startup+0xc34): undefined reference to `wpp_add_define' :(.text.startup+0xd13): undefined reference to `wpp_parse' /tmp/ccjKNKbe.ltrans0.ltrans.o: In function `parser_parse': :(.text+0x15fc): undefined reference to `wpp_find_include' :(.text+0x4d60): undefined reference to `wpp_parse' :(.text+0x4ead): undefined reference to `wpp_find_include' collect2: error: ld returned 1 exit status Makefile:324: recipe for target 'widl' failed make[1]: *** [widl] Error 1 make[1]: Leaving directory '/tmp/wine-2.10/tools/widl' Makefile:20109: recipe for target 'tools/widl' failed make: *** [tools/widl] Error 2