question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AnyCPU FSC.dll OOMs on LA64

See original GitHub issue

This issue is created for the discussion #13640

Repro steps

Provide the steps required to reproduce the problem:

The sdk6.0.7-LoongArch64 is built by the installer which disable the crossgen. The sdk6.0.7 is ok for building many C# projects but failed even the simple Hello_world F# app.

Is there any problem running simple Hello world F# app on LA64 for example?

qiao@Lap5K:~/fsharp/FSharpSample$ ~/work_qiao/dotnet-runtime-loongarch/.dotnet/dotnet build
用于 .NET 的 Microsoft (R) 生成引擎版本 17.0.0+c9eb9dd64
版权所有(C) Microsoft Corporation。保留所有权利。

  Determining projects to restore...
  All projects are up-to-date for restore.
FSC : error FS0193: 内部错误: Exception of type 'System.OutOfMemoryException' was thrown. [/home/qiao/fsharp/FSharpSample/src/Library/Library.fsproj]

生成失败。

FSC : error FS0193: 内部错误: Exception of type 'System.OutOfMemoryException' was thrown. [/home/qiao/fsharp/FSharpSample/src/Library/Library.fsproj]
    0 个警告
    1 个错误

已用时间 00:00:09.77
qiao@Lap5K:~/fsharp/FSharpSample/src/App$ ~/work_qiao/dotnet-runtime-loongarch/.dotnet/dotnet run Hello World
FSC : error FS0193: 内部错误: Exception of type 'System.OutOfMemoryException' was thrown. [/home/qiao/fsharp/FSharpSample/src/Library/Library.fsproj]

生成失败。请修复生成错误并重新运行。
qiao@Lap5K:~/work_qiao/dotnet-runtime-loongarch$ file .dotnet/sdk/6.0.107/FSharp/*.dll
.dotnet/sdk/6.0.107/FSharp/fsc.dll:                                  PE32 executable (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/FSharp.Build.dll:                         PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/FSharp.Compiler.Interactive.Settings.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/FSharp.Compiler.Service.dll:              PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/FSharp.Core.dll:                          PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/FSharp.DependencyManager.Nuget.dll:       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/fsi.dll:                                  PE32 executable (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/Microsoft.Build.Framework.dll:            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/Microsoft.Build.Tasks.Core.dll:           PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/Microsoft.Build.Utilities.Core.dll:       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/Microsoft.NET.StringTools.dll:            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
.dotnet/sdk/6.0.107/FSharp/System.Resources.Extensions.dll:          PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows

Is the format of the fsc.dll is ok liking PE32 executable (console) but not PE32 executable (DLL) (console) ?

Expected behavior

building is sucessful.

Provide any related information (optional):

  • Operating system is LoongArch64-Linux-debian.
  • .NET Runtime kind is .NET6.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:22 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
shushanhfcommented, Aug 18, 2022

@En3Tho @jkotas Thanks a lot. I will try to debug it on LA.

0reactions
0101commented, Feb 13, 2023

If you can still reproduce this problem with the latest SDK please create a bug with the runtime team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AnyCPU C# DLL in 64bit process loads 32bit DLL
I have a 64bit C++ process that loads an AnyCPU C# DLL. Can this AnyCPU C# DLL can load 32bit C++ DLLs, or...
Read more >
C# Target Platforms | x64 vs x86 vs AnyCPU
Assemblies compiled as AnyCPU or x64 will run as a 64-bit process. ... however any native DLL can be invoked in this way....
Read more >
32-bit COM Assembly Doesn't Work With x86/AnyCPU ...
I have a web app which has list of projects, all under single solution. Many of them refers the COM DLLs which is...
Read more >
C# (platform: Active (Any CPU) vs C++ (Win32) DLL === ...
I called C++ DLL from C# application. C++ configuration is (x86, Win32) and C# configuration is (x86, Active (Any CPU).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found