sgdk_nix
sgdk_nix copied to clipboard
Build failed on Ubuntu 20.04 new SGDK
I'm getting this compilation error on Ubuntu 20.04 with the most recent SGDK (tried 1.9, 2.0 and the current from master). I would appreciate any help
/opt/sgdk/bin/bintos /opt/sgdk/src/z80_drv0.o80 m68k-linux-gnu-gcc -x assembler-with-cpp -m68000 -Wall -Wextra -Wno-shift-negative-value -fno-builtin -I/opt/sgdk/inc -I/opt/sgdk/src -I/opt/sgdk/res -O3 -fuse-linker-plugin -fno-web -fno-gcse -fno-unit-at-a-time -fomit-frame-pointer -flto -c /opt/sgdk/src/z80_drv0.s -o /opt/sgdk/src/z80_drv0.o m68k-linux-gnu-gcc -x assembler-with-cpp -m68000 -Wall -Wextra -Wno-shift-negative-value -fno-builtin -I/opt/sgdk/inc -I/opt/sgdk/src -I/opt/sgdk/res -O3 -fuse-linker-plugin -fno-web -fno-gcse -fno-unit-at-a-time -fomit-frame-pointer -flto -c /opt/sgdk/src/smp_null_pcm.s -o /opt/sgdk/src/smp_null_pcm.o m68k-linux-gnu-gcc -x assembler-with-cpp -m68000 -Wall -Wextra -Wno-shift-negative-value -fno-builtin -I/opt/sgdk/inc -I/opt/sgdk/src -I/opt/sgdk/res -O3 -fuse-linker-plugin -fno-web -fno-gcse -fno-unit-at-a-time -fomit-frame-pointer -flto -c /opt/sgdk/src/smp_null.s -o /opt/sgdk/src/smp_null.o m68k-linux-gnu-gcc -x assembler-with-cpp -m68000 -Wall -Wextra -Wno-shift-negative-value -fno-builtin -I/opt/sgdk/inc -I/opt/sgdk/src -I/opt/sgdk/res -O3 -fuse-linker-plugin -fno-web -fno-gcse -fno-unit-at-a-time -fomit-frame-pointer -flto -c /opt/sgdk/src/tools_a.s -o /opt/sgdk/src/tools_a.o /opt/sgdk/src/tools_a.s: Assembler messages: /opt/sgdk/src/tools_a.s:278: Error: operands mismatch -- statement 'movem.l a2-a4,-(sp)' ignored /opt/sgdk/src/tools_a.s:280: Error: syntax error -- statement 'lea .jump_table(pc),a3' ignored /opt/sgdk/src/tools_a.s:283: Error: operands mismatch -- statement 'moveq #0,d1' ignored /opt/sgdk/src/tools_a.s:283: Error: operands mismatch -- statement 'moveq #0,d0' ignored /opt/sgdk/src/tools_a.s:283: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:283: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:283: Error: operands mismatch -- statement 'add.w d0,d0' ignored /opt/sgdk/src/tools_a.s:283: Error: operands mismatch -- statement 'add.w d0,d0' ignored /opt/sgdk/src/tools_a.s:283: Error: syntax error -- statement 'move.l (a3,d0.w),a4' ignored /opt/sgdk/src/tools_a.s:306: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:306: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:306: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:306: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:306: Warning: missing operand; zero assumed
I've got A LOT of this warnings and errors, here's the bottom of the output:
/opt/sgdk/src/tools_a.s:726: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:726: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:726: Error: operands mismatch -- statement 'moveq #0,d1' ignored /opt/sgdk/src/tools_a.s:726: Error: operands mismatch -- statement 'moveq #0,d0' ignored /opt/sgdk/src/tools_a.s:726: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:726: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:726: Error: operands mismatch -- statement 'add.w d0,d0' ignored /opt/sgdk/src/tools_a.s:726: Error: operands mismatch -- statement 'add.w d0,d0' ignored /opt/sgdk/src/tools_a.s:726: Error: syntax error -- statement 'move.l (a3,d0.w),a4' ignored /opt/sgdk/src/tools_a.s:729: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:731: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:734: Error: syntax error -- statement 'sub.l 20(sp),d0' ignored /opt/sgdk/src/tools_a.s:736: Warning: missing operand; zero assumed /opt/sgdk/src/tools_a.s:736: Error: operands mismatch -- statement 'movem.l (sp)+,a2-a4' ignored /opt/sgdk/src/tools_a.s:343: Error: value 160 out of range /opt/sgdk/src/tools_a.s:343: Error: value of 160 too large for field of 1 byte at 6367 make: *** [makefile_lib:111: /opt/sgdk/src/tools_a.o] Error 1