You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just logging an issue I ran into while building dotnet/runtime on WSL2 Arm64:
_$ ./build.sh clr -c release_
.
.
.
Build FAILED.
/home/prgovi/repos/runtime_2/src/coreclr/src/tools/aot/crossgen2/crossgen2.csproj(87,5): error MSB3030: Could not copy the file "/home/prgovi/repos/runtime_2/artifacts/bin/coreclr/Linux.arm64.Release//x64/libjitinterface.so" because it was not found.
/home/prgovi/.nuget/packages/microsoft.build.traversal/2.0.34/Sdk/Sdk.targets(116,5): error MSB4181: The "MSBuild" task returned false but did not log an error. [/home/prgovi/repos/runtime_2/Build.proj]
0 Warning(s)
2 Error(s)
I'm not super familiar with the build infra, but it looks like a bad path? I see a "/x64" in the error message. Running find . -name libjitinterface* gives this:
/home/carlos/runtime/src/coreclr/src/tools/aot/crossgen2/crossgen2.csproj(87,5):
error MSB3030:
Could not copy the file "/home/carlos/runtime/artifacts/bin/coreclr/Linux.arm64.Release//x64/libjitinterface.so" because it was not found.
I think the problem is in the path creation - notice the second string has a double // - I suspect the string was expecting something to get embedded in there.
since that is using CrossHostArch which defaults to x64 if TargetArchitecture == arm64 -- I think this is very specialized for cross build inside an x64 host.
As a temporary workaround you could just pass that property globally as empty: /p:CrossHostArch=.
@trylek@jkoritzinsky maybe we should check the host architecture instead to see if it differs from TargetArchitecture or is there a way to know if it is a cross build?
Activity
safern commentedon Jul 8, 2020
cc: @jkoritzinsky @jashook @trylek
carlossanlop commentedon Jul 9, 2020
I hit this too:
I think the problem is in the path creation - notice the second string has a double
//- I suspect the string was expecting something to get embedded in there.safern commentedon Jul 9, 2020
The problem is here:
runtime/src/coreclr/src/tools/aot/crossgen2/crossgen2.csproj
Line 83 in 3527fde
since that is using
CrossHostArchwhich defaults tox64ifTargetArchitecture == arm64-- I think this is very specialized for cross build inside an x64 host.runtime/src/coreclr/src/tools/aot/crossgen2/crossgen2.csproj
Line 45 in 3527fde
As a temporary workaround you could just pass that property globally as empty:
/p:CrossHostArch=.@trylek @jkoritzinsky maybe we should check the host architecture instead to see if it differs from
TargetArchitectureor is there a way to know if it is a cross build?jkoritzinsky commentedon Jul 9, 2020
Yes we should. We have checks in the installer build for not using the "cross host arch" when Host = Target Arch.
safern commentedon Jul 9, 2020
Yeah,
$(BuildArchitecture)is the property.runtime/Directory.Build.props
Line 103 in 74b1737
And we have some properties for this apparently:
runtime/eng/liveBuilds.targets
Line 77 in 74b1737
We should probably just use that property instead to construct the file path.
AndyAyersMS commentedon Feb 20, 2022
Hitting this now too, building natively for arm64 on a Macbook.
dotnet-policy-service commentedon Apr 13, 2026
Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.