From: Nathan Chancellor <nathan@kernel.org>
To: Rong Xu <xur@google.com>, Han Shen <shenhan@google.com>
Cc: llvm@lists.linux.dev, linux-kbuild@vger.kernel.org
Subject: Build breakage from renamed '-split-machine-functions' plugin option
Date: Fri, 9 Oct 2026 22:45:01 +0100 [thread overview]
Message-ID: <20261009214501.GA905361@ax162> (raw)
Hi Rong and Han,
LLVM recently landed a commit renaming the '-split-machine-functions'
plugin option to '-function-splitting=all':
https://github.com/llvm/llvm-project/commit/3e6acc87c58843e551d6e8e4bf06c26712b04622
This breaks builds with CONFIG_AUTOFDO and CONFIG_LTO_CLANG_THIN with:
ld.lld: error: -plugin-opt=-: ld.lld: Unknown command line argument '-split-machine-functions'. Try: 'ld.lld --help'
Obviously, we can handle this rename but I noticed that the combination
of '-flto -fsplit-machine-functions' should add the corresponding
'-plugin-opt=' since LLVM 15:
https://github.com/llvm/llvm-project/commit/72acd042bad35f78232f17addc02196a7af1a6e9
So is this even necessary? Should we just remove
KBUILD_LDFLAGS += -plugin-opt=-split-machine-functions
from scripts/Makefile.autofdo and rely on '-fsplit-machine-functions' to
do the right thing or am I missing something here?
--
Cheers,
Nathan
next reply other threads:[~2026-10-09 21:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 21:45 Nathan Chancellor [this message]
[not found] ` <CAF1bQ=Qq66JuvYrbR-7GgegZuWPSjxDOgerUSD2NOp9W0BauZw@mail.gmail.com>
2026-10-10 18:49 ` Build breakage from renamed '-split-machine-functions' plugin option Rong Xu
2026-10-10 18:50 ` 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=20261009214501.GA905361@ax162 \
--to=nathan@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=shenhan@google.com \
--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