Skip to content

fatal error: 'cmath' file not found #2777

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

Closed
juntyr opened this issue Mar 19, 2025 · 6 comments
Closed

fatal error: 'cmath' file not found #2777

juntyr opened this issue Mar 19, 2025 · 6 comments

Comments

@juntyr
Copy link

juntyr commented Mar 19, 2025

Crate name

numcodecs-sz3

Build failure link

https://docs.rs/crate/numcodecs-sz3/0.4.0/builds/1886099

Additional details

v0.3.0 (latest build here: https://docs.rs/crate/numcodecs-sz3/0.3.0/builds/1805870/x86_64-unknown-linux-gnu.txt) succeeded, only Rust code changed between these two releases. I'm not sure why the C build for sz3-sys now fails, is this an issue on my end (CI is still happy) or did something change in the docs.rs build env?

@syphar
Copy link
Member

syphar commented Mar 19, 2025

@juntyr we upgraded the build image to ubuntu noble: rust-lang/crates-build-env#168

due to the long list of changes this involved some risk of breakage.

Do you see / know which package might be missing for the build?

I'm happy to revert the whole change, but I would prefer just to add the missing image.

@syphar
Copy link
Member

syphar commented Mar 19, 2025

googling gives me no clear answer, possibly adding libstdc++-14-dev could help?

@juntyr
Copy link
Author

juntyr commented Mar 19, 2025

I'm unfortunately also not sure which package would be needed, but libstdc++-14-dev sounds like a good guess to me. The only time I've seen a similar error was when compiling a similar crate (also has C++ code it needs to build) (locally) without a proper sysroot.

How much work would it be to see if adding libstdc++-14-dev would help?

@syphar
Copy link
Member

syphar commented Mar 20, 2025

just testing locally, have to rebuild some containers first

@syphar
Copy link
Member

syphar commented Mar 20, 2025

Build passed now

@syphar syphar closed this as completed Mar 20, 2025
@juntyr
Copy link
Author

juntyr commented Mar 20, 2025

Thank you so much for your help @syphar <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants