Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on build¨error: --memory-init-file is no longer supported #75

Open
imneckro opened this issue Mar 6, 2024 · 2 comments
Open

Comments

@imneckro
Copy link

imneckro commented Mar 6, 2024

Hello.
Can anyone help me out with this error?

xriko@xriko-ubuntu:~/Desktop/diafora/em-dosbox$ make
make  all-recursive
make[1]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox'
Making all in src
make[2]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src'
python ./version.py ../include/version.h .. /home/xriko/Desktop/diafora/em-dosbox/emsdk/upstream/emscripten/em++
fatal: Not a valid object name master
make  all-recursive
make[3]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src'
Making all in cpu
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu'
make  all-recursive
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu'
Making all in core_full
make[6]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu/core_full'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu/core_full'
Making all in core_normal
make[6]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu/core_normal'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu/core_normal'
Making all in core_dyn_x86
make[6]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu/core_dyn_x86'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu/core_dyn_x86'
Making all in core_dynrec
make[6]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu/core_dynrec'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu/core_dynrec'
make[6]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu'
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu'
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/cpu'
Making all in debug
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/debug'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/debug'
Making all in dos
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/dos'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/dos'
Making all in fpu
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/fpu'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/fpu'
Making all in gui
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/gui'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/gui'
Making all in hardware
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/hardware'
Making all in serialport
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/hardware/serialport'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/hardware/serialport'
Making all in mame
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/hardware/mame'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/hardware/mame'
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/hardware'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/hardware'
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/hardware'
Making all in libs
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/libs'
Making all in zmbv
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/libs/zmbv'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/libs/zmbv'
Making all in gui_tk
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/libs/gui_tk'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/libs/gui_tk'
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/libs'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/libs'
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/libs'
Making all in ints
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/ints'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/ints'
Making all in misc
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/misc'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/misc'
Making all in shell
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/shell'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/shell'
Making all in platform
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/platform'
Making all in visualc
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/platform/visualc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/platform/visualc'
make[5]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src/platform'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/platform'
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src/platform'
make[4]: Entering directory '/home/xriko/Desktop/diafora/em-dosbox/src'
/home/xriko/Desktop/diafora/em-dosbox/emsdk/upstream/emscripten/em++  -O3  -s USE_SDL=2 -s TOTAL_MEMORY=134217728 -s ALLOW_MEMORY_GROWTH=0 -s FORCE_FILESYSTEM  --memory-init-file 0 -s ASYNCIFY=1 -s FETCH=1 -s ASYNCIFY_ONLY=@./asyncify.txt -s WASM=1   -o dosbox.html dosbox.o  cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a  hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/mame/libmame.a hardware/serialport/libserial.a libs/gui_tk/libgui_tk.a 
em++: error: --memory-init-file is no longer supported
make[4]: *** [Makefile:430: dosbox.html] Error 1
make[4]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src'
make[3]: *** [Makefile:467: all-recursive] Error 1
make[3]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src'
make[2]: *** [Makefile:352: all] Error 2
make[2]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox/src'
make[1]: *** [Makefile:379: all-recursive] Error 1
make[1]: Leaving directory '/home/xriko/Desktop/diafora/em-dosbox'
make: *** [Makefile:320: all] Error 2
@leonid-shevtsov
Copy link

I don't know nearly anything about any of this stack, but this can be avoided by commenting out a line in src/Makefile.am (then rerun the compilation steps):

diff --git a/src/Makefile.am b/src/Makefile.am
index 1c1b5df5..881151f4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,7 +27,7 @@ EXTRA_dosbox_DEPENDENCIES=emterpretify.txt
 else
 # Memory init file is huge and it doesn't save bandwith even if using gzip.
 # It is only required when using emterpreter.
-dosbox_LDFLAGS+=--memory-init-file 0
+# dosbox_LDFLAGS+=--memory-init-file 0
 if ASYNCIFY
 dosbox_LDFLAGS+=-s ASYNCIFY=1 -s FETCH=1 -s ASYNCIFY_ONLY=@$(srcdir)/asyncify.txt
 EXTRA_dosbox_DEPENDENCIES=asyncify.txt

The build completes and i haven't noticed anything missing. From the README it looks like the "emterpreter" was deprecated long before.

@levelsio
Copy link

Yep I made a script to just comment this out and it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants