|
|
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)
|
|
|
Tafoid |
I keep on testing.. testing.. testing... into the future!
|
|
|
Reged: 04/19/06
|
Posts: 3137
|
Loc: USA
|
|
Send PM
|
|
|
Re: Can't compile x86 but can compile x64 under windows 7
[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.
|
|
|
|
Re: Can't compile x86 but can compile x64 under windows 7
[Re: Tafoid]
#380846 - 01/24/19 10:33 PM
|
|
|
Those variables are set properly as shown in the attached log file.
|
|
|
|
Re: Can't compile x86 but can compile x64 under windows 7
[Re: hohum]
#380848 - 01/24/19 11:08 PM
|
|
|
|
|
Re: Can't compile x86 but can compile x64 under windows 7
[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.
|
|
|
|
Re: Can't compile x86 but can compile x64 under windows 7
[Re: hohum]
#380851 - 01/25/19 12:26 AM
|
|
|
|
|
Re: Can't compile x86 but can compile x64 under windows 7
[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
|
|
|
|
Re: Can't compile x86 but can compile x64 under windows 7
[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.
|
|
|
|
Re: Can't compile x86 but can compile x64 under windows 7
[Re: Vas Crabb]
#380854 - 01/25/19 04:40 AM
|
|
|
NOWERROR=1 build option fixed the error. Thank you Vas Crabb.
|
|
|