Hello, i have retried to compile wine CVS on amd64 (gcc 3.4 with -m32, etc + kernel 2.6.4-rc2), where i was thinking the 0xc0000000 problem was solved. but i get:
wine: failed to initialize: /opt/wine/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory
attach to this mail the output of "strace32 wine"
one of the last lines is (i have 512Mb of ram)
old_mmap(NULL, 482376, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = -1 ENOMEM (Cannot allocate memory)
It looks like my kernel absolutly wants to allocate memory > 0xc0000000 :-) Any idea?
Thanx Maurizio
Please CC answers to monge(at)sns(dot)it, since i'm not subscribed.
Maurizio Monge monge@sns.it writes:
old_mmap(NULL, 482376, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = -1 ENOMEM (Cannot allocate memory)
It looks like my kernel absolutly wants to allocate memory > 0xc0000000 :-) Any idea?
Does it make a difference if you bypass the preloader and run wine-kthread directly?
Alle Friday 04 June 2004 01:34, Alexandre Julliard ha scritto:
wine-kthread
# wine-kthread wine: failed to initialize: /opt/wine/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory
:-(
Maurizio CC to monge(at)sns(dot)it
Maurizio Monge monge@sns.it writes:
# wine-kthread wine: failed to initialize: /opt/wine/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory
Sounds like the kernel will need to be fixed. If there's no way to map dlls below 0x80000000 many things won't work right.
On Sat, 5 Jun 2004 04:14 am, Alexandre Julliard wrote:
Maurizio Monge monge@sns.it writes:
# wine-kthread wine: failed to initialize: /opt/wine/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory
Sounds like the kernel will need to be fixed. If there's no way to map dlls below 0x80000000 many things won't work right.
On the plus sIde your patch does seem to work for Solaris.
(One less custom patch to maintain now :-)
Bob
On Thu, 3 Jun 2004 15:37:19 +0200, Maurizio Monge wrote:
Hello, i have retried to compile wine CVS on amd64 (gcc 3.4 with -m32, etc + kernel 2.6.4-rc2), where i was thinking the 0xc0000000 problem was solved. but i get:
Hmm, wine 20040505 works on my AMD64 system (using a biarch 2.6.6 kernel, Debian woody for the 32-bit stuff and the Debian AMD64 port in a chroot environment for the 64-bit stuff).
So I guess, either your kernel is outdated (there have been lots of improvements in the 32-bit emulation layer in recent kernels), or there is some problem with your 32-bit compiler setup or libraries.
bye, Christof