MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

hohum
MAME Fan
Reged: 11/06/15
Posts: 14
Send PM


Can't compile x86 but can compile x64 under windows 7
#380843 - 01/24/19 10:10 PM Attachment: mame32_compile_error.txt 103 KB (4 downloads)


I'm having an issue generating the x86 version of mame under windows 7 64bit. I followed the instructions located at https://www.mamedev.org/tools/ and installed the dual build environment and updated that.

I can compile the x64 version but not the x86 one.

Any help would be appreciated.

Edited by hohum (01/24/19 10:12 PM)



TafoidAdministrator
I keep on testing.. testing.. testing... into the future!
Reged: 04/19/06
Posts: 3135
Loc: USA
Send PM


Re: Can't compile x86 but can compile x64 under windows 7 new [Re: hohum]
#380845 - 01/24/19 10:28 PM


> I'm having an issue generating the x86 version of mame under windows 7 64bit. I
> followed the instructions located at https://www.mamedev.org/tools/ and installed the
> dual build environment and updated that.
>
> I can compile the x64 version but not the x86 one.
>
> Any help would be appreciated.

The most important thing is to make sure your MAKE string contains "PTR64=0" and that you have an environment variable created "CONFIG_ARCHITECTURE=x86". Presumably the preset batch files are supposed to do this for you to allow 32-bit compile on 64-bit systems. The prompt you see should show [MINGW32] for 32-bit and [MINGW64] for 64-bit.



hohum
MAME Fan
Reged: 11/06/15
Posts: 14
Send PM


Re: Can't compile x86 but can compile x64 under windows 7 new [Re: Tafoid]
#380846 - 01/24/19 10:33 PM


Those variables are set properly as shown in the attached log file.



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3204
Loc: A long way from you
Send PM


Re: Can't compile x86 but can compile x64 under windows 7 new [Re: hohum]
#380848 - 01/24/19 11:08 PM





hohum
MAME Fan
Reged: 11/06/15
Posts: 14
Send PM


Re: Can't compile x86 but can compile x64 under windows 7 new [Re: Robbbert]
#380849 - 01/24/19 11:13 PM


If that's the case then https://www.mamedev.org/tools/ should be updated. I simply want an easy way to build the 32bit version of mame without errors and I currently cannot.



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3204
Loc: A long way from you
Send PM


Re: Can't compile x86 but can compile x64 under windows 7 new [Re: hohum]
#380851 - 01/25/19 12:26 AM





Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4466
Loc: Melbourne, Australia
Send PM


Re: Can't compile x86 but can compile x64 under windows 7 new [Re: Robbbert]
#380852 - 01/25/19 01:58 AM


> > Those variables are set properly as shown in the attached log file.
>
> >../../../../../3rdparty/sqlite3/sqlite3.c5: error: 'memcpy': specified si
> ze between 2147483648 and 4294967295 exceeds maximum object size 2147483647 [-We
> rror=stringop-overflow=]
> memcpy(p->aAlloc, &p->aBuffer[iBuf], nAvail);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> That version (7.4.0) has a bug with memcpy overflowing. You can either use an old
> version that works (I use 5.3.0), or try for the latest (I think it's 8.2.1 or
> thereabouts).

You basically need to set NOWERROR=1 to build for 32-bit MinGW due to compiler bugs. See https://docs.mamedev.org/initialsetup/compilingmame.html#issues-with-specific-compiler-versions



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4466
Loc: Melbourne, Australia
Send PM


Re: Can't compile x86 but can compile x64 under windows 7 new [Re: hohum]
#380853 - 01/25/19 01:59 AM


> If that's the case then https://www.mamedev.org/tools/ should be updated. I simply
> want an easy way to build the 32bit version of mame without errors and I currently
> cannot.

Add NOWERROR=1 to the build options. MinGW i386 is only marginally supported due to the big performance gains you get from x86_64.



hohum
MAME Fan
Reged: 11/06/15
Posts: 14
Send PM


Re: Can't compile x86 but can compile x64 under windows 7 new [Re: Vas Crabb]
#380854 - 01/25/19 04:40 AM


NOWERROR=1 build option fixed the error. Thank you Vas Crabb.


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
2 registered and 562 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 576