Skip to content

Instantly share code, notes, and snippets.

@laander
Created December 7, 2015 11:09
Show Gist options
  • Save laander/8cb967be14c61cb40216 to your computer and use it in GitHub Desktop.
Save laander/8cb967be14c61cb40216 to your computer and use it in GitHub Desktop.
Tamatrix debug
vagrant@precise64:/vagrant/emu$ make
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o main.o main.c
main.c: In function 'main':
main.c:116:3: warning: pointer targets in passing argument 1 of 'lcdRender' differ in signedness [-Wpointer-sign]
lcd.h:24:6: note: expected 'uint8_t *' but argument is of type 'char *'
main.c:126:4: warning: implicit declaration of function 'tamaDumpHw' [-Wimplicit-function-declaration]
main.c:127:4: warning: implicit declaration of function 'benevolentAiDump' [-Wimplicit-function-declaration]
main.c:131:4: warning: pointer targets in passing argument 1 of 'lcdDump' differ in signedness [-Wpointer-sign]
lcd.h:25:6: note: expected 'uint8_t *' but argument is of type 'char *'
main.c: In function 'getKey':
main.c:53:8: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o tamaemu.o tamaemu.c
tamaemu.c: In function 'loadRoms':
tamaemu.c:86:9: warning: variable 'l' set but not used [-Wunused-but-set-variable]
tamaemu.c: In function 'tamaDeinit':
tamaemu.c:520:2: warning: implicit declaration of function 'i2ceepromDeinit' [-Wimplicit-function-declaration]
tamaemu.c: In function 'tamaRun':
tamaemu.c:547:6: warning: unused variable 'i' [-Wunused-variable]
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o i2c.o i2c.c
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o i2ceeprom.o i2ceeprom.c
i2ceeprom.c: In function 'i2ceepromInit':
i2ceeprom.c:65:30: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o lcd.o lcd.c
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o benevolentai.o benevolentai.c
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o lcdmatch.o lcdmatch.c
make -C imgmatch
make[1]: Entering directory `/vagrant/emu/imgmatch'
cc -ggdb -c -o compress.o compress.c
cc -o compress compress.o
echo > ../screens.c.tmp
for f in poopie1.lcd poopie2.lcd poopie3.lcd alert.lcd sick1.lcd sick2.lcd sleep1.lcd sleep2.lcd pooping1.lcd pooping2.lcd dark1.lcd dark2.lcd dark3.lcd dark4.lcd stb1.lcd stb2.lcd stb3.lcd stb4.lcd gameend.lcd jump1.lcd jump2.lcd doorsel.lcd irgame1.lcd irfail.lcd born1.lcd born2.lcd hearts.lcd; do ./compress screen_${f%.lcd} < $f >>../screens.c.tmp; done
mv ../screens.c.tmp ../screens.c
make[1]: Leaving directory `/vagrant/emu/imgmatch'
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o screens.o screens.c
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o ir.o ir.c
cc -ggdb -Wall -O2 -march=native -fprofile-generate -c -o udp.o udp.c
udp.c: In function 'udpTick':
udp.c:66:4: warning: pointer targets in passing argument 1 of 'irRecv' differ in signedness [-Wpointer-sign]
ir.h:4:6: note: expected 'char *' but argument is of type 'uint8_t *'
udp.c:60:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
make -C M6502
make[1]: Entering directory `/vagrant/emu/M6502'
cc -ggdb -O2 -march=native -fprofile-generate -c -o ConDebug.o ConDebug.c
cc -ggdb -O2 -march=native -fprofile-generate -c -o Debug.o Debug.c
Debug.c: In function 'Debug6502':
Debug.c:158:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
cc -ggdb -O2 -march=native -fprofile-generate -c -o M6502.o M6502.c
ar rcs libM6502.a ConDebug.o Debug.o M6502.o
make[1]: Leaving directory `/vagrant/emu/M6502'
cc -lgcc -fprofile-generate -o tamaemu main.o tamaemu.o i2c.o i2ceeprom.o lcd.o benevolentai.o lcdmatch.o screens.o ir.o udp.o M6502/libM6502.a
main.o: In function `main':
/vagrant/emu/main.c:140: undefined reference to `clock_gettime'
/vagrant/emu/main.c:114: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make: *** [tamaemu] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment