-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
linux/ppc64el: fails to build LLVM with ./elf/thunks.cc:257: void mold::elf::OutputSection<E>::create_range_extension_thunks(mold::elf::Context<E>&) [with E = mold::elf::PPC64V2]: Assertion
thunk->size() < max_thunk_size' failed.`
#1224
Comments
./elf/thunks.cc:257: void mold::elf::OutputSection<E>::create_range_extension_thunks(mold::elf::Context<E>&) [with E = mold::elf::PPC64V2]: Assertion
thunk->size() < max_thunk_size' failed.`
Just to confirm: I can reproduce the issue if I build Clang with mold on ppc64le, right? |
Yes, except if it is caused by some extra LDFLAGS that we use (but you can see them in the log) |
It is not easy to reproduce the issue for me because it involves lots of Debian-specific toolings. Could you reproduce the issue just by building LLVM from source without using Debian-specific tools? |
Just running the cmake will all the arg should be good but I will try to make a test case. Any recommendation on what to do next? |
I fired up debian:unstable docker image, installed build-deps for clang-18, installed mold, checked out the llvm repo from github, and then copy-and-pasted the cmake command line, but it built just fine. So I think there's a hidden condition to reproduce the issue. Ideally, I want to know a procedure to reproduce the issue with the docker image. |
I'm seeing the same thing on fedora 40 aarch64 (asahi linux) on a different codebase.
|
I need a reproducer to debug it. Is your program open-source? |
Here's a small reproducer:
|
Please try again with git head. |
using mold:
2.4.1+dfsg-1 (i will try with 2.30 but i don't see any potential fix in the release notes))
Full log:
https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-18&arch=ppc64el&ver=1%3A18.1.2-1&stamp=1710939656&raw=0
The text was updated successfully, but these errors were encountered: