dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.23k stars 4.45k forks source link

Update build to `net9.0` images #101630

Closed richlander closed 2 weeks ago

richlander commented 2 weeks ago

This change will update the branch to building with LLVM 18.1.4. Everything else should be the same relative to the net8.0 image flavor (which we intend to apply to release/8.0 branch in July or so).

https://github.com/dotnet/dotnet-buildtools-prereqs-docker/pull/1015

@sbomer

dotnet-policy-service[bot] commented 2 weeks ago

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries See info in area-owners.md if you want to be subscribed.

richlander commented 2 weeks ago

Looks like the x86 build has a failure with the new compiler. Reverting that for now. We'll need to deal with that in a separate focused PR. Other architectures appear to be fine.

  /__w/1/s/src/coreclr/pal/inc/pal.h:3605:5: error: __sync builtin operation MUST have natural alignment (consider using __atomic). [-Werror,-Wsync-alignment]
   3605 |     __sync_val_compare_and_swap(
        |     ^
  /__w/1/s/src/coreclr/pal/inc/pal.h:3471:5: error: __sync builtin operation MUST have natural alignment (consider using __atomic). [-Werror,-Wsync-alignment]
   3471 |     __sync_add_and_fetch(lpAddend, (LONGLONG)1)
        |     ^
  /__w/1/s/src/coreclr/pal/inc/pal.h:3506:5: error: __sync builtin operation MUST have natural alignment (consider using __atomic). [-Werror,-Wsync-alignment]
   3506 |     __sync_sub_and_fetch(lpAddend, (LONGLONG)1)
        |     ^
  3 errors generated.

https://dev.azure.com/dnceng-public/public/_build/results?buildId=657718&view=logs&j=3e76e48d-899b-5193-2f21-2a0f6c53e9ff&t=a2c05d5c-b239-5644-4717-b3f9c339267b&l=752

richlander commented 2 weeks ago

@lewing do you think the wasm failures are related to this change?

jkotas commented 2 weeks ago

The wasm failures are know issues.