bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/30840] New: libiberty build produces errors with CC=clang,


From: dilfridge at gentoo dot org
Subject: [Bug binutils/30840] New: libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory'
Date: Tue, 12 Sep 2023 01:14:39 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30840

            Bug ID: 30840
           Summary: libiberty build produces errors with CC=clang,
                    unsupported option '-print-multi-os-directory'
           Product: binutils
           Version: 2.39
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot 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 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`

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]