Skip to content
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

[mono] FullAOT runtime test failures: cross-compiler can't find sibling assemblies during AOT compilation #57371

Closed
imhameed opened this issue Aug 13, 2021 · 2 comments
Labels
area-Infrastructure-mono runtime-mono specific to the Mono runtime
Milestone

Comments

@imhameed
Copy link
Contributor

Breaks compilation of the assemblies in Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule.

Relevant environment variables used during AOT compilation:

2021-08-13T16:52:18.8495786Z   Mono AOT options: full,llvm,llvm-path=/__w/1/s/artifacts/bin/mono/Linux.arm64.Release/cross/linux-arm64,tool-prefix=aarch64-linux-gnu-,mattr=crc,mattr=crypto
2021-08-13T16:52:18.8497092Z   Mono AOT MONO_PATH: /__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Tests/Core_Root

Example output from the arm64 LLVM FullAOT CI lane:

2021-08-13T17:38:19.0962792Z   Mono Ahead of Time compiler - compiling assembly /__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule/B.dll
2021-08-13T17:38:19.0964289Z   AOTID 30BFAE25-9FC8-BFB2-BECC-9B2CAA4B7E55
2021-08-13T17:38:19.0941328Z   Failed to load method 0x6000001 from '/__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule/B.dll' due to Could not load file or assembly 'A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies..
2021-08-13T17:38:19.0949223Z   Run with MONO_LOG_LEVEL=debug for more information.
2021-08-13T17:38:19.0954757Z   AOT of image /__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule/B.dll failed.
2021-08-13T17:38:19.1024852Z /__w/1/s/src/mono/msbuild/aot-compile.proj(8,9): error MSB3073: The command "/__w/1/s/artifacts/bin/mono/Linux.arm64.Release/cross/linux-arm64/mono-aot-cross /__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule/B.dll" exited with code 1.
@imhameed imhameed added area-Infrastructure-mono runtime-mono specific to the Mono runtime labels Aug 13, 2021
@imhameed imhameed added this to the Future milestone Aug 13, 2021
@ghost
Copy link

ghost commented Aug 13, 2021

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

Issue Details

Breaks compilation of the assemblies in Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule.

Relevant environment variables used during AOT compilation:

2021-08-13T16:52:18.8495786Z   Mono AOT options: full,llvm,llvm-path=/__w/1/s/artifacts/bin/mono/Linux.arm64.Release/cross/linux-arm64,tool-prefix=aarch64-linux-gnu-,mattr=crc,mattr=crypto
2021-08-13T16:52:18.8497092Z   Mono AOT MONO_PATH: /__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Tests/Core_Root

Example output from the arm64 LLVM FullAOT CI lane:

2021-08-13T17:38:19.0962792Z   Mono Ahead of Time compiler - compiling assembly /__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule/B.dll
2021-08-13T17:38:19.0964289Z   AOTID 30BFAE25-9FC8-BFB2-BECC-9B2CAA4B7E55
2021-08-13T17:38:19.0941328Z   Failed to load method 0x6000001 from '/__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule/B.dll' due to Could not load file or assembly 'A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies..
2021-08-13T17:38:19.0949223Z   Run with MONO_LOG_LEVEL=debug for more information.
2021-08-13T17:38:19.0954757Z   AOT of image /__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule/B.dll failed.
2021-08-13T17:38:19.1024852Z /__w/1/s/src/mono/msbuild/aot-compile.proj(8,9): error MSB3073: The command "/__w/1/s/artifacts/bin/mono/Linux.arm64.Release/cross/linux-arm64/mono-aot-cross /__w/1/s/artifacts/tests/coreclr/Linux.arm64.Release/Loader/classloader/MethodImpl/CovariantReturns/UnitTest/UnitTestMultiModule/B.dll" exited with code 1.
Author: imhameed
Assignees: -
Labels:

area-Infrastructure-mono, runtime-mono

Milestone: Future

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Aug 13, 2021
@imhameed imhameed removed the untriaged New issue has not been triaged by the area owner label Aug 13, 2021
@imhameed
Copy link
Contributor Author

Should have been fixed by 00b6b57 in #55362.

@ghost ghost locked as resolved and limited conversation to collaborators Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure-mono runtime-mono specific to the Mono runtime
Projects
None yet
Development

No branches or pull requests

1 participant