From: nhmall Date: Mon, 4 May 2020 01:22:55 +0000 (-0400) Subject: yet another host-side crosscompile fix X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa5eb5a355a36f93f9b2eae6951e6dc229e1e228;p=nethack yet another host-side crosscompile fix The host build portion using sys/msdos/Makefile1.cross) was failing because it was attempting to compile the generated tile.o which is using hack.h. gcc -o../util/tilemap host_o/tilemap.o A new ../src/tile.c has been created gcc -c -O -I../include -I../sys/msdos -DDLB -DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_HOST -ohost_o/tile.o ../src/tile.c In file included from ../include/hack.h:201:0, from ../src/tile.c:3: ../include/dungeon.h:70:5: error: unknown type name ‘lua_State’ lua_State *themelua; /* themerms compiled lua */ ^ ../sys/msdos/Makefile1.cross:286: recipe for target 'host_o/tile.o' failed make: *** [host_o/tile.o] Error 1 I don't think think the tile.o is required on the host build build portion, so it is probably an error in the Makefile. Try removing it. --- diff --git a/sys/msdos/Makefile1.cross b/sys/msdos/Makefile1.cross index 9105341f4..d3c8ffc08 100644 --- a/sys/msdos/Makefile1.cross +++ b/sys/msdos/Makefile1.cross @@ -148,7 +148,7 @@ TEXTIO2 = $(HOST_O)tiletex2.o $(HOST_O)tiletxt2.o $(HOST_O)drawing.o $(HOST_ TILE_BMP = $(DAT)/NHTILES.BMP -TILEUTIL = $(TILOBJ) $(TILE_BMP) +TILEUTIL = $(TILE_BMP) TILEFILES = $(WSHR)/monsters.txt $(WSHR)/objects.txt $(WSHR)/other.txt @@ -627,7 +627,7 @@ spotless: clean # src dependencies -$(HOST_O)tile.o: tile.c $(HACK_H) +#$(HOST_O)tile.o: tile.c $(HACK_H) $(HOST_O)vis_tab.o: vis_tab.c $(CONFIG_H) $(INCL)/vis_tab.h $(HOST_O)alloc.o: alloc.c $(CONFIG_H) $(HOST_O)dlb.o: dlb.c $(CONFIG_H) $(INCL)/dlb.h