FS#53859 - [mingw-w64-gcc] x86_64-w64-mingw32-gcc with -Wa,-mbig-obj doesn't find the LTO plugin

Attached to Project: Community Packages
Opened by Tavian Barnes (tavianator) - Thursday, 27 April 2017, 17:41 GMT
Last edited by Balló György (City-busz) - Sunday, 07 January 2018, 21:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

With mingw-w64-gcc 6.3.1-1, the x86_64 linker doesn't find the LTO plugin when building with -Wa,-mbig-obj. The i686 linker works fine. Example:

$ cat foo.c
int main() {
return 0;
}
$ i686-w64-mingw32-g++ -flto -Wa,-mbig-obj foo.c -o foo.exe
$ x86_64-w64-mingw32-g++ -flto -Wa,-mbig-obj foo.c -o foo.exe
/usr/lib/gcc/x86_64-w64-mingw32/6.3.1/../../../../x86_64-w64-mingw32/bin/ld: /tmp/ccbj2GZA.o: plugin needed to handle lto object
/usr/lib/gcc/x86_64-w64-mingw32/6.3.1/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function `main':
/build/mingw-w64-crt/src/mingw-w64-v5.0.2/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain'
collect2: error: ld returned 1 exit status
This task depends upon

Closed by  Balló György (City-busz)
Sunday, 07 January 2018, 21:09 GMT
Reason for closing:  Won't fix
Comment by Doug Newgard (Scimmia) - Friday, 28 April 2017, 04:52 GMT
Where does this come from? What package?

Edit: nevermind, got it.
Comment by Balló György (City-busz) - Sunday, 07 January 2018, 21:09 GMT

Loading...