Skip to content

Install missing packages in azl 4.0 crossdeps - #1733

Merged
premun merged 3 commits into
dotnet:mainfrom
am11:patch-3
Aug 11, 2026
Merged

Install missing packages in azl 4.0 crossdeps#1733
premun merged 3 commits into
dotnet:mainfrom
am11:patch-3

Conversation

@am11

@am11 am11 commented Aug 10, 2026

Copy link
Copy Markdown
Member

build.sh on all arcade repos is failing:

tar (child): gzip: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2

It wasn't needed in 3.0 images because base system had it installed.


3.0 installed GNU toolchain at x86_64-pc-linux-gnu, which is recognized by clang but 4.0 install it at x86_64-azurelinux-linux, which isn't recognized.


Install missing C++ toolchain.

@am11
am11 requested review from a team as code owners August 10, 2026 17:44
@am11 am11 changed the title Install gzip in net4.0 crossdeps Install missing packages in azl 4.0 crossdeps Aug 10, 2026
@premun
premun merged commit faacbba into dotnet:main Aug 11, 2026
10 checks passed
@premun

premun commented Aug 11, 2026

Copy link
Copy Markdown
Member

@am11 I queued a full rebuild of all images, should be done tonight

@am11
am11 deleted the patch-3 branch August 11, 2026 10:17

# GNU toolchain is installed in 'x86_64-azurelinux-linux' directory which is not recognized by
# clang (https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/Gnu.cpp),
# so we create a symlink with -pc- triplet.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@am11 do you have a simple repro for this? I wonder if we should file a bug with azurelinux

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to fix this in the clang we build instead.

If I install clang through dnf then it finds the GCC location:

bash-5.3# clang -v
clang version 21.1.8 (Microsoft Corporation 21.1.8-8.azl4)
Target: aarch64-azurelinux-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/aarch64-azurelinux-linux-gnu-clang.cfg
System configuration file directory: /etc/clang/
Found candidate GCC installation: /usr/bin/../lib/gcc/aarch64-azurelinux-linux/15
Selected GCC installation: /usr/bin/../lib/gcc/aarch64-azurelinux-linux/15
Candidate multilib: .;@m64
Selected multilib: .;@m64

@am11 am11 Aug 11, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before: https://github.com/am11/CrossRepoCITesting/actions/runs/31414507086/job/93540201703
after (with new images): https://github.com/am11/CrossRepoCITesting/actions/runs/31487863070

Note that "before" failed after 31m and it wasn't the first native component build which failed. It failed when the build compiles JIT component for host RID. Every cross build (regardless of official/community) compiles some tools for host which requires host JIT.

I think we might need to fix this in the clang we build instead.

For runtime/VMR, that's enough to have a symlink, but yes that would be an idiomatic fix: #1734.

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

Successfully merging this pull request may close these issues.

3 participants