tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GSoC 2019 - Porting wine to amd64

Le 2019-06-06 15:12, Kamil Rytarowski a écrit :
On 06.06.2019 05:25, Frédéric Fauberteau wrote:
Le 2019-05-06 05:58, zerous a écrit :
Hi All,

I have done some tinkering with wine-4.4 on i386 and amd64.
I have done a write-up about them on
Currently, I have been able to compile and run wine-1.9 successfully
on both i386 and amd64. On the other hand, I have been able to compile
wine-4.4 on i386 and amd64 successfully but I get errors when trying
to run wine notepad and wine shows me black windows instead of the
You can find the updated pkgsrc package on my blog.
I have corresponded with #winehackers and they have asked me to debug
with gdb and get back to them with the results.

Please let me know if anyone has come across issues such as these before.

Hi Naveen,

I started some tests with wine on x86_64. I used the
framework to disable a lot of things in order to reduce the compilation
time on my old athlon64 box. If it could help you...


We have managed (credit to the student) to run wine 32-bit on
NetBSD/i386 and wine64 on NetBSD/amd64.

Now is the tricky part of porting WoW64 (wine32 + wine64).

I just test wine32 (wine-4.0.1 stable) on 8.99.42 amd64 but:
$ winecfg
wine: failed to create the process heap

The debug output is:
$ WINEDEBUG=all winecfg
trace:virtual:NtAllocateVirtualMemory 0xffffffff 0x7ffe0000 00010000 3000 00000004 trace:virtual:VIRTUAL_DumpView View: 0x7ffe0000 - 0x7ffefffftrace:virtual:VIRTUAL_DumpView (valloc)
trace:virtual:VIRTUAL_DumpView       0x7ffe0000 - 0x7ffeffff c-rw-
trace:virtual:NtAllocateVirtualMemory 0xffffffff 0x0 00000230 101000 00000004
trace:virtual:map_view got mem in reserved area 0x3ffff000-0x40000000
trace:virtual:VIRTUAL_DumpView View: 0x3ffff000 - 0x3ffffffftrace:virtual:VIRTUAL_DumpView (valloc)
trace:virtual:VIRTUAL_DumpView       0x3ffff000 - 0x3fffffff c-rw-
trace:ntdll:RtlInitializeBitMap (0x7ffdf2f8,0x3ffff044,64)
trace:ntdll:RtlInitializeBitMap (0x7ffdf2f0,0x3ffff154,1024)
trace:ntdll:RtlInitializeBitMap (0x7ffdf2e8,0x3ffff21c,128)
trace:ntdll:RtlSetBits (0x7ffdf2f8,0,1)
trace:ntdll:RtlSetBits (0x7ffdf2e8,0,1)
trace:virtual:NtAllocateVirtualMemory 0xffffffff 0x0 00004000 101000 00000004
trace:virtual:map_view got mem in reserved area 0x3fff8000-0x3fffc000
trace:virtual:VIRTUAL_DumpView View: 0x3fff8000 - 0x3fffbffftrace:virtual:VIRTUAL_DumpView (valloc)
trace:virtual:VIRTUAL_DumpView       0x3fff8000 - 0x3fffbfff c-rw-
sock_init: shutdown() causes EOF
wineserver: starting (pid=23342)
0008: *fd* 023b -> 20
0009: *fd* 6 <- 20
0009: init_thread( unix_pid=7537, unix_tid=1, debug_level=1, teb=3fff8000, entry=3ffff000, reply_fd=6, wait_fd=8, cpu=x86 )
0009: *fd* 8 <- 21
0009: init_thread() = 0 { pid=0008, tid=0009, server_start=1d520f322a6ea2a (-0.0001870), info_size=0, version=571, all_cpus=00000001, suspend=0 } 308082.303:0008:0009:trace:virtual:NtAllocateVirtualMemory 0xffffffff 0x0 00110000 2000 00000004 308082.303:0008:0009:trace:virtual:map_view got mem in reserved area 0x110000-0x220000 308082.303:0008:0009:trace:virtual:VIRTUAL_DumpView View: 0x110000 - 0x21ffff (valloc) 308082.303:0008:0009:trace:virtual:VIRTUAL_DumpView 0x110000 - 0x21ffff --rw- 308082.303:0008:0009:trace:virtual:NtAllocateVirtualMemory 0xffffffff 0x110000 00010000 1000 00000004 308082.303:0008:0009:warn:heap:HEAP_CreateSubHeap Could not commit 00010000 bytes for sub-heap 0x110000
wine: failed to create the process heap
0009: *killed* exit_code=0
0008: *process killed*

Home | Main Index | Thread Index | Old Index