you might have stopped compilation during first run, ending up with a half-compiled megadriv.o

try deleting it from the obj/windows/mess/mame/drivers/ directory and restarting compilation

current svn compiles fine