PowerShell tries to crosscompile to aarch64
/ armv7
when building on those platforms
#17891
Closed
5 tasks done
Prerequisites
Steps to reproduce
Currently building a package for powershell on Alpine Linux. When building for
aarch64
,armv7
platform, build fails due to trying to crosscompile to those platforms. Cross-compilations should not occur on a platform that is building for itself, yet the build process tries to force that.To reproduce,
git clone https://gitlab.alpinelinux.org/ayakael/aports -b testing/powershell-arm
andabuild -r
in any Alpine environment eqal or greater to version 3.16 when inaports/testing/powershell
directory.Aport for build process is accessible here
Expected behavior
Build should not use CrossGen2 to build `powershell`
Actual behavior
Build tries to use CrossGen2 to build on the same platform.
Error details
/usr/lib/dotnet/sdk/6.0.108/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(463,5): error MSB6003: The specified task executable "/home/buildozer/.nuget/packages/microsoft.netcore.app.crossgen2.linux-musl-arm64/6.0.8/tools/crossgen2" could not be run. System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/home/buildozer/.nuget/packages/microsoft.netcore.app.crossgen2.linux-musl-arm64/6.0.8/tools/crossgen2' with working directory '/builds/ayakael/aports/testing/powershell/src/PowerShell-7.2.6/src/powershell-unix'. No such file or directory [/builds/ayakael/aports/testing/powershell/src/PowerShell-7.2.6/src/powershell-unix/powershell-unix.csproj]
Full log accessible here
Visuals
No response
The text was updated successfully, but these errors were encountered: