From: "Gary Guo" <gary@garyguo.net>
To: "Wang Yugui" <wangyugui@e16-tech.com>, <rust-for-linux@vger.kernel.org>
Subject: Re: build error of rust ordered/unordered sections mismatch
Date: Mon, 09 Nov 2026 14:08:34 +0000 [thread overview]
Message-ID: <DMQQMLKPTZX7.F75JGTOR6T0T@garyguo.net> (raw)
In-Reply-To: <20261109074705.418E.409509F4@e16-tech.com>
On Sun Nov 8, 2026 at 11:47 PM GMT, Wang Yugui wrote:
> Hi,
>
> When I build kernel 6.18.60 and 1.68.62(maybe more versions), a build error
> happended.
>
> ld: __patchable_function_entries has both ordered [`__patchable_function_entries'
> in rust/core.o] and unordered [`__patchable_function_entries' in
> io_uring/fdinfo.o] sections
>
> # rustc -V
> rustc 1.92.0 (ded5c06cf 2025-12-08) (Red Hat 1.92.0-1.module+el8.10.0+40191+971f4d77)
> # bindgen -V
> bindgen 0.72.1
> # gcc --version
> gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-30)
>
> But kernel 7.4.0-rc1 is built well on this server.
>
> any advice please.
LLVM emits SHF_LINK_ORDER for patchable function entry section:
https://github.com/llvm/llvm-project/blob/main/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp#L5232-L5252
You can try building the full kernel with LLVM toolchain (LLVM=1) or update the
binutils to 2.36.
Best,
Gary
prev parent reply other threads:[~2026-11-09 14:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-08 23:47 build error of rust ordered/unordered sections mismatch Wang Yugui
2026-11-09 14:08 ` Gary Guo [this message]
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=DMQQMLKPTZX7.F75JGTOR6T0T@garyguo.net \
--to=gary@garyguo.net \
--cc=rust-for-linux@vger.kernel.org \
--cc=wangyugui@e16-tech.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 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.