Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel build: arch/x86/tools/insn_decoder_test: error: malformed line #1134

Open
dhodovsk opened this issue Dec 12, 2024 · 1 comment
Open
Labels
• arch Related to a particular arch, `arch/` support in general...

Comments

@dhodovsk
Copy link

While testing the mainline kernel, we get an error during the x86_64 build:

00:29:20 arch/x86/tools/insn_decoder_test: error: malformed line 3733181:
00:29:20 2_>:ffffffff81c92050
00:29:20 make[4]: *** [arch/x86/tools/Makefile:26: posttest] Error 3
00:29:20 make[3]: *** [arch/x86/Makefile:310: bzImage] Error 2
00:29:20 make[3]: *** Waiting for unfinished jobs....

For us, it started happening two weeks ago, since the Merge tag 'rust-6.13' of https://github.com/Rust-for-Linux/linux commit in kernel mainline.

The issue was already discussed in linux-kernel Mailing List, but it seems the suggested patches didn't come through.

Links:


I first wrongly reported this in the clang repo and they pointed me to this repository and also provided a reproducer :)

f92f4749861b ("Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux")

$ rustc --version
rustc 1.83.0 (90b35a623 2024-11-26)

$ clang --version | head -1
ClangBuiltLinux clang version 19.1.5 (https://github.com/llvm/llvm-project.git ab4b5a2db582958af1ee308a790cfdb42bd24720)

$ curl -LSso .config https://s3.amazonaws.com/arr-cki-prod-trusted-artifacts/trusted-artifacts/1583189702/build_x86_64/8607023441/artifacts/kernel-upstream-mainline-redhat_1583189702-x86_64-kernel.config

$ make -skj"$(nproc)" ARCH=x86_64 LLVM=1 olddefconfig bzImage
...
arch/x86/tools/insn_decoder_test: error: malformed line 3735255:
2_>:ffffffff81c94190
make[4]: *** [arch/x86/tools/Makefile:26: posttest] Error 3
...
@ojeda ojeda added the • arch Related to a particular arch, `arch/` support in general... label Dec 12, 2024
@ojeda
Copy link
Member

ojeda commented Dec 12, 2024

Thanks for the report -- yeah, the issue is known and old. The latest report (and patch) about it that I am aware of is https://lore.kernel.org/rust-for-linux/CANiq72nyMi5NUwmg20ZzX8RNC8+dP2J3Zey9Qfn+5CaoeET+7A@mail.gmail.com/.

Could you please reply (ping) in Lore, i.e. in one of the proposed patches like the one above? If this is breaking a particularly important use case (e.g. at your company), then it may be useful to mention that clearly in the message so that they raise the priority of this.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
• arch Related to a particular arch, `arch/` support in general...
Development

No branches or pull requests

2 participants