-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustbuild: linker error during 32 bit compilation #37906
Comments
Intuitively I would guess that you're missing the i686 version of glibc (although I think that intrinsic should come from compiler-rt (at least for later stages)?). Looking at the i686 linux docker file, it installs |
I believe this is a known bug and where rustbuild is just broken right now. rust-lang/compiler-builtins#119 is the fix for this which is being included in #37817 |
@TimNN I had gcc-multilib installed, will try with g++-multilib. |
@est31: It's probably save to ignore my comment, given @alexcrichton's response. |
@TimNN nope, same error with both gcc-multilib and g++-multilib installed. Will try with @alexcrichton 's PR... |
I confirm that with #37817 applied the bug is fixed. Thanks @alexcrichton ! |
Thanks! I haven't confirmed whether the issue is fixed, but I assume so. |
i128 and u128 support Adds support for 128-bit integers. Rebased version of #35954 , with additional improvements. Thanks @nagisa for mentoring this PR! Some of the problems that were resolved: * [x] Confirm that intrinsics work on 32 bit platforms and fix them if needed * Wait for #37906 to get fixed, so that work on intrinsics can be completed *(worked around by merging the PR on my local setup)* * [x] Investigate and fix linkcheck failure [plugin-breaking-change] cc #35118
I'm on a 64 bit OS and want to test 32 bit rust so that I can confirm the intrinsics for #37900 work. But unfortunately, rustbuild doesn't even get so far and fails with an error early on. Obviously, I've tested without the PR too, but same result. The results below are all from a test run after a git checkout to current master (commit 4bc9290),
git clean -xfd
to get rid of all artifacts and taking config.toml from config.toml.example and changing two things: settingbuild = "i686-unknown-linux-gnu"
andcodegen-units = 1
. I've also tested with letting codegen-units as default, but same result (the logs are still from the test run withcodegen-units == 1
but I guess there is no difference).The relevant part of the full build log:
readelf on the file in question gives:
The text was updated successfully, but these errors were encountered: