-
Notifications
You must be signed in to change notification settings - Fork 4.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
Ensure linux uses zlib-ng and not system ZLIB #105352
Conversation
Tagging subscribers to this area: @dotnet/area-system-io-compression |
Before:
After:
|
It's causing build failures. |
I applied the suggestion because the build is breaking and we're short on time since we need to backport this to Preview7 too. |
Yes macOS wasn't liking the syntax, while linux was passing. |
/backport to release/9.0-preview7 |
Started backporting to release/9.0-preview7: https://github.com/dotnet/runtime/actions/runs/10066382223 |
I see that most of the Unix build legs have finished and they were successful. Strangely, the build is still breaking for me in ubuntu after applying the latest fix. I just ran
Still appending |
Have you tried with a clean build:
|
Yes, it's completely clean. Note that I do not have zlib1g-dev installed here. So I'm trying to determine why in my machine we're trying to use the system zlib. |
It's the build ordering issue. runtime/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets Line 27 in 2c99cc5
and tries to use system libz. |
I'm being told that this is expected but it's also temporary: cdacreader.csproj uses the LKG toolchain, so it won't have zlib-ng available until we consume an SDK that has it. The workaround is to keep installing zlib1g-dev. |
Fix cmake expression syntax in System.IO.Compression.Native.