https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86534
Bug ID: 86534 Summary: Linking gcc with gold fails, when libisl is under /usr/local/lib Product: gcc Version: 7.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dilyan.palauzov at aegee dot org Target Milestone: --- When ISL is installed under /usr/local/lib, linking GCC with ld.gold does not work, because ld.gold does not have implicit -L/usr/local/lib, contrary to ld.bfd. I asked at https://sourceware.org/bugzilla/show_bug.cgi?id=23413 to imply -L/usr/local/lib. There you can see the whole story, how gcc is built etc. Please consider adding explicit -L/usr/local/lib when building gcc at stage 2 (and probably stage 3), when libisl, libmpc, libmpfr, libz or libgmp are in /usr/local/lib .