.NET x32 targeted app running as x64 on Ubuntu

191 Views Asked by At

So I'm trying to debug an issue my user is having with a piece of software on Ubuntu.

I have compiled a C# app targeted towards the the x86 platform, when running it on my x64 windows image the app operates as a x32 application.

enter image description here

However when running the same app though mono on Ubuntu it displays that it is x64

enter image description here

Which then causes the very nasty error of

libgcc_s.so.1 must be installed for pthread_cancel to work

1

There are 1 best solutions below

0
On

Mono that is compiled for 64-bit can only run apps in 64-bit mode. Similarly, Mono compiled for 32-bit can only run apps in 32-bit mode.

If you want to be able to run in either mode, then you need 2 versions of Mono - one compiled for 32-bit and one compiled for 64-bit.