https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196
--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to xiehongbiao from comment #10) > (In reply to Andrew Pinski from comment #8) > > Can you also add -Wl,-v ; this will cause collect2 to print it runs? > > It reports error :"gcc: error: unrecognized command line option ‘-Wl’". > Please let me know if I misunderstood. Thanks. Paste the details: > > > jiaojiancheng@jiaojiancheng:~/test_compile$ gcc -O1 -pedantic > -fomit-frame-pointer -m64 -Wl -v conftest.c It must be '-Wl,-v' not '-Wl -v'.