GCC compilation failed with the following error: ld: warning: ignoring duplicate libraries: '-lgcc', '../libcpp/libcpp.a', '../libdecnumber/libdecnumber.a', 'libcommon.a' ld: library 'mpc' not found collect2: error: ld returned 1 exit status tested with gcc-12.2 and gcc-13.2 macOS Sonoma 14.2 with Xcode 15.0.1 Reproducible: Always
Created attachment 879483 [details] stage3.log
Created attachment 879484 [details] gcc-13.2-build-logs.tar.xz
Created attachment 879485 [details] gcc-13.2-environment
Created attachment 879486 [details] gcc-12.2-build-logs.tar.xz
Created attachment 879487 [details] gcc-12.2-environment
Created attachment 879526 [details, diff] ldwrapper.c.diff This is the patch to fix this bug!
oh, that's pretty stupid, thanks for the patch!
Thanks, pushed your patch in https://gitweb.gentoo.org/repo/proj/prefix.git/patch/?id=55996b02c62a3f77b97ad2d3e0a0bb5a4604263f
Thanks! Could you please also take a look at this bug: https://bugs.gentoo.org/916291#c12 The patch posted below that comment is dirty I think, the proper way should be in the ldwrapper.c either.