public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/111406] New: libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory'
@ 2023-09-13 15:27 dilfridge at gentoo dot org
  2023-09-13 15:31 ` [Bug other/111406] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dilfridge at gentoo dot org @ 2023-09-13 15:27 UTC (permalink / raw)
  To: gcc-bugs

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`

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-15 19:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-13 15:27 [Bug other/111406] New: libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory' dilfridge at gentoo dot org
2023-09-13 15:31 ` [Bug other/111406] " pinskia at gcc dot gnu.org
2023-09-13 15:34 ` dilfridge at gentoo dot org
2023-09-14  9:21 ` rguenth at gcc dot gnu.org
2023-09-15 19:38 ` dilfridge at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).