-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 PPCLE - could not compile typenum
(lib)
#127610
Comments
Note that it's best to paste the error text directly into the issue message so nobody has to download files. The collapsible
Backtrace
|
This is really weird though, we should be testing apfloat in multiple places. Is this in a docker container where you could easily test centos 8? Since centos 7 is only a few weeks from EOL. @rustbot label +O-PowerPC +A-floating-point -needs-triage |
I am inclined to think that this may something with your system, we test ppc64le in CI. Here is the dockerfile for reference https://github.com/rust-lang-ci/rust/blob/bcf1f6db4594ae6132378b179a30cdb3599a863d/src/ci/docker/host-x86_64/dist-powerpc64le-linux/Dockerfile. @jordannort could you try to replicate this outside of rustc? Something like this, you'll need the use rustc_apfloat::ieee::Single;
use rustc_apfloat::Float;
fn main() {
let x: Single ="0".parse::<Single>().unwrap();
println!("{x}, {:#x}", x.to_bits());
} |
Hi Trevor, thank you for your response
Yes, it's possible that it's an issue with the image. It's a docker container running on a CentOS 7 x64 host for cross-compiling C/C++. We've not had any issue with floats thus far, and a simple C program to test floats yields expected results.
The output was Also tried the following: |
Hi Trevor, After some back and forth, it has turned out that the docker image does have some issues. I've recreated it with enough capability to get typenum to build, so I thank you for your help in the matter and apologies for wasting your time. |
No worries at all, I'm glad you were able to fix it. What caused the problem? |
The image was built a few years ago with an old version of the qemu-ppc6le-static binary, so I can only hazard a guess that there was some issue with the emulation, with the older version, in this particular scenario. |
Hi, apologies if anything is incorrect. I've been trying to build a Python wheel for bcrypt, but have been unable to get past compiling the typenum dependency. I've tried manually cloning the typenum repository and building it directly but encountered the same trace as shown below. Any suggestions would be greatly appreciated.
Code
https://github.com/paholg/typenum
Meta
Operating System: CentOS 7 PPCLE
rustc --version --verbose
:Error output
error.log
Backtrace
backtrace.log
The text was updated successfully, but these errors were encountered: