Bug 265273 - emulators/wine-devel: not work 0024:fixme:ntdll:create_logical_proc_info stub
Summary: emulators/wine-devel: not work 0024:fixme:ntdll:create_logical_proc_info stub
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-17 19:39 UTC by ykla
Modified: 2023-09-09 13:40 UTC (History)
12 users (show)

See Also:
bugzilla: maintainer-feedback? (damjan.jov)


Attachments
log (19.92 KB, text/plain)
2022-07-17 19:47 UTC, ykla
no flags Details
Revert upstream Wine commit that break i386 build (2.90 KB, patch)
2023-09-03 02:04 UTC, Sean Farley
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ykla 2022-07-17 19:39:01 UTC
FreeBSD 13.1 release amd64

KDE plasma 5


emulators/wine-devel 7.12 not work at all.
--------------------------------------------------------------
ykla@ykla:~ % wine wincfg

0024:fixme:ntdll:create_logical_proc_info stub

0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

002c:fixme:ntdll:create_logical_proc_info stub

002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION

002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION

0034:fixme:ntdll:create_logical_proc_info stub

0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

003c:fixme:ntdll:create_logical_proc_info stub

003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

0044:fixme:ntdll:create_logical_proc_info stub

0044:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

0050:fixme:ntdll:create_logical_proc_info stub

0050:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

0070:fixme:ntdll:create_logical_proc_info stub

0070:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

0090:fixme:ntdll:create_logical_proc_info stub

0090:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

00a8:fixme:ntdll:create_logical_proc_info stub

00a8:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

00c0:fixme:ntdll:create_logical_proc_info stub

00c0:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

Application could not be started, or no application associated with the specified file.

ShellExecuteEx failed: File not found.



ykla@ykla:~ % 00d4:fixme:ntdll:create_logical_proc_info stub

00d4:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.

ykla@ykla:~ % wine --version
wine-7.12
ykla@ykla:~ % 

ykla@ykla:~ %

---------------------------------------------------------------

and I  tested wine6 is OK.
Comment 1 ykla 2022-07-17 19:47:31 UTC
Created attachment 235311 [details]
log
Comment 2 ykla 2022-07-17 20:26:08 UTC
In VMware Workstation Pro 16.2.3, and it seems ok in virtualbox with the same error.
Comment 3 ykla 2022-07-18 17:38:52 UTC
OK. Same issue in real computer.
Comment 4 Dmitry Lukhtionov 2022-08-23 09:34:02 UTC
Same error

% winecfg 
0180:fixme:ntdll:create_logical_proc_info stub
0180:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
06b4:fixme:ntdll:create_logical_proc_info stub
06b4:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0170:fixme:ntdll:create_logical_proc_info stub
0170:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
% pkg info | grep wine
wine-devel-7.14,1              Microsoft Windows compatibility environment
winetricks-20220411            Easy way to work around problems in Wine
% wine --version
wine-7.14
%
Comment 5 Damjan Jovanovic 2022-08-23 14:38:43 UTC
The problem in the original post is "wine wincfg", it should be "wine winecfg".

Also try "wine64 winecfg".
Comment 6 ykla 2022-08-24 03:40:38 UTC
(In reply to Damjan Jovanovic from comment #5)

I tried winecfg.
Comment 7 Damjan Jovanovic 2022-08-24 14:38:17 UTC
Try:
sysctl kern.elf64.aslr.stack=0
Comment 8 alt2600 2022-08-27 06:31:30 UTC
(In reply to Damjan Jovanovic from comment #7)

Doesn't help. Abort trap on all 32 bit windows apps. 64 bit win apps seem to continue to function with ASLR enabled. Didn't notice this was a thing until I was trying to play some 32 bit stuff and googled my error finding this PR.

system amd64 13.1p1
Comment 9 Dmitry Lukhtionov 2022-08-31 08:21:14 UTC
Same, but also trow exception

mitya@m18:~/Desktop % wine winbox.exe 
0024:fixme:ntdll:create_logical_proc_info stub
0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:ntdll:create_logical_proc_info stub
002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:err:winediag:getaddrinfo Failed to resolve your host name IP
0034:fixme:ntdll:create_logical_proc_info stub
0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
003c:fixme:ntdll:create_logical_proc_info stub
003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0048:fixme:ntdll:create_logical_proc_info stub
0048:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0050:fixme:ntdll:create_logical_proc_info stub
0050:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0068:fixme:ntdll:create_logical_proc_info stub
0068:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0088:fixme:ntdll:create_logical_proc_info stub
0088:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0090:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114
00a8:fixme:ntdll:create_logical_proc_info stub
00a8:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00b8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00b8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00b8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00b8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00c8:fixme:ntdll:create_logical_proc_info stub
00c8:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00f0:fixme:ntdll:create_logical_proc_info stub
00f0:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0034:err:ole:apartment_createwindowifneeded CreateWindow failed with error 1411
creating Window Class routeros_null
0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0024:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
ERROR: createWindow failed error=18

ACCESS VIOLATION EXCEPTION at address: _ 42dc4f

eip=_ 42dc4f eflags=__ 10246
edi=_ 13affc esi=_____ 21 ebp=_ 7bea98 esp=_ 7bea94
eax=_______0 ebx= 23a14c8 ecx= 23a14c8 edx=_______0

winbox version: 3.37

backtrace:
7b0147cb
7bc2986f
7bc8a441
7bc6ff89
7bc6ff5b
7bc70a15
7bc706e6
7bc6fded
_ 42ea47
_ 4303cd
_ 4a715b
_ 4b2249
_ 52041d
_ 401386
7b6327e0
7bc79497
7bc79c68


stack:
 23a14c8 _ 7beab8 _ 42ea47 _______0

linked to KERNEL32!
wineserver: file_set_error() can't map error: Cannot allocate memory
createToolhelpSnapshot failed 31

code:
8b 40 20 85 c0 74 1a 8b 18 8b 48 04 29 d9 c1 f9
Comment 10 Amar Takhar 2022-09-18 03:59:13 UTC
I'm getting this issue with Wine 7.16.  This is coming from 7.08 which was working just fine.
Comment 11 Didier Garcin 2022-10-10 21:16:27 UTC
+1 with wine-devel 7.17
Comment 12 Amar Takhar 2022-11-03 19:05:47 UTC
On my 13.1 machine 7.17 works fine I've been using it for a while.  kern.*.aslr.enable are both 1.
Comment 13 Werner Lehmann 2022-11-12 08:47:59 UTC
I can confirm this. I get the same error message when trying to start Kmquake2, which is a 32-bit application. I am going to try with wine (not devel) now.
Comment 14 Amar Takhar 2022-11-23 19:08:24 UTC
I think this ticket can be closed I've been using 7.19 just fine it fixes the issues brought up in this ticket.
Comment 15 ykla 2022-11-24 00:09:14 UTC
(In reply to Amar Takhar from comment #14)

But according to https://www.freshports.org/emulators/wine-devel  
Here, the wine-devel pkg package is still 7.18,1 as of today. The i386 for wine-devel cannot be compiled via ports without 7.19. Or are you using some other method to compile the port? The above error occurs mainly when running a 32-bit windows exe.
Comment 16 ykla 2022-11-24 00:11:39 UTC
(In reply to Amar Takhar from comment #14)

But according to https://www.freshports.org/emulators/wine-devel  
Here, the wine-devel pkg package is still 7.18,1 as of today. The i386 for wine-devel cannot be compiled via ports without 7.19. Or are you using some other method to compile the port? The above error occurs mainly when running a 32-bit windows exe.
Comment 17 ykla 2022-12-01 08:45:36 UTC
I tested wine7.21 today and the problem is still there.
You can try fetch https://dldir1.qq.com/qqfile/qq/PCQQ9.6.9/QQ9.6.9.28878.exe for test.
At first it was possible to use winecfg to open the configuration screen, but after closing it, it would no longer open.The errors are still the same as in the past.
Comment 18 Dmitry Lukhtionov 2022-12-29 10:13:02 UTC
mitya@m18:~ % wine --version
wine-7.22

mitya@m18:~ % winecfg
0024:fixme:ntdll:create_logical_proc_info stub
0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:ntdll:create_logical_proc_info stub
002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to start L"C:\\windows\\system32\\wineboot.exe"
0024:err:environ:run_wineboot failed to start wineboot 40000003
0034:fixme:ntdll:create_logical_proc_info stub
0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to start L"C:\\windows\\system32\\conhost.exe"
003c:fixme:ntdll:create_logical_proc_info stub
003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0044:fixme:ntdll:create_logical_proc_info stub
0044:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to start L"C:\\windows\\system32\\explorer.exe"
003c:err:win:get_desktop_window failed to start explorer 40000003
004c:fixme:ntdll:create_logical_proc_info stub
004c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to start L"C:\\windows\\system32\\winecfg.exe"
003c:err:winecfg:wWinMain failed to restart 64-bit L"C:\\windows\\system32\\winecfg.exe", err 700
003c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
003c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
Comment 19 Bartek Jasicki 2023-01-02 07:32:37 UTC
7.21 and 7.22 both work for me, no issues. I have one question: do you use Nvidia card? If yes, then the issue is with package nvidia-driver not wine. Wine configuration is a 32-bit application and will not work with the current nvidia-driver. You can "downgrade" your nvidia-driver to use nvidia-driver-470 instead to "fix" the issue.

Also, I can download and install QQ installer from comment #17, works for me on wine 7.21.
Comment 20 ykla 2023-01-02 09:32:11 UTC
(In reply to Bartek Jasicki from comment #19)

NO NVIDIA, just i915kms or vmware
Comment 21 ykla 2023-01-02 09:34:33 UTC
(In reply to Bartek Jasicki from comment #19)

You can download and install QQ, and then please try to reopen it after you installs it. 

C:\Program Files (x86)\Tencent\QQ\Bin
Comment 22 Bartek Jasicki 2023-01-02 10:39:02 UTC
(In reply to ykla from comment #21)

I can confirm that QQ doesn't start after installation. Maybe it is an issue with QQ itself? I found some solutions for QQ on Wine on the net, but all of them in Chinese. Unfortunately, I'm not well-educated to know it. :) Automatic translation suggests something about disabling security checks in QQ.

But wine winecfg or winecfg commands work properly. Same as a few other 32-bit applications.
Comment 23 Alastair Hogge 2023-01-02 11:01:51 UTC
FreeBSD 14.0-CURRENT #0 main-n259812-777e472cd86b:
$ wine --version
wine-7.22 (Staging)

$ wine winecfg
0024:fixme:ntdll:create_logical_proc_info stub
0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:ntdll:create_logical_proc_info stub
002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to open L"C:\\windows\\system32\\wineboot.exe": c0000135
0024:err:environ:run_wineboot failed to start wineboot c0000135
0024:fixme:winediag:LdrInitializeThunk wine-staging 7.22 is a testing version containing experimental patches.
0024:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
0034:fixme:ntdll:create_logical_proc_info stub
0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to open L"C:\\windows\\system32\\conhost.exe": c0000135
003c:fixme:ntdll:create_logical_proc_info stub
003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to open L"C:\\windows\\system32\\explorer.exe": c0000135
0024:err:win:get_desktop_window failed to start explorer c0000135
0044:fixme:ntdll:create_logical_proc_info stub
0044:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
004c:fixme:ntdll:create_logical_proc_info stub
004c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to open L"C:\\windows\\system32\\winecfg.exe": c0000135
0044:err:winecfg:wWinMain failed to restart 64-bit L"C:\\windows\\system32\\winecfg.exe", err 126
0044:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0044:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."

wine-7.0.1,1 works.
Comment 24 ykla 2023-01-02 11:37:27 UTC
(In reply to Bartek Jasicki from comment #22)

Not issue with QQ itself,in many Linux likes fedora it works well by wine now. And maybe you can test others windows 32 bit applications.
Comment 25 Bartek Jasicki 2023-01-03 08:53:59 UTC
(In reply to ykla from comment #24)

If something works under Wine on Linux, it doesn't mean it will work under Wine on FreeBSD too. :)

I just checked QQ again and for me, it reports issues with missing some libraries at my side (win32k or something like that). About testing other 32-bit apps: I have a couple of old Windows games, 32-bit. All of them work. I'm not using VM.

Another thing, the reports at comments #9, #18 and #23 are different:

0044:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.

This mean that for some reasons, Wine can't find a suitable graphic driver, and it can't initialize graphic subsystem. I'm curious what drivers and graphic cards are used there. ;)
Comment 26 Werner Lehmann 2023-01-03 10:42:50 UTC
(In reply to Bartek Jasicki from comment #19)

Seeing this I have a question: I realized that since upgrading from nvidia-driver-470 to nvidia-driver-510 I get a segmentation fault when trying to start linux-steam-utils. As something is always updated when starting steam from linux-steam-utils, I did not know if the failure was due to the application or the nvidia driver.
So do you think this could be related?
Comment 27 Bartek Jasicki 2023-01-04 07:00:17 UTC
(In reply to Werner Lehmann from comment #26)

I don't know. Generally, running anything 32-bit doesn't work with the current nvidia-driver package because, for some reasons, applications can't find 32-bit Nvidia libraries and trying to use 64-bit ones. You can check if it is related to the driver by downgrading it to 470. It shouldn't be hard because nvidia-driver 470 series is now a separated package.
Comment 28 Werner Lehmann 2023-01-05 18:23:39 UTC
(In reply to Bartek Jasicki from comment #27)

Thanks a lot for the suggestion and explanation. I have downgraded to nvidia-driver-470 and wine works now for me! I use wine-6.0.4_1,1 from the quarterly packages. I have tested Kmquake2, Hitman 2, Wolfenstein 2009 (all 32-bit) and also Wrath - Aeon of Ruin, which I could never play with i386-wine before because it is 64-bit. Downgrading to 470 did not fix the problem with linux-steam-utils, though.
Comment 29 Amar Takhar 2023-01-15 18:56:42 UTC
This is broken for me again.  I updated from 7.21 and this error has come back after being fixed for months.  Not sure what's going on going to try and downgrade by rebuilding from ports due to updated dependencies.
Comment 30 Amar Takhar 2023-01-15 19:17:13 UTC
Downgrading to 7.21 fixed the problem for me though it seems for some 7.21 doesn't work, either.  I haven't had much success figuring out what causes this issue to trigger.
Comment 31 Bartek Jasicki 2023-01-15 20:35:30 UTC
(In reply to Amar Takhar from comment #30)

As far I know, 7.22 is completely broken on FreeBSD. It can't find 32-bit libraries. You can build it, but:

1) running winecfg doesn't work, unless you do it by executing: wine64 winecfg.
2) it doesn't copy all libraries to newly created wine prefix (syswow64 directory is empty). 
3) the 2) and the problems with finding kernel32.dll cause that 32-bit programs will crash due to lack of libraries.

Someone could try to work around the issues, by:

1) Manually filling directory syswow64 in wine prefix directory.
2) Manipulating with LD_LIBRARY_PATH or LD_32_LIBRARY_PATH.
Comment 32 Amar Takhar 2023-01-15 22:43:26 UTC
(In reply to Bartek Jasicki from comment #31)

So this is a different issue from what this ticket is about.  I see what you are pointing out now.  Funnily enough I get all the same error messages related to create_logical_proc_info which is why I thought it was the same problem but it's clearly not.  I was more focused on getting it working again as I really needed a functional setup.

Thanks for pointing out what's wrong I'll see if I can dig into it later should another ticket be opened?
Comment 33 Bartek Jasicki 2023-01-16 06:59:41 UTC
(In reply to Amar Takhar from comment #32)

True, these error messages can lead to different issues. :)

About another issue: I think yes, eventually if you will have a solution it may not solve the original issue. Unless you have the same problem with wine 7.12?
Comment 34 ykla 2023-06-16 08:41:06 UTC
in wine-devel-7.22_1,1:

---------------------------------------
ykla@ykla:~ $ winecfg
0024:fixme:ntdll:create_logical_proc_info stub
0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:ntdll:create_logical_proc_info stub
002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: failed to open L"C:\\windows\\system32\\wineboot.exe": c0000135
0024:err:environ:run_wineboot failed to start wineboot c0000135
wine: could not load kernel32.dll, status c0000135
ykla@ykla:~ $
Comment 35 Gerald Pfeifer freebsd_committer freebsd_triage 2023-08-27 20:53:07 UTC
Can you please advise to what extent this still applies after the
update of wine-devel to Wine 8.11?
Comment 36 ykla 2023-08-27 22:37:07 UTC
(In reply to Gerald Pfeifer from comment #35)


It seems that the 32-bit version of wine-devel is not available in the latest repository.
----------------------------------------------------------------
$ /usr/local/share/wine/pkg32.sh install wine-devel mesa-dri
pkg -o ABI=FreeBSD:13:i386 -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir /home/ukla/.i386-wine-pkg install wine-devel mesa-dri
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01    
Fetching packagesite.pkg: 100%    6 MiB   3.4MB/s    00:02    
Processing entries: 100%
FreeBSD repository update completed. 33128 packages processed.
All repositories are up to date.
pkg: No packages available to install matching 'wine-devel' have been found in the repositoris

---------------------

---------------------------------
root@ykla:~ # pkg info wine-devel
wine-devel-8.11_1,1
Name           : wine-devel
Version        : 8.11_1,1
Installed on   : Mon Aug 28 06:30:32 2023 CST
Origin         : emulators/wine-devel
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : emulators
Licenses       : LGPL3 or LGPL21
Maintainer     : damjan.jov@gmail.com
WWW            : https://www.winehq.org
Comment        : Microsoft Windows compatibility environment
Options        :
	ALSA           : off
	CUPS           : off
	DOCS           : on
	DOSBOX         : off
	GECKO          : off
	GNUTLS         : on
	MONO           : off
	OSS            : on
	V4L            : off
	WINEMAKER      : off
	X11            : on
Shared Libs required:
	libgcc_s.so.1
	libXext.so.6
	libX11.so.6
Annotations    :
	FreeBSD_version: 1302001
	cpe            : cpe:2.3:a:winehq:wine:8.11:::::freebsd13:x64:1
	repo_type      : binary
	repository     : FreeBSD
Flat size      : 292MiB
Description    :
Wine is a Microsoft Windows compatibility layer (or program loader)
capable of running Windows applications on i386 and compatible CPUs.
Windows programs running in Wine act as native programs would, running
without the performance or memory usage penalties of an emulator, with
a similar look and feel to other applications on your desktop.

Many applications already work, more or less, including versions of
Microsoft Office and many games.

If you receive a message of "Did you reconfigure your kernel with
"options USER_LDT"?" add the line
    machdep.max_ldt_segment="2048"
to /boot/loader.conf and reboot.

Gerald Pfeifer <gerald@FreeBSD.org>
root@ykla:~ # 
------------------------------------------------
Comment 37 ykla 2023-08-27 22:38:40 UTC
(In reply to Gerald Pfeifer from comment #35)
 see also https://www.freshports.org/emulators/wine-devel
Comment 38 Gerald Pfeifer freebsd_committer freebsd_triage 2023-08-27 22:58:43 UTC
Yes, my bad: 32-bit fails to build since the early 8.x days (shortly
before the 8.0 release). One consequence is that WoW64 does not work.

If you are interested in helping with that, you could try build on i386
and file a report against clang/the compiler which I believe is where
that build failed last time someone mentioned the issue.
Comment 39 ykla 2023-08-28 10:23:18 UTC
(In reply to Gerald Pfeifer from comment #38)

-------------------------------------------------

root@ykla:/usr/ports/emulators/wine-devel # make BATCH=yes install clean | tee 1.txt
===>  wine-devel-8.11_1,1 is marked as broken on i386: fails to build:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271201#c6.
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/wine-devel
--------------------------------
Comment 40 Gerald Pfeifer freebsd_committer freebsd_triage 2023-09-02 22:30:48 UTC
Yes, you need to remove that BROKEN= line from the Makefile or try the
build with something like

  make BATCH=yes TRYBROKEN=1 install clean
Comment 41 Sean Farley freebsd_committer freebsd_triage 2023-09-03 02:04:16 UTC
Created attachment 244603 [details]
Revert upstream Wine commit that break i386 build

From https://bugs.winehq.org/show_bug.cgi?id=55408#c6, I found that building i386 can also break on Linux.  Here is a patch to revert an upstream Wine commit that lets the i386 port build successfully in poudriere.

Apparently, it is a bug in LLVM:
https://bugs.winehq.org/show_bug.cgi?id=54889
https://github.com/llvm/llvm-project/issues/62339
Comment 42 Gerald Pfeifer freebsd_committer freebsd_triage 2023-09-09 13:40:11 UTC
I believe this report is mixing several different issues and Wine has
progressed quite a bit in those last 12+ months.

wine-devel is now at version 8.11 up from 7.12 and I proposed an update
to 8.14 in bug #273538.


This does not mean any of the observations and tests here is incorrect
or bad, mind.


Also note that upstream Wine has developed its own approach to WoW64 that
does not require 32-bit libraries. Pursuing that in the context of the
wine-devel port look preferable (and more sustainable).

This is my strong recommendation.


That said, if you want to go ahead and push your patch from comment #41
to emulators/wine - the stable version - that's probably good and
Approved by: gerald (maintainer).