I was fiddling around with Debian 9.3 and thought, what if I installed Debian 9.3 i386 32 bit on an external usb hard drive and see if I could compile mame 194.
I was able to compile mame 194 myself after removing a few items from the compile specifically the barcrest and bfm games, otherwise it would exhaust the virtual memory with gcc v6.3.0.
This comments out the barcrest and bfm in mame.lst with c style comments: Adding 6 lines.
Code:
diff ../mame194orig/src/mame/mame.lst src/mame/mame.lst
2875a2876
> /*
8683a8685
> */
21424a21427
> /*
27842a27846
> */
32555a32560
> /*
32558a32564
> */
diff ../mame194orig/src/mame/mame.lst src/mame/mame.lst -u5
--- ../mame194orig/src/mame/mame.lst 2018-01-31 11:19:22.000000000 -0500
+++ src/mame/mame.lst 2018-03-12 04:39:47.748825373 -0400
@@ -2871,10 +2871,11 @@
bestleaw // bootleg
@source:beta.cpp
beta //
+/*
@source:bfcobra.cpp
beeline // 1991 BFM
escounts // 1990 BFM
inquiztr // 1989 BFM
qos // 1992 BFM
@@ -8679,10 +8680,11 @@
b85ritzc //
b85ritzd //
b85royal //
b85scard // (c) 198? BFM
b85sngam //
+*/
@source:bgt.cpp
bg_barmy //
bg_ddb //
bg_max //
@@ -21420,10 +21422,11 @@
mps1230 // 1988 Commodore MPS-1230 near-letter-quality dot matrix printer
@source:mpu12wbk.cpp
fruitstb //
+/*
@source:mpu2.cpp
m2hilite // Hi-Lights (Barcrest) (MPU2)
m2svlite // Silver Lights (Barcrest) (MPU2)
@source:mpu3.cpp
@@ -27838,10 +27841,11 @@
m5xfact // X Factor (Empire)
m5xfact02 //
m5xfact04 //
m5xfact11 //
m5zigzag // Zig Zag
+*/
@source:mpz80.cpp
mpz80 //
@source:mquake.cpp
@@ -32551,13 +32555,15 @@
rastanub // B04 (c) 1987 Taito America Corporation (US)
rastsaga // B04 (c) 1987 Taito Corporation (Japan)
rastsagaa // B04 (c) 1987 Taito Corporation (Japan)
rastsagab // B04 (c) 1987 Taito Corporation (Japan)
+/*
@source:rastersp.cpp
fbcrazy // 1997
rotr // 1994
+*/
@source:ravens.cpp
ravens //
ravens2 //
This comments out barcrest and bfm using lua style comments. Changing 6 lines.
Code:
diff ../mame194orig/scripts/target/mame/arcade.lua scripts/target/mame/arcade.lua
747,748c747,748
< "barcrest",
< "bfm",
---
> -- "barcrest",
> -- "bfm",
1283a1284
> --[[
1308a1310,1311
> --]]
> --[[
1340a1344
> --]]
diff ../mame194orig/scripts/target/mame/arcade.lua scripts/target/mame/arcade.lua -u5
--- ../mame194orig/scripts/target/mame/arcade.lua 2018-01-31 11:18:24.000000000 -0500
+++ scripts/target/mame/arcade.lua 2018-03-11 14:05:01.899315814 -0400
@@ -742,12 +742,12 @@
"amiga",
"aristocr",
"ascii",
"atari",
"atlus",
- "barcrest",
- "bfm",
+ -- "barcrest",
+ -- "bfm",
"bmc",
"capcom",
"ces",
"cinemat",
"comad",
@@ -1279,10 +1279,11 @@
MAME_DIR .. "src/mame/includes/powerins.h",
MAME_DIR .. "src/mame/video/powerins.cpp",
MAME_DIR .. "src/mame/drivers/bowltry.cpp",
}
+--[[
createMAMEProjects(_target, _subtarget, "barcrest")
files {
MAME_DIR .. "src/mame/drivers/mpu2.cpp",
MAME_DIR .. "src/mame/drivers/mpu3.cpp",
MAME_DIR .. "src/mame/machine/mpu4.cpp",
@@ -1304,10 +1305,12 @@
MAME_DIR .. "src/mame/drivers/mpu4vid.cpp",
MAME_DIR .. "src/mame/drivers/mpu5.cpp",
MAME_DIR .. "src/mame/drivers/mpu5.hxx",
}
+--]]
+--[[
createMAMEProjects(_target, _subtarget, "bfm")
files {
MAME_DIR .. "src/mame/drivers/bfcobra.cpp",
MAME_DIR .. "src/mame/machine/bfm_comn.cpp",
MAME_DIR .. "src/mame/machine/bfm_comn.h",
@@ -1336,10 +1339,11 @@
MAME_DIR .. "src/mame/machine/bfm_bda.h",
MAME_DIR .. "src/mame/video/bfm_dm01.cpp",
MAME_DIR .. "src/mame/video/bfm_dm01.h",
MAME_DIR .. "src/mame/drivers/rastersp.cpp",
}
+--]]
createMAMEProjects(_target, _subtarget, "bmc")
files {
MAME_DIR .. "src/mame/drivers/bmcbowl.cpp",
MAME_DIR .. "src/mame/drivers/koftball.cpp",
To my surprise, the compiled binary worked perfectly on knoppix 8.1. I guess it's not too surprising considering they are both based on debian.9.3.
Code:
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.3 (stretch)
Release: 9.3
Codename: stretch
Code:
./mame -sdlvideofps galaxian -verbose -video opengl
Available videodrivers: x11 wayland dummy
Current Videodriver: x11
Display #0
Renderdrivers:
opengl (0x0)
opengles2 (0x0)
software (0x0)
Available audio drivers:
pulseaudio
alsa
sndio
dsp
disk
dummy
Build version: 0.194 (unknown)
Build architecure:
Build defines 1: SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1
Build defines 1: LSB_FIRST=1
SDL/OpenGL defines: SDL_COMPILEDVERSION=2005 USE_OPENGL=1
Compiler defines A: __GNUC__=6 __GNUC_MINOR__=3 __GNUC_PATCHLEVEL__=0 __VERSION__="6.3.0 20170516"
Compiler defines B: __unix__=1 __i386__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
Enter init_monitors
Adding monitor screen0 (1920 x 1080)
Leave init_monitors
Enter sdlwindow_init
Using SDL multi-window OpenGL driver (SDL 2.0+)
...snip...
GL texture: copy 0, shader 0, dynamic 0, 768x224 768x224 [RGB32, Equal: 1, Palette: 0,
scale 1x1, border 0, pitch 1152,768/2048], bytes/pix 4
GL texture: copy 0, shader 0, dynamic 0, 768x224 768x224 [RGB32, Equal: 1, Palette: 0,
scale 1x1, border 0, pitch 1152,768/2048], bytes/pix 4
0.02s, 1 F, avrg game: 60.24 FPS 16.60 ms/f, avrg video: 731.20 FPS 1.37 ms/f, last video: inf FPS 0.73 ms/f
1.02s, 62 F, avrg game: 60.61 FPS 16.50 ms/f, avrg video: 1288.61 FPS 0.78 ms/f, last video: inf FPS 0.66 ms/f
2.03s, 123 F, avrg game: 60.60 FPS 16.50 ms/f, avrg video: 1356.92 FPS 0.74 ms/f, last video: inf FPS 0.69 ms/f
3.04s, 184 F, avrg game: 60.60 FPS 16.50 ms/f, avrg video: 1312.29 FPS 0.76 ms/f, last video: inf FPS 0.81 ms/f
Average speed: 100.00% (4 seconds)
sdl_kill: closing audio
Sound buffer: overflows=3 underflows=0
Enter sdlwindow_exit
Leave sdlwindow_exit
So while it's not compiling under knoppix 8.1 itself, it's the next best thing.