Skip to content

Instantly share code, notes, and snippets.

@vitorio
Last active December 29, 2015 17:09
Show Gist options
  • Save vitorio/7702384 to your computer and use it in GitHub Desktop.
Save vitorio/7702384 to your computer and use it in GitHub Desktop.
Using the makefile debugger remake to figure out a JSMESS/MESS build conflict
remake[1]: *** [obj/sdl/mess/mess.o] Error 1
#0 obj/sdl/mess/mess.o at ??
#1 messtiny at /home/milianov/remess/jsmess/mess/makefile:869
#2 emulator at /home/milianov/remess/jsmess/mess/makefile:812
#3 default at /home/milianov/remess/jsmess/mess/makefile:764
***Entering debugger because we encountered a fatal error.
***Exiting the debugger will exit make with exit code 1.
(/home/milianov/remess/jsmess/mess/makefile:889)
obj/sdl/mess/mess.o: src/mess/mess.c
mdb<<34>> info program
Starting directory `/home/milianov/remess/jsmess/mess'
Program invocation:
remake --debugger OSD=sdl NOWERROR=1 TARGET=mess SUBTARGET=tiny SYSTEM=coleco VERBOSE=1 CROSS_BUILD=1 NATIVE_OBJ=/home/milianov/remess/jsmess/mess/obj/nativesdl64 TARGETOS=emscripten PTR64=0 OPTIMIZE=2
Recursion level: 1
Program stopped after an error encountered.
mdb<<35>> target
obj/sdl/mess/mess.o: src/mess/mess.c
# Implicit rule search has been done.
# Implicit/static pattern stem: `mess/mess'
# File does not exist.
# File has not been updated.
# Commands currently running (THIS IS A BUG).
# automatic
# @ := obj/sdl/mess/mess.o
# automatic
# % :=
# automatic
# * := mess/mess
# automatic
# + := src/mess/mess.c
# automatic
# | :=
# automatic
# < := src/mess/mess.c
# automatic
# ^ := src/mess/mess.c
# automatic
# ? := src/mess/mess.c
# commands to execute (from `makefile', line 890):
@echo Compiling $<...
$(CC) $(CDEFS) $(CFLAGS) -c $< -o $@
mdb<<36>> print CC
src/osd/sdl/sdl.mak:449 (origin: makefile) CC = @gcc-4.6
mdb<<37>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment