Run app issue: ld returned 5 exit status
-
Hi all,
I got following problem:
collect2.exe: error: ld returned 5 exit status
mingw32-make[1]: *** [Makefile.Debug:611: debug/AppName.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/work/repos/build-AppName-Desktop_Qt_6_4_3_MinGW_64_bit-Debug'
mingw32-make: *** [Makefile:45: debug] Error 2
Proces "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" stopped working with exit code: 2.
Build error / install project Appname (Tool set: Desktop Qt 6.4.3 MinGW 64-bit)
During step "Make"How could I investigate that?
-
Hi all,
I got following problem:
collect2.exe: error: ld returned 5 exit status
mingw32-make[1]: *** [Makefile.Debug:611: debug/AppName.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/work/repos/build-AppName-Desktop_Qt_6_4_3_MinGW_64_bit-Debug'
mingw32-make: *** [Makefile:45: debug] Error 2
Proces "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" stopped working with exit code: 2.
Build error / install project Appname (Tool set: Desktop Qt 6.4.3 MinGW 64-bit)
During step "Make"How could I investigate that?
-
@Kaluss said in Run app issue: ld returned 5 exit status:
ld returned 5 exit statusHow could I investigate that?
By Googling
ld returned 5 exit status, which I see has many hits depending on your environment including for MinGW. -
@JonB Found this one, but it doesn't help:
https://stackoverflow.com/questions/45077846/collect2-exe-error-ld-returned-5-exit-status -
@Kaluss
So for examplemingw { contains(QT_ARCH, x86_64): { LIBS+=-Wl,--no-gc-sections } }(i.e.
-Wl,--no-gc-sections) did not work for you?Or
-Wl,--verbosedid not provide better information?