-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Getting compiler errors about a missing __COLD attribute? from zig headers #268
Comments
It should have been defined by glibc itself (in glibc 2.38+), can you try to inspect the code of the same file in |
Thanks for the response. I checked it in the rust docker container and it seem like:
Also It seems like that for some reason the system header from For reference that's with the |
Maybe it's caused by cmake? There is support for cmake in cargo-zigbuild but it's not really tested thoroughly. Lines 475 to 486 in d420792
|
That might be the case, I'm not sure about that. As a general note: The project I'm building depends on quite a few complex cmake projects (netcdf, hdf5, gdal, proj, just to name some). It works fine as soon as I specify that additional define manually. I believe that this means the cmake integration should be mostly fine. |
I have a project that depends on
netcdf-src 0.4.0
. Trying to build that in the official rust-lang docker container withcargo-zigbuild 0.19.1
andzig 0.13.0
installed fails with the following error messages:I can workaround that error by just adding
CFLAGS="-D__COLD=\"\""
to the compilation environment. I report this here as this either seems to be an issue incargo-zigbuild
(not setting that option) or inzig
itself (__COLD) shouldn't be there.Interestingly it works outside of the docker container with the same rust, zig, zig-build and netcdf-src version…
The text was updated successfully, but these errors were encountered: