https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111406
Bug ID: 111406 Summary: libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory' Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: dilfridge at gentoo dot org Target Milestone: --- This is a clone of https://bugs.gentoo.org/913750 With CC=clang, the build of libiberty (as part of gnu binutils) produces errors clang-16: error: unsupported option '-print-multi-os-directory' clang-16: error: no input files However, the build continues apparently fine... This stems from libiberty/Makefile.am: 385 # This is tricky. Even though CC in the Makefile contains 386 # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the 387 # default multilib, so we have to take CFLAGS into account as well, 388 # since it will be passed the multilib flags. 389 MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`