drojaazu / sgdk_nix

Makefiles and instructions for using SGDK in *nix environments
MIT License
29 stars 5 forks source link

assembler issue with sega.s #7

Closed Strugglemeat closed 1 year ago

Strugglemeat commented 1 year ago
m68k-elf-gcc -m68000 -Wall -Wextra -Wno-shift-negative-value -fno-builtin -Iinc -Isrc -Ires -I/opt/sgdk/inc -I/opt/sgdk/res -c src/boot/sega.s -o out/sega.o
src/boot/sega.s: Assembler messages:
src/boot/sega.s:256: Error: invalid operands (*UND* and *UND* sections) for `+'
make: *** [makefile:187: out/sega.o] Error 1

here's line 256 of sega.s lea (task_regs + UTSK_REGS_LEN), %a0

someone else had the same problem, it was due to an outdated makefile https://github.com/Stephane-D/SGDK/issues/284

Strugglemeat commented 1 year ago

I can't figure out how to get a project to make. the makefile.gen that comes with SGDK 1.80 seems to not work for me in linux.

Strugglemeat commented 1 year ago

I had to modify /opt/sgdk/makefile.gen, adding this line GDK := /opt/sgdk so now using this from the project directory works

make -f /opt/sgdk/makefile.gen