-
Notifications
You must be signed in to change notification settings - Fork 5k
[8.0][linux-s390x] Build failure in hostpolicy #112435
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
Comments
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov |
cc @uweigand in case you've seen this or have an idea here. The runtime/eng/native/functions.cmake Lines 327 to 346 in 4e2e722
And then added to the linker options: runtime/eng/native/functions.cmake Lines 256 to 268 in 4e2e722
|
Hi @elinor-fung , I just tried to reproduce the issue (at current
which does look fine to me. I'm wondering: can you get the copy of that file from the failed build? This failure happened during the cross-compile on x86, so these should be all Microsoft machines. Would be interesting to see whether the problem is that the file was incorrectly generated somehow, or else the problem is that the cross-linker installed on those machines somehow does not accept a valid file. |
Thanks for taking a look.
@akoeplinger indicated that this may be related to an update to the images being used #112381 (comment)
@akoeplinger / @carlossanlop Do you know if we have those intermediates stored somewhere or would we need to make the pipelines upload them? I didn't see anything in the artifacts. Or, what would be the best way to try to repro this, since it seems specific to how the CI builds are set up? |
@elinor-fung @uweigand the hostpolicy.exports file looks identical to the one you posted. The easiest way to reproduce the failure locally is via docker: $ docker run -it mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net8.0-cross-s390x bash
git clone --branch release/8.0 --depth 1 https://github.com/dotnet/runtime runtime-repo
cd runtime-repo
export ROOTFS_DIR=/crossrootfs/s390x
./build.sh -arch s390x -os linux -cross -s host |
ah, just found that we already solved this: #94355 π |
ok that fixed it:
will backport the arcade fix |
This is necessary to unbreak the s390x build after the move to the azurelinux-3.0 images: dotnet/runtime#112435 Co-authored-by: Adeel Mujahid <[email protected]>
Excellent, thanks! I notice that this refers to the problem that LLD is not available for s390x - that is actually no longer the case. As of LLVM 18, we do have LLD support now as well. So whenever you've upgraded your build environment to at least that release, any special-casing of LLD s390x support should no longer be necessary. |
Yep I think we already have that handled in https://github.com/dotnet/arcade/blob/ecdb2f499cb5f5c99b58fba1a14fdf977c56e1ac/eng/common/native/init-compiler.sh#L136-L140 I'll close this issue now that the fix is in arcade, it'll flow to runtime with #112504 |
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=947568&view=logs&j=7ea23876-d932-5222-06a0-de72daa3cbf4
Build error leg or test failing: Build / linux-s390x Release AllSubsets_Mono / Build product
Pull request: #112381
Error Message
Fill the error message using step by step known issues guidance.
Known issue validation
Build: π https://dev.azure.com/dnceng-public/public/_build/results?buildId=947568
Error message validated:
[hostpolicy.exports:1: syntax error clang-16: error: linker command failed with exit code 1
]Result validation: β Known issue did not match with the provided build.
Validation performed at: 2/11/2025 6:12:29 PM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: