Skip to content

Cannot create layout on unknown arch Loongarch #78854

@kant2002

Description

@kant2002

I manage to complete build.sh -s clr+libs for new architecture, but running ./src/tests/build.sh generatelayoutonly produce following error

__DistroRid: linux-loongarch64
Building Tests...
__TargetOS: Linux
__TargetArch: loongarch64
__BuildType: Debug
__TestIntermediatesDir: /home/loongson/runtime/artifacts/tests/coreclr/obj/Linux.loongarch64.Debug
__NativeTestIntermediatesDir: /home/loongson/runtime/artifacts/tests/coreclr/obj/Linux.loongarch64.Debug/Native
__ManagedTestIntermediatesDir: /home/loongson/runtime/artifacts/tests/coreclr/obj/Linux.loongarch64.Debug/Managed
Creating TestBinDir: /home/loongson/runtime/artifacts/tests/coreclr/Linux.loongarch64.Debug
Creating LogsDir: /home/loongson/runtime/artifacts/log
Creating MsbuildDebugLogsDir: /home/loongson/runtime/artifacts/log/MsbuildDebugLogs
Building tests via "/home/loongson/runtime/eng/common/msbuild.sh"  --warnAsError false /home/loongson/runtime/src/tests/build.proj /t:TestBuild /p:TargetArchitecture=loongarch64 /p:Configuration=Debug /p:TargetOS=Linux /nodeReuse:false    /maxcpucount "/flp:Verbosity=normal;LogFile=/home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.log" "/flp1:WarningsOnly;LogFile=/home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.wrn" "/flp2:ErrorsOnly;LogFile=/home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.err" "/bl:/home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.binlog" /p:NUMBER_OF_PROCESSORS=4
/home/loongson/runtime/.dotnet/sdk/7.0.100/MSBuild.dll /nologo -maxcpucount /m /maxcpucount -verbosity:m /v:minimal /bl:/home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.binlog /clp:Summary /flp1:WarningsOnly;LogFile=/home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.wrn /flp2:ErrorsOnly;LogFile=/home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.err /flp:Verbosity=normal;LogFile=/home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.log /nr:true /nodeReuse:false /p:TreatWarningsAsErrors=false /p:ContinuousIntegrationBuild=false /p:TargetArchitecture=loongarch64 /p:Configuration=Debug /p:TargetOS=Linux /p:NUMBER_OF_PROCESSORS=4 /t:TestBuild /home/loongson/runtime/src/tests/build.proj
  [00:10:29.96] Restoring all packages...
    Determining projects to restore...
/home/loongson/runtime/src/tests/Common/test_dependencies_fs/test_dependencies.fsproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.linux-loongarch64. No packages exist with this id in source(s): /home/loongson/runtime/.dotnet/sdk/7.0.100/FSharp/library-packs, dotnet-eng, dotnet-libraries, dotnet-public, dotnet-tools, dotnet7, dotnet7-transport, dotnet8, dotnet8-transport, richnav [/home/loongson/runtime/src/tests/build.proj]
    Failed to restore /home/loongson/runtime/src/tests/Common/test_dependencies_fs/test_dependencies.fsproj (in 9.94 sec).
/home/loongson/runtime/src/tests/build.proj(438,5): error MSB3073: 命令“"/home/loongson/runtime/.dotnet/dotnet" restore -r linux-loongarch64 Common/test_dependencies_fs/test_dependencies.fsproj  /p:SetTFMForRestore=true /p:TargetOS=Linux /p:TargetArchitecture=loongarch64 /p:Configuration=Debug /p:CrossBuild=”已退出,代码为 1。

生成失败。

/home/loongson/runtime/src/tests/Common/test_dependencies_fs/test_dependencies.fsproj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.linux-loongarch64. No packages exist with this id in source(s): /home/loongson/runtime/.dotnet/sdk/7.0.100/FSharp/library-packs, dotnet-eng, dotnet-libraries, dotnet-public, dotnet-tools, dotnet7, dotnet7-transport, dotnet8, dotnet8-transport, richnav [/home/loongson/runtime/src/tests/build.proj]
/home/loongson/runtime/src/tests/build.proj(438,5): error MSB3073: 命令“"/home/loongson/runtime/.dotnet/dotnet" restore -r linux-loongarch64 Common/test_dependencies_fs/test_dependencies.fsproj  /p:SetTFMForRestore=true /p:TargetOS=Linux /p:TargetArchitecture=loongarch64 /p:Configuration=Debug /p:CrossBuild=”已退出,代码为 1。
    0 个警告
    2 个错误

已用时间 00:00:25.87
Build failed with exit code 1. Check errors above.
Failed to build tests. See the build logs:
    /home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.log
    /home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.wrn
    /home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.err
    /home/loongson/runtime/artifacts/log/TestBuild.Linux.loongarch64.Debug.binlog

is there a way how I can use Microsoft.NETCore.App.Runtime.linux-loongarch64 from local build.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions