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

* [Bug other/111406] libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory'
  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 ` pinskia at gcc dot gnu.org
  2023-09-13 15:34 ` dilfridge at gentoo dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-13 15:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111406

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>This stems from libiberty/Makefile.am:

You mean Makefile.in, libiberty does not use automake.

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

* [Bug other/111406] libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory'
  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
  3 siblings, 0 replies; 5+ messages in thread
From: dilfridge at gentoo dot org @ 2023-09-13 15:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111406

--- Comment #2 from Andreas K. Huettel <dilfridge at gentoo dot org> ---
Indeed, sorry

https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=libiberty/Makefile.in#l388

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

* [Bug other/111406] libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory'
  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
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-09-14  9:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111406

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
These are only used in the install targets which when bootstrapped will have
used GCC from earlier stages.  When building cross compilers we require GCC as
host compiler.

So I think this isn't an issue unless you try to build libiberty stand-alone
or as part of binutils and also install it?

The sourceware bugzilla instance also doesn't have a libiberty component,
so tracking it here is possibly good enough but as said above you'll not hit
it in practice?

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

* [Bug other/111406] libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory'
  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
                   ` (2 preceding siblings ...)
  2023-09-14  9:21 ` rguenth at gcc dot gnu.org
@ 2023-09-15 19:38 ` dilfridge at gentoo dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dilfridge at gentoo dot org @ 2023-09-15 19:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111406

--- Comment #4 from Andreas K. Huettel <dilfridge at gentoo dot org> ---
(In reply to Richard Biener from comment #3)
> 
> So I think this isn't an issue unless you try to build libiberty stand-alone
> or as part of binutils and also install it?
> 

We have a binutils-libs package, which installs libbfd, libctf, libopcodes,
libsframe, and a statical libiberty.a

^ 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).