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

Linux .Net Core calling 32bit .so library file issue #8712

Closed
yb101 opened this issue Aug 8, 2017 · 5 comments
Closed

Linux .Net Core calling 32bit .so library file issue #8712

yb101 opened this issue Aug 8, 2017 · 5 comments
Labels
area-Interop-coreclr question Answer questions and provide assistance, not an issue with source code or documentation.

Comments

@yb101
Copy link

yb101 commented Aug 8, 2017

I'm using .Net Core in Linux and able to invoke the functions of my .so library file (64bit). But it will fail if I call the 32bit .so library. The error is simply saying the function can't be found. We would like to know if it's by design. Or if there is a way to call 32bit .so library from Linux .Net Core program? Please kindly advise. @yizhang82 Thanks.

Yuan Bin

@yatli
Copy link

yatli commented Aug 8, 2017

I think this is by design. You cannot call a 32bit native binary in a 64bit process with P/Invoke on Windows, either.

@borrrden
Copy link

borrrden commented Aug 8, 2017

The runtime itself is actually a native process, and being a native process it can only load libraries that match its architecture. .NET Core for Linux only supports 64-bit (and community supports ARM) as far as I know so the libraries it loads must also be 64-bit. You need a 32-bit runtime (which does not exist) if you are going to load 32-bit libraries.

@yb101
Copy link
Author

yb101 commented Aug 10, 2017

Does anyone know if there is a plan to roll out 32bit .Net Core runtime in Linux?

@borrrden
Copy link

Looks like on the roadmap It is listed as a "goal" to have a high quality x86 port.

@tijoytom-zz
Copy link
Contributor

@yb101 As mentioned this is by design since the process is 64 bit , 32 bit coreclr is a much bigger issue . I am closing this bug assuming your question is answered.

@jkotas jkotas closed this as completed Nov 9, 2017
@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-coreclr question Answer questions and provide assistance, not an issue with source code or documentation.
Projects
None yet
Development

No branches or pull requests

5 participants