All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Schier <nsc@kernel.org>
To: xur@google.com
Cc: Masahiro Yamada <masahiroy@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>,
	Nick Desaulniers <nick.desaulniers+lkml@gmail.com>,
	Yonghong Song <yonghong.song@linux.dev>,
	Bill Wendling <morbo@google.com>,
	Justin Stitt <justinstitt@google.com>,
	Miguel Ojeda <ojeda@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Alice Ryhl <aliceryhl@google.com>,
	Sami Tolvanen <samitolvanen@google.com>,
	"Mike Rapoport (Microsoft)" <rppt@kernel.org>,
	Rafael Aquini <aquini@redhat.com>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Stafford Horne <shorne@gmail.com>,
	Christophe Leroy <christophe.leroy@csgroup.eu>,
	Piotr Gorski <piotrgorski@cachyos.org>,
	Venkat Rao Bagalkote <venkat88@linux.ibm.com>,
	Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>,
	Teresa Johnson <tejohnson@google.com>,
	linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
	llvm@lists.linux.dev
Subject: Re: [PATCH v12 2/3] kbuild: change --thin back to 'T' in $(AR)
Date: Tue, 2 Jun 2026 09:17:41 +0200	[thread overview]
Message-ID: <ah6DleoCYipTwcO_@levanger> (raw)
In-Reply-To: <20260529185347.2418373-3-xur@google.com>

On Fri, May 29, 2026 at 11:53:45AM -0700, xur@google.com wrote:
> From: Rong Xu <xur@google.com>
> 
> The '-T' flag in $(AR) is no longer problematic since the minimum
> requirement for LLVM has been updated to version 15. As of LLVM 14
> and onward, the '-T' flag functions identically to the '--thin' flag.

For correctness: it's called "'T' modifier"  (instead of "'-T' flag").

> 
> Fixed the issue seen on IBM Power11 System:
>   ar: unrecognized option '--thin'
> 
> Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
> Closes: https://lore.kernel.org/linux-next/476507c9-a371-4864-9e87-572c1ecae82d@linux.ibm.com/
> Signed-off-by: Rong Xu <xur@google.com>
> ---
>  scripts/Makefile.vmlinux_a | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/scripts/Makefile.vmlinux_a b/scripts/Makefile.vmlinux_a
> index 9774f02b43b2..650d44330d1f 100644
> --- a/scripts/Makefile.vmlinux_a
> +++ b/scripts/Makefile.vmlinux_a
> @@ -10,12 +10,12 @@ include $(srctree)/scripts/Makefile.lib
>  # Link of built-in-fixup.a
>  # ---------------------------------------------------------------------------
>  
> -# '$(AR) mPi' needs --thin to workaround the bug of llvm-ar <= 14
> +# '$(AR) mPi' needs 'T' to workaround the bug of llvm-ar <= 14

This comment should be removed.

>  quiet_cmd_ar_builtin_fixup = AR      $@
>        cmd_ar_builtin_fixup = \
>  	rm -f $@; \
> -	$(AR) cDPrS --thin $@ $(KBUILD_VMLINUX_OBJS); \
> -	$(AR) mPi --thin $$($(AR) t $@ | sed -n 1p) $@ $$($(AR) t $@ | grep -F -f $(srctree)/scripts/head-object-list.txt)
> +	$(AR) cDPrST $@ $(KBUILD_VMLINUX_OBJS); \
> +	$(AR) mPiT $$($(AR) t $@ | sed -n 1p) $@ $$($(AR) t $@ | grep -F -f $(srctree)/scripts/head-object-list.txt)
>  
>  targets += built-in-fixup.a
>  built-in-fixup.a: $(KBUILD_VMLINUX_OBJS) scripts/head-object-list.txt FORCE
> -- 
> 2.54.0.823.g6e5bcc1fc9-goog
> 

Thanks!

Reviewed-by: Nicolas Schier <nsc@kernel.org>

  reply	other threads:[~2026-06-02  8:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-29 18:53 [PATCH v12 0/3] kbuild: distributed build support for Clang ThinLTO xur
2026-05-29 18:53 ` [PATCH v12 1/3] kbuild: move vmlinux.a build rule to scripts/Makefile.vmlinux_a xur
2026-05-29 18:53 ` [PATCH v12 2/3] kbuild: change --thin back to 'T' in $(AR) xur
2026-06-02  7:17   ` Nicolas Schier [this message]
2026-06-02 16:51     ` Rong Xu
2026-06-03  1:45       ` Nathan Chancellor
2026-05-29 18:53 ` [PATCH v12 3/3] kbuild: distributed build support for Clang ThinLTO xur

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=ah6DleoCYipTwcO_@levanger \
    --to=nsc@kernel.org \
    --cc=aliceryhl@google.com \
    --cc=aquini@redhat.com \
    --cc=christophe.leroy@csgroup.eu \
    --cc=justinstitt@google.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=masahiroy@kernel.org \
    --cc=miguel.ojeda.sandonis@gmail.com \
    --cc=morbo@google.com \
    --cc=mpe@ellerman.id.au \
    --cc=nathan@kernel.org \
    --cc=nick.desaulniers+lkml@gmail.com \
    --cc=ojeda@kernel.org \
    --cc=piotrgorski@cachyos.org \
    --cc=rppt@kernel.org \
    --cc=samitolvanen@google.com \
    --cc=shorne@gmail.com \
    --cc=tejohnson@google.com \
    --cc=tglx@linutronix.de \
    --cc=venkat88@linux.ibm.com \
    --cc=xur@google.com \
    --cc=yonghong.song@linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.