https://bugzilla.novell.com/show_bug.cgi?id=688005 https://bugzilla.novell.com/show_bug.cgi?id=688005#c0 Summary: Wine fail to run under build script when memory < 2 GB Classification: Internal Novell Products Product: openSUSE Build Service Version: 2.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: build process AssignedTo: mls@novell.com ReportedBy: hib@hiberis.nl QAContact: adrian@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16 When I try to build a OBS package that uses wine, it fails with the error: preloader: Warning: failed to reserve range 00110000-68000000 wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory make: *** [evince.msi.wixobj] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.yY8TrU (%build) As I understand it, the reason for this is that Wine needs to allocate most of the bottom 2GB and first few MB of the 3rd GB (0-0x81000000 addresses) memory. See http://bugs.winehq.org/show_bug.cgi?id=2609 Now, If you run /usr/bin/build, the script limits the virtual memory space with ulimit depending on the total amount of memory in the computer. See http://gitorious.org/opensuse/build/blobs/master/build#line427 For a computer with less then 2 GB memory, this causes a failure for wine. When you do not limit the virtual memory, wine works fine. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.