Repository navigation
Update Alpine versions - #4556
richlander wants to merge 3 commits into
Conversation
|
Looks like the new image doesn't have the latest clang. There are build errors in the linux musl Build Native leg even through it looks like it succeeded (some problem in our infrastructure). |
|
Are you sure that's the problem? This is what I see. rich@mazama:~$ docker run --rm mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-WithNode clang --version
Alpine clang version 10.0.1
Target: x86_64-alpine-linux-musl
Thread model: posix
InstalledDir: /usr/bin
rich@mazama:~$ docker run --rm mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode clang --version
Alpine clang version 17.0.5
Target: x86_64-alpine-linux-musl
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang17/x86_64-alpine-linux-musl.cfg |
|
I assumed it was something about the clang version because the alpine legs are failing like this: |
I think it is the opposite, that the new image has the latest clang. The old image had a very old We don't have an Alpine 3.18 image ("with node") today, but we could create one. Alpine 3.18 includes Clang 16. However, I'm not sure that this would help a lot, since we plan to move to Clang 17 this release. |
|
Looks like the build break was in PAL code that hasn't been updated from the runtime in a long time. I pushed a fix. |
|
Looks like my fix didn't build. Working on it. |
|
It turns out there are a lot more changes needed in the diagnostics PAL to get it to build with new clang in the new Alpine images. The diagnostics PAL hasn't been updated from the runtime PAL in a long time. I started to do the runtime sync a couple of months and never finished it having to move on to other things. It is a lot of work. Too much to do in this PR. /cc: @tommcdon |
|
OK. Let's switch to Alpine 3.18 for now (which I can do). We need to plan for this issue. We are thinking about moving to clang 17 for the .NET 9 build and Alpine 3.18 will eventually go EOL (in just over a year). https://alpinelinux.org/releases/ |
|
Thanks everyone for the help! I'm going to close this PR and start again when Alpine 3.18 images are available. |
Replaces #4556 Previous PR used Alpine 3.19 (with clang 17). This PR attempted to update to update with Alpine 3.18 (with clang 16). That also failed. Container images we should be using for .NET 8+: https://github.com/dotnet/runtime/blob/main/docs/workflow/building/coreclr/linux-instructions.md
alpine-3.19-WithNodeis the next versions where we have a container image. That's likely good enough.