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

.NET 9 Preview 7 often fails to build on arm64 #4555

Closed
omajid opened this issue Aug 14, 2024 · 8 comments
Closed

.NET 9 Preview 7 often fails to build on arm64 #4555

omajid opened this issue Aug 14, 2024 · 8 comments

Comments

@omajid
Copy link
Member

omajid commented Aug 14, 2024

Describe the Bug

I have been trying to build the .NET 9 Preview 7 release on a number of OS/architecture combinations. I have noticed that VMR builds often fail on arm64.

  1. arm64 + CentOS Stream 10 fails with Analyzer 'Microsoft.Interop.Analyzers.CustomMarshallerAttributeAnalyzer' threw an exception of type 'System.InvalidProgramException' with message 'Common Language Runtime detected an invalid program.

  2. arm64 + RHEL 9 failed with CSC : error AD0001: Analyzer 'Microsoft.NetCore.CSharp.Analyzers.Runtime.CSharpDetectPreviewFeatureAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'

  3. arm64 + Fedora ELN and arm64 + Fedora Rawhide failed with a crash: error MSB6006: "csc.dll" exited with code 139.

This doesn't seem to affect every build or every arm64 platform. As an example, an attempt on arm64 + Fedora 39 worked, as did arm64 + RHEL 8.

Steps to Reproduce

On an arm64 machine, the following sequence of steps can fail:

git clone https://github.com/dotnet/dotnet
cd dotnet
git checkout v9.0.0-preview.7.24405.7
./prep-source-build.sh
./build.sh --source-only

Other Information

Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@mthalman
Copy link
Member

This is the tracking issue for that: dotnet/dnceng#3305. We had previously encountered it in our VMR builds: #4451. But it went away. Other builds are still seeing it apparently. It's not limited to the VMR.

@MichaelSimons
Copy link
Member

@omajid - Can you clarify what SDK you are using to build? Are you using the version prep retrieves (e.g. 9.0.100-preview.7.24380.2)?

@omajid
Copy link
Member Author

omajid commented Aug 14, 2024

Are you using the version prep retrieves (e.g. 9.0.100-preview.7.24380.2)?

Yes. All the build logs show:

Welcome to .NET 9.0!
---------------------
SDK Version: 9.0.100-preview.7.24380.2

@omajid
Copy link
Member Author

omajid commented Aug 14, 2024

This is the tracking issue for that: dotnet/dnceng#3305.

Ah, I didn't see that. Shall I close this issue in source-build, then?

@MichaelSimons
Copy link
Member

Ah, I didn't see that. Shall I close this issue in source-build, then?

My preference would be for you to add a comment to dotnet/dnceng#3305 and then close this one.

@omajid
Copy link
Member Author

omajid commented Aug 14, 2024

Okay, comment added there.

@omajid omajid closed this as completed Aug 14, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in .NET Source Build Aug 14, 2024
@omajid omajid closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants