oracles-disasm icon indicating copy to clipboard operation
oracles-disasm copied to clipboard

Error compiling vanilla ROMs

Open Zixiken opened this issue 2 years ago • 5 comments

When I set the Makefile to BUILD_VANILLA=true, I get the following error:

MEM_INSERT: Origin ($4000) overflows from bank (1). ^ code/ages/garbage/bank01End.s:17: Writing a byte

I'm using your fork of wla-dx, with the emptyfill-banknumber branch, and I've tried it with cmake build types release and debug to see if it made a difference, but there was no change. The build completes when not doing a vanilla build, but then the randomizer doesn't detect them as vanilla.

OS: Gentoo Linux Cmake: 3.24.3 Make: 4.3 GCC: 12.2.1

Zixiken avatar Mar 28 '23 04:03 Zixiken

You could try wiping your build directories? (rm -R build_ages_v for "vanilla" builds)

Sometimes this can help with weird issues like that. While I haven't been using that branch much, rather using wla-dx v9.11, it should be the same thing (and I did test it just now and it seems to work).

Stewmath avatar Apr 05 '23 23:04 Stewmath

I ran make clean and confirmed the build directories were deleted. I was on that branch since readme.md linked to it, but I gave wla-dx v9.11 a try and had the same error.

Zixiken avatar Apr 11 '23 02:04 Zixiken

I would add that the "MEM_INSERT" messages usually don't prevent the ROM from assembling, but they can be indicative of a problem. Perhaps you could do a binary diff on the resulting ROM and a ROM which you know which is clean to see what differences there are.

Stewmath avatar Apr 11 '23 13:04 Stewmath

Hmm, this one definitely looks like an error and not a warning, there's no ages rom created. Here's the "full" output of make, run with all the previous build artifacts still there:

=====Ages=====
wla-gb -o build/ages.o -DBUILD_VANILLA -D ROM_AGES ages.s
MEM_INSERT: Origin ($4000) overflows from bank (1).
   ^ code/ages/garbage/bank01End.s:17: Writing a byte
make[2]: *** [Makefile:143: build/ages.o] Error 1
make[1]: *** [Makefile:116: ages] Error 2
make: *** [Makefile:107: all] Error 2

And there's no build/ages.o file. Not sure if it makes a difference, but I'm on the rando/ng branch since that's where the git submodule in the oracles-randomizer-ng repo is pointing.

Zixiken avatar Apr 13 '23 21:04 Zixiken

That does make a fairly big difference, but I'm not getting that error on that branch either.

Just to be sure we're on the same page here, could you share the commit hashes for both wla-dx and oracles-disasm?

Stewmath avatar Apr 15 '23 01:04 Stewmath

Closing due to inactivity.

Stewmath avatar Jun 04 '24 22:06 Stewmath