Need help to run .NET app in mac m1 OS 14.5

Questions about Wine on macOS.
Locked
iamdaniel
Newbie
Newbie
Posts: 1
Joined: Tue Jun 25, 2024 6:02 am

Need help to run .NET app in mac m1 OS 14.5

Post by iamdaniel »

I have already use winetricks to try to install dotnet46/dotnet6/dotnet7
also try the 32/64 applicaiton version.
I'm trying run LogicCircuitwww.logiccircuit.org, which depend on .net6

Code: Select all

~/.wine/drive_c/Program Files (x86)/LogicCircuit $ wine LogicCircuit.exe
011c:err:environ:init_peb starting L"C:\\Program Files (x86)\\LogicCircuit\\LogicCircuit.exe" in experimental wow64 mode
011c:err:virtual:map_file_into_view failed to set PROT_EXEC on file map, noexec filesystem?
011c:err:virtual:virtual_map_section mapping 0x1a40000 10000 0 failed
Failed to create CoreCLR, HRESULT: 0x80070005
011c:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
011c:fixme:advapi:ReportEventW (CAFE4242,0x0001,0x0000,0x000003ff,00000000,0x0001,0x00000000,001AFDE4,00000000): stub
011c:err:eventlog:ReportEventW L"Description: A .NET application failed.\n"
011c:err:eventlog:ReportEventW L"Application: LogicCircuit.exe\n"
011c:err:eventlog:ReportEventW L"Path: C:\\Program Files (x86)\\LogicCircuit\\LogicCircuit.exe\n"
011c:err:eventlog:ReportEventW L"Message: Failed to create CoreCLR, HRESULT: 0x80070005\n"
011c:err:eventlog:ReportEventW L"\n"
011c:fixme:advapi:DeregisterEventSource (CAFE4242) stub
about noexec filesystem

Code: Select all

 ~/.wine/drive_c/Program Files (x86)/LogicCircuit $ df
Filesystem     512-blocks      Used Available Capacity iused      ifree %iused  Mounted on
/dev/disk3s3s1  965595304  20040464 627736176     4%  404167 3138680880    0%   /
devfs                 694       694         0   100%    1202          0  100%   /dev
/dev/disk3s6    965595304   2097192 627736176     1%       1 3138680880    0%   /System/Volumes/VM
/dev/disk3s4    965595304  12045528 627736176     2%    1134 3138680880    0%   /System/Volumes/Preboot
/dev/disk3s2    965595304    110384 627736176     1%      52 3138680880    0%   /System/Volumes/Update
/dev/disk1s2      1024000     12328    983896     2%       1    4919480    0%   /System/Volumes/xarts
/dev/disk1s1      1024000     12616    983896     2%      34    4919480    0%   /System/Volumes/iSCPreboot
/dev/disk1s3      1024000      5440    983896     1%      53    4919480    0%   /System/Volumes/Hardware
/dev/disk3s1    965595304 301416168 627736176    33% 1343891 3138680880    0%   /System/Volumes/Data
map auto_home           0         0         0   100%       0          0     -   /System/Volumes/Data/home
/dev/disk4s1        16616     11784      4832    71%      99 4294967180    0%   /Volumes/Install Parallels Desktop
~/.wine/drive_c/Program Files (x86)/LogicCircuit $ mount | grep noexec

/dev/disk3s6 on /System/Volumes/VM (apfs, local, noexec, journaled, noatime, nobrowse)
/dev/disk1s2 on /System/Volumes/xarts (apfs, local, noexec, journaled, noatime, nobrowse)
Sometimes I got

Code: Select all

Failed to load System.Private.CoreLib.dll (error code 0x8007046C)
-2147023764, 0x8007046C, The base address or the file offset specified does not have the proper alignment.
using wine-9.0 installed by homebrew
mac m1 OS 14.5
Gcenx
Level 6
Level 6
Posts: 719
Joined: Mon Dec 25, 2017 12:11 pm

Re: Need help to run .NET app in mac m1 OS 14.5

Post by Gcenx »

Code: Select all

011c:err:virtual:map_file_into_view failed to set PROT_EXEC on file map, noexec filesystem?
That’s resolved in a newer rebuild, you need to force brew to upgrade the cask from wine-stable-9.0_2 to wine-stable-9.0_3
setimes
Newbie
Newbie
Posts: 3
Joined: Mon Dec 06, 2021 4:27 pm

Re: Need help to run .NET app in mac m1 OS 14.5

Post by setimes »

Gcenx wrote: Tue Jun 25, 2024 7:28 pm

Code: Select all

011c:err:virtual:map_file_into_view failed to set PROT_EXEC on file map, noexec filesystem?
That’s resolved in a newer rebuild, you need to force brew to upgrade the cask from wine-stable-9.0_2 to wine-stable-9.0_3
Out of curiosity, what was causing the PROT_EXEC failure in those versions? Because it seems to intermittently happen with the later versions of wine-staging (since 9.8 through 9.11) and a simple reinstall doesn't always resolve it (sometimes wine has to be rebuilt from src)
Gcenx
Level 6
Level 6
Posts: 719
Joined: Mon Dec 25, 2017 12:11 pm

Re: Need help to run .NET app in mac m1 OS 14.5

Post by Gcenx »

I’d revised

Code: Select all

macos_hacks
the error you’d seen related to PROT_EXEC was due to the removal of a hack that shouldn’t really be required but I’ve restored it now.

I’ve not rebuilt wine-9.11 packages, this will be included in wine-9.12 packages.
Locked