mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Piotr Gorski <piotrgorski@cachyos.org>
To: xur@google.com, Masahiro Yamada <masahiroy@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>,
	Nicolas Schier <nicolas.schier@linux.dev>,
	Nick Desaulniers <nick.desaulniers+lkml@gmail.com>,
	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>,
	Teresa Johnson <tejohnson@google.com>
Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
	llvm@lists.linux.dev
Subject: Re: [PATCH v4 0/2] kbuild: distributed build support for Clang ThinLTO
Date: Tue, 28 Oct 2025 11:43:15 +0100	[thread overview]
Message-ID: <b1e13b0b-19fa-4177-8ae1-0fcbf6d076c6@cachyos.org> (raw)
In-Reply-To: <20251027220914.2665978-1-xur@google.com>

I tried using this on kernel 6.17.5, but unfortunately I get this error. 
I previously tested the version in CachyOS: 
https://github.com/CachyOS/linux/commit/68984063b5e27854272241549e47cb2930ef9710 
and https://github.com/CachyOS/linux/ 
commit/00a3ff73a566b7e27b4ced46af4ce27177d9fc37 and everything works fine.

/bin/sh: -c: line 1: syntax error near unexpected token `('
/bin/sh: -c: line 1: `set -e;    trap 'rm -f 
drivers/net/wireguard/main.o; trap - HUP; kill -s HUP $$' HUP; trap 'rm 
-f drivers/net/wireguard/main.o; trap - INT; kill -s INT $$' INT;  trap 
'rm -f drivers/net/wireguard/main.o
; trap - QUIT; kill -s QUIT $$' QUIT;  trap 'rm -f 
drivers/net/wireguard/main.o; trap - TERM; kill -s TERM $$' TERM; trap 
'rm -f drivers/net/wireguard/main.o; trap - PIPE; kill -s PIPE $$' PIPE; 
printf '\n%s\n' 'saved_c_flag
s_drivers/net/wireguard/main.o := -D__KERNEL__ --target=x86_64-linux-gnu 
-fintegrated-as -Werror=ignored-optimization-argument 
-Werror=option-ignored -std=gnu11 -fshort-wchar -funsigned-char 
-fno-common -fno-PIE -fno-strict-a
liasing -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx 
-fcf-protection=branch -fno-jump-tables -m64 -falign-loops=1 -mno-80387 
-mno-fp-ret-in-387 -mstack-alignment=8 -mskip-rax-setup -march=znver4 
-mno-red-zone -mcmodel=kern
el -mstack-protector-guard-reg=gs 
-mstack-protector-guard-symbol=__ref_stack_chk_guard -Wno-sign-compare 
-fno-asynchronous-unwind-tables -mretpoline-external-thunk 
-mindirect-branch-cs-prefix -mfunction-return=thunk-extern -m
harden-sls=all -fpatchable-function-entry=16,16 
-fno-delete-null-pointer-checks -O3 -fstack-protector-strong 
-ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mfentry 
-DCC_USING_NOP_MCOUNT -DCC_USING_FENTRY -fno-l
to -flto=thin -fsplit-lto-unit -fvisibility=hidden -falign-functions=16 
-fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check 
-fno-builtin-wcslen -Wall -Wextra -Wundef 
-Werror=implicit-function-declaration -Werror=impl
icit-int -Werror=return-type -Wno-format-security -Wno-trigraphs 
-Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations 
-Wmissing-prototypes -Wframe-larger-than=2048 -Wno-gnu 
-Wno-format-overflow-non-kprintf
-Wno-format-truncation-non-kprintf -Wno-default-const-init-unsafe 
-Wno-pointer-sign -Wcast-function-type 
-Wno-unterminated-string-initialization -Wimplicit-fallthrough 
-Werror=date-time -Wenum-conversion -Wunused -Wno-unused-
but-set-variable -Wno-unused-const-variable -Wno-format-overflow 
-Wno-override-init -Wno-pointer-to-enum-cast 
-Wno-tautological-constant-out-of-range-compare -Wno-unaligned-access 
-Wno-enum-compare-conditional -Wno-missing-fi
eld-initializers -Wno-type-limits -Wno-shift-negative-value 
-Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -g 
-gdwarf-5 -D'pr_fmt(fmt)=KBUILD_MODNAME ": " fmt'' >> 
drivers/net/wireguard/.main.o.cmd'
make[5]: *** [scripts/Makefile.build:287: drivers/net/wireguard/main.o] 
Error 2
make[5]: *** Deleting file 'drivers/net/wireguard/main.o'
make[4]: *** [scripts/Makefile.build:556: drivers/net/wireguard] Error 2

LLVM/CLANG: 21.1.4

If necessary, I can send more logs.

Best regards,

Piotr

W dniu 27.10.2025 o 23:09, xur@google.com pisze:
> From: Rong Xu <xur@google.com>
>
> This V4 is based on the reimplementation provided by Masahiro Yamada
> on May 26. The difference is that this version now saves the compiler
> flags (_c_flags) from the Front-End (FE) compilation and re-uses them
> for the subsequent Back-End (BE) compilation.
>
> Rong Xu (2):
>    kbuild: move vmlinux.a build rule to scripts/Makefile.vmlinux_a
>    kbuild: distributed build support for Clang ThinLTO
>
>   .gitignore                 |  2 +
>   Makefile                   | 25 +++++-------
>   arch/Kconfig               | 19 +++++++++
>   scripts/Makefile.lib       |  7 ++++
>   scripts/Makefile.thinlto   | 40 ++++++++++++++++++
>   scripts/Makefile.vmlinux_a | 83 ++++++++++++++++++++++++++++++++++++++
>   scripts/mod/modpost.c      | 15 +++++--
>   7 files changed, 174 insertions(+), 17 deletions(-)
>   create mode 100644 scripts/Makefile.thinlto
>   create mode 100644 scripts/Makefile.vmlinux_a
>
>
> base-commit: dcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa

  parent reply	other threads:[~2025-10-28 10:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-27 22:09 xur
2025-10-27 22:09 ` [PATCH v4 1/2] kbuild: move vmlinux.a build rule to scripts/Makefile.vmlinux_a xur
2025-10-27 22:09 ` [PATCH v4 2/2] kbuild: distributed build support for Clang ThinLTO xur
2025-10-28 10:43 ` Piotr Gorski [this message]
2025-10-28 17:07   ` [PATCH v4 0/2] " Rong Xu

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=b1e13b0b-19fa-4177-8ae1-0fcbf6d076c6@cachyos.org \
    --to=piotrgorski@cachyos.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=morbo@google.com \
    --cc=mpe@ellerman.id.au \
    --cc=nathan@kernel.org \
    --cc=nick.desaulniers+lkml@gmail.com \
    --cc=nicolas.schier@linux.dev \
    --cc=ojeda@kernel.org \
    --cc=rppt@kernel.org \
    --cc=samitolvanen@google.com \
    --cc=shorne@gmail.com \
    --cc=tejohnson@google.com \
    --cc=tglx@linutronix.de \
    --cc=xur@google.com \
    /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

all inboxes | Powered by JetHome®