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
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
|
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
Edit: nevermind, got it.
https://aur.archlinux.org/packages/mingw-w64-gcc/