Skip to content

Instantly share code, notes, and snippets.

@dleslie
Created January 8, 2021 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dleslie/05d53371ffd1ca04674e8a943a9d2f06 to your computer and use it in GitHub Desktop.
Save dleslie/05d53371ffd1ca04674e8a943a9d2f06 to your computer and use it in GitHub Desktop.
build.log
Building 32x-skeleton/
/data/Workspace/github/dleslie/32x-games/examples/marsdev/32x-skeleton /data/Workspace/github/dleslie/32x-games/examples/marsdev
make: Entering directory '/data'
/root/mars/m68k-elf/bin/m68k-elf-as -m68000 --register-prefix-optional m68k_crt0.s -o m68k_crt0.bin.o
/root/mars/m68k-elf/bin/m68k-elf-ld -nostdlib --oformat=binary m68k_crt0.bin.o -o m68k_crt0.bin
/root/mars/m68k-elf/bin/m68k-elf-ld: warning: cannot find entry symbol _start; defaulting to 0000000080000000
/root/mars/m68k-elf/bin/m68k-elf-as -m68000 --register-prefix-optional m68k_crt1.s -o m68k_crt1.bin.o
/root/mars/m68k-elf/bin/m68k-elf-ld -nostdlib --oformat=binary m68k_crt1.bin.o -o m68k_crt1.bin
/root/mars/m68k-elf/bin/m68k-elf-ld: warning: cannot find entry symbol _start; defaulting to 0000000080000000
SHAS boot.s
SHCC src/slave.c
SHCC src/font.c
SHCC src/main.c
src/main.c: In function 'handle_input':
src/main.c:58:17: warning: variable 'new_buttons' set but not used [-Wunused-but-set-variable]
58 | unsigned short new_buttons, curr_buttons;
| ^~~~~~~~~~~
SHCC src/shared_objects.c
SHCC src/hw_32x.c
SHCC src/graphics.c
src/graphics.c:3:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
3 | const static vu8 blankArray[8] = {0};
| ^~~~~
SHCC src/32x_images.c
src/32x_images.c: In function 'drawLzssSprite2':
src/32x_images.c:254:20: warning: variable 'yCount' set but not used [-Wunused-but-set-variable]
254 | int colPos,rowPos,yCount,xCount;
| ^~~~~~
src/32x_images.c: In function 'drawSpriteMaster':
src/32x_images.c:398:6: warning: variable 'p' set but not used [-Wunused-but-set-variable]
398 | int p=0;
| ^
src/32x_images.c:380:170: warning: unused parameter 'screenWrap' [-Wunused-parameter]
380 | int drawSpriteMaster(const vu8 *spriteBuffer, const int16 x, const int16 y, const int xWidth, const int yWidth, const int mirror, const int checkTransparency, const int screenWrap)
| ~~~~~~~~~~^~~~~~~~~~
SHAS src/lzss_decode.s
/root/mars/sh-elf/bin/sh-elf-gcc -T /root/mars/ldscripts/mars.ld -nostdlib boot.o src/slave.o src/font.o src/main.o src/shared_objects.o src/hw_32x.o src/graphics.o src/32x_images.o src/lzss_decode.o -o example.elf -L/root/mars/sh-elf/lib/gcc/sh-elf/9.3.0 -lgcc -L/root/mars/sh-elf/sh-elf/lib -lc -lnosys
Stripping ELF header from SH-2 program
5+1 records in
6+0 records out
49152 bytes (49 kB, 48 KiB) copied, 0.00688044 s, 7.1 MB/s
/root/mars/sh-elf/bin/sh-elf-nm --plugin=/root/mars/sh-elf/libexec/gcc/sh-elf/9.3.0/liblto_plugin.so -n example.elf > symbol.txt
make: Leaving directory '/data'
/data/Workspace/github/dleslie/32x-games/examples/marsdev
5 second pause
Building md-echo-test/
/data/Workspace/github/dleslie/32x-games/examples/marsdev/md-echo-test /data/Workspace/github/dleslie/32x-games/examples/marsdev
make: Entering directory '/data'
mkdir -p bin
gcc tools/resgen/resgen.c -std=c99 -o bin/resgen
/root/mars/bin/z80asm -i src-z80/build.z80 -o res/echoblob.bin
make: /root/mars/bin/z80asm: Command not found
make: *** [Makefile:109: res/echoblob.bin] Error 127
make: Leaving directory '/data'
/data/Workspace/github/dleslie/32x-games/examples/marsdev
5 second pause
Building md-skeleton/
/data/Workspace/github/dleslie/32x-games/examples/marsdev/md-skeleton /data/Workspace/github/dleslie/32x-games/examples/marsdev
make: Entering directory '/data'
/root/mars/m68k-elf/bin/m68k-elf-as -m68000 --register-prefix-optional boot.s -o boot.o
CC src/error.c
CC src/string.c
CC src/main.c
CC src/vdp.c
AS src/font.s
/root/mars/m68k-elf/bin/m68k-elf-gcc -o out.elf -T /root/mars/ldscripts/md.ld -nostdlib boot.o src/error.o src/string.o src/main.o src/vdp.o src/font.o -L/root/mars/m68k-elf/lib/gcc/m68k-elf/9.3.0 -lgcc
Stripping ELF header...
1+1 records in
2+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.0066181 s, 2.5 MB/s
/root/mars/m68k-elf/bin/m68k-elf-nm --plugin=/root/mars/m68k-elf/libexec/gcc/m68k-elf/9.3.0/liblto_plugin.so -n out.elf > symbol.txt
rm src/font.o src/main.o src/error.o src/vdp.o src/string.o
make: Leaving directory '/data'
/data/Workspace/github/dleslie/32x-games/examples/marsdev
5 second pause
Building md-sonic/
/data/Workspace/github/dleslie/32x-games/examples/marsdev/md-sonic /data/Workspace/github/dleslie/32x-games/examples/marsdev
make: Entering directory '/data'
rm -rf s1disasm
git clone https://github.com/andwn/s1disasm
Cloning into 's1disasm'...
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
make: *** [Makefile:3: all] Error 128
make: Leaving directory '/data'
/data/Workspace/github/dleslie/32x-games/examples/marsdev
5 second pause
Building sgdk-skeleton/
/data/Workspace/github/dleslie/32x-games/examples/marsdev/sgdk-skeleton /data/Workspace/github/dleslie/32x-games/examples/marsdev
make: Entering directory '/data'
CC boot/rom_head.c
/root/mars/m68k-elf/lib/gcc/m68k-elf/9.3.0/../../../../m68k-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000080000000
AS boot/rom_head.bin
AS res/resources.s
CC src/main.c
/root/mars/m68k-elf/bin/m68k-elf-gcc -o out.elf -T /root/mars/ldscripts/sgdk.ld -nostdlib boot/sega.o res/resources.o src/main.o -L/root/mars/m68k-elf/lib/gcc/m68k-elf/9.3.0 -lgcc -u __modsi3 -u __divsi3 -u __mulsi3 -u __umodsi3 -u __udivsi3 -u __umulsi3 -L/root/mars/m68k-elf/lib -lmd
Stripping ELF header...
18+1 records in
19+0 records out
155648 bytes (156 kB, 152 KiB) copied, 0.00745369 s, 20.9 MB/s
/root/mars/m68k-elf/bin/m68k-elf-nm --plugin=/root/mars/m68k-elf/libexec/gcc/m68k-elf/9.3.0/liblto_plugin.so -n out.elf > symbol.txt
rm src/main.o
make: Leaving directory '/data'
/data/Workspace/github/dleslie/32x-games/examples/marsdev
5 second pause
Building sgdk-ssfmapper/
/data/Workspace/github/dleslie/32x-games/examples/marsdev/sgdk-ssfmapper /data/Workspace/github/dleslie/32x-games/examples/marsdev
make: Entering directory '/data'
CC boot/rom_head.c
/root/mars/m68k-elf/lib/gcc/m68k-elf/9.3.0/../../../../m68k-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000080000000
AS boot/rom_head.bin
java -jar /root/mars/bin/rescomp.jar res/resources.res res/resources.s
ResComp 3.1 - SGDK Resource Compiler - Copyright 2020 (Stephane Dallongeville)
Resource: IMAGE moon "moon.bmp" 0
--> executing plugin IMAGE...'moon' raw size: 1764 bytes
Resource: BIN text1 "bank1.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text1' raw size: 32 bytes
Resource: BIN text2 "bank2.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text2' raw size: 32 bytes
Resource: BIN text3 "bank3.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text3' raw size: 32 bytes
Resource: BIN text4 "bank4.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text4' raw size: 32 bytes
Resource: BIN text5 "bank5.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text5' raw size: 32 bytes
Resource: BIN text6 "bank6.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text6' raw size: 32 bytes
Resource: BIN text7 "bank7.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text7' raw size: 32 bytes
Resource: BIN text8 "bank8.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text8' raw size: 32 bytes
Resource: BIN text9 "bank9.txt" 524288 2 0 0 TRUE
--> executing plugin BIN...'text9' raw size: 32 bytes
res/resources.res summary:
-------------
Binary data: 2016 bytes
Unpacked: 2016 bytes
Misc metadata (bitmap, image, tilemap, tileset, palette..): 36 bytes
Total: 2052 bytes (2 KB)
AS res/resources.s
CC src/main.c
src/main.c: In function 'main':
src/main.c:11:49: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
11 | const char *text = (const char*)SYS_getFarData(text1);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
src/main.c:13:37: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
13 | text = (const char*)SYS_getFarData(text2);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
src/main.c:15:37: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
15 | text = (const char*)SYS_getFarData(text3);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
src/main.c:17:37: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
17 | text = (const char*)SYS_getFarData(text4);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
src/main.c:19:37: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
19 | text = (const char*)SYS_getFarData(text5);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
src/main.c:21:37: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
21 | text = (const char*)SYS_getFarData(text6);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
src/main.c:23:37: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
23 | text = (const char*)SYS_getFarData(text7);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
src/main.c:25:37: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
25 | text = (const char*)SYS_getFarData(text8);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
src/main.c:27:37: warning: passing argument 1 of 'SYS_getFarData' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
27 | text = (const char*)SYS_getFarData(text9);
| ^~~~~
In file included from /root/mars/m68k-elf/include/sram.h:26,
from /root/mars/m68k-elf/include/genesis.h:13,
from src/main.c:1:
/root/mars/m68k-elf/include/mapper.h:88:7: note: expected 'void *' but argument is of type 'const u8 *' {aka 'const unsigned char *'}
88 | void* SYS_getFarData(void* data);
| ^~~~~~~~~~~~~~
/root/mars/m68k-elf/bin/m68k-elf-gcc -o out.elf -T /root/mars/ldscripts/sgdk.ld -nostdlib boot/sega.o res/resources.o src/main.o -L/root/mars/m68k-elf/lib/gcc/m68k-elf/9.3.0 -lgcc -u __modsi3 -u __divsi3 -u __mulsi3 -u __umodsi3 -u __udivsi3 -u __umulsi3 -L/root/mars/m68k-elf/lib -lmd-far
/root/mars/m68k-elf/lib/gcc/m68k-elf/9.3.0/../../../../m68k-elf/bin/ld: boot/sega.o: in function `_EXTINT':
(.text.keepboot+0x44e): undefined reference to `internalExtIntCB'
/root/mars/m68k-elf/lib/gcc/m68k-elf/9.3.0/../../../../m68k-elf/bin/ld: boot/sega.o: in function `_HINT':
(.text.keepboot+0x460): undefined reference to `internalHIntCB'
/root/mars/m68k-elf/lib/gcc/m68k-elf/9.3.0/../../../../m68k-elf/bin/ld: boot/sega.o: in function `_VINT':
(.text.keepboot+0x472): undefined reference to `internalVIntCB'
collect2: error: ld returned 1 exit status
make: *** [Makefile:110: out.elf] Error 1
rm res/resources.s src/main.o
make: Leaving directory '/data'
/data/Workspace/github/dleslie/32x-games/examples/marsdev
5 second pause
Building sgdk-stage9-sample/
/data/Workspace/github/dleslie/32x-games/examples/marsdev/sgdk-stage9-sample /data/Workspace/github/dleslie/32x-games/examples/marsdev
make: Entering directory '/data'
/root/mars/m68k-elf/bin/m68k-elf-gcc -m68000 -Wall -Wextra -std=c99 -c -fno-builtin -I/root/mars/m68k-elf/include -Isrc -Ires -Iinc src/boot/rom_head.c -o src/boot/rom_head.o
/root/mars/m68k-elf/bin/m68k-elf-ld -T /root/mars/ldscripts/sgdk.ld -nostdlib --oformat binary -o src/boot/rom_head.bin src/boot/rom_head.o
/root/mars/m68k-elf/bin/m68k-elf-as -m68000 --register-prefix-optional src/boot/sega.s -o src/boot/sega.o
/root/mars/bin/rescomp res/resources.res res/resources.s
make: /root/mars/bin/rescomp: Command not found
make: *** [Makefile:64: res/resources.s] Error 127
make: Leaving directory '/data'
/data/Workspace/github/dleslie/32x-games/examples/marsdev
5 second pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment