public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nikita Popov <npopov@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/llvm] rawhide: Use LLD on RHEL 8 as well
Date: Mon, 06 Jul 2026 12:40:04 GMT	[thread overview]
Message-ID: <178334160433.1.12482860429283733280.rpms-llvm-3173df92c12a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/llvm
            Branch : rawhide
            Commit : 3173df92c12a01e84c454456648cc57385e6ff7c
            Author : Nikita Popov <npopov@redhat.com>
            Date   : 2026-07-06T12:39:09+00:00
            Stats  : +2/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/llvm/c/3173df92c12a01e84c454456648cc57385e6ff7c?branch=rawhide

            Log:
            Use LLD on RHEL 8 as well

Currently we use LLD everywhere except RHEL 8. Originally we started
using LLD because it was necessary for PGO, and we don't use PGO on
RHEL 8.

I'm proposing to enable use of LLD everywhere. In particular, this
avoids a linker error on rhel-8-s390x:

> (.text._ZNSt23_Sp_counted_ptr_inplaceINSt10filesystem7__cxx1116filesystem_error5_ImplESaIS3_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info[_ZNSt23_Sp_counted_ptr_inplaceINSt10filesystem7__cxx1116filesystem_error5_ImplESaIS3_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info]+0x18): misaligned symbol `_ZTSSt19_Sp_make_shared_tag' (0xbc735) for relocation R_390_PC32DBL

This is due to a bug in the binutils version used by gcc-toolset-15.
The issue does not occur when using LLD.

---
diff --git a/llvm.spec b/llvm.spec
index 5226aba..49badbd 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -232,13 +232,9 @@ end
 %endif
 %endif
 
-
-%if 0%{?rhel} == 8
-# RHEL8 still builds with gcc + ld.bfd.
-%bcond_with use_lld
-%else
+# Use LLD instead of the system linker by default.
+# This is required if PGO is enabled.
 %bcond_without use_lld
-%endif
 
 %if %{with pgo} && %{without use_lld}
 %{error:PGO requires --with=lld}

                 reply	other threads:[~2026-07-06 12:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178334160433.1.12482860429283733280.rpms-llvm-3173df92c12a@fedoraproject.org \
    --to=npopov@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox