Command line Win32 application can't access file system

Questions about Wine on macOS.
Locked
avalstsetrot
Newbie
Newbie
Posts: 1
Joined: Fri Sep 01, 2023 3:20 pm

Command line Win32 application can't access file system

Post by avalstsetrot »

Hi, I am on Mac OS Ventura 13.5.1 (Intel) and I have brew-installed wine to run a command-line Win32 application called nqc (Not Quite C https://bricxcc.sourceforge.net/nqc/)

I have the following error, which indicates that nqc is unable to access the file firm0332.lgo:

% wine64 nqc.exe -firmware firm0332.lgo
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
0510:err:environ:init_peb starting L"C:\\Program Files\\nqc-win-3-1-r6\\nqc.exe" in experimental wow64 mode
0510:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
Error: could not open file 'firm0332.lgo'

The file firm0332.lgo is in the same directory as nqc.exe. I tried to put it elsewhere and also used absolute and relative links, does not help. E.g. if I put the file into $HOME/.wine/drive_c

% wine64 nqc.exe -firmware C:firm0332.lgo
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
0510:err:environ:init_peb starting L"C:\\Program Files\\nqc-win-3-1-r6\\nqc.exe" in experimental wow64 mode
0510:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
Error: could not open file 'C:firm0332.lgo'

Does anyone have any idea what may be going on? Thanks a lot in advance!
madewokherd
Level 4
Level 4
Posts: 144
Joined: Mon Jun 02, 2008 5:03 pm

Re: Command line Win32 application can't access file system

Post by madewokherd »

0510:err:environ:init_peb starting L"C:\\Program Files\\nqc-win-3-1-r6\\nqc.exe" in experimental wow64 mode

That line suggests you don't have a 32-bit install of Wine to run 32-bit applications, so it's using the 64-bit one (which should work in theory but is not well-tested).

I don't know if that has anything to do with the error though. I don't see anything else there that might be related.
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: Command line Win32 application can't access file system

Post by Gcenx »

madewokherd wrote: Wed Sep 06, 2023 2:17 pm 0510:err:environ:init_peb starting L"C:\\Program Files\\nqc-win-3-1-r6\\nqc.exe" in experimental wow64 mode

That line suggests you don't have a 32-bit install of Wine to run 32-bit applications, so it's using the 64-bit one (which should work in theory but is not well-tested).
macOS Catalina and later are 64Bit only and upstream wine automatically defaults to wow64 mode.
madewokherd wrote: Wed Sep 06, 2023 2:17 pm I don't know if that has anything to do with the error though. I don't see anything else there that might be related.
wow64 mode does have some weirdness but most of the issues I’ve seen were only happing on Apple Silicon running via Rosetta2.
Locked