Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
when i run make i get this error message:
SDCC.y: In function ‘yyparse’:
SDCC.y:1004:4: error: label at end of compound statement
default:
^
make[2]: *** [SDCCy.o] Error 1
make[2]: Leaving directory `/home/tom/gbdk/sdcc/src'
make[1]: *** [sdcc-cc] Error 2
make[1]: Leaving directory `/home/tom/gbdk/sdcc'
make: *** [sdcc-build] Error 2
dose anyone know what could be causing this?
Offline
UPDATE:
as it seemed the reason it was not compiling is the sdcc version was old and used old c syntax i replaced the sdcc folder with newer source code and all seems fine
but i am not getting this error:
/bin/bash: ppc-unknown-linux2.2-ar: command not found
make[4]: *** [libiberty.a] Error 127
make[4]: Leaving directory `/home/tom/gbdk/sdcc/support/sdbinutils/libiberty'
make[3]: *** [all-libiberty] Error 2
make[3]: Leaving directory `/home/tom/gbdk/sdcc/support/sdbinutils'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/tom/gbdk/sdcc/support/sdbinutils'
make[1]: *** [sdcc-sdbinutils] Error 2
make[1]: Leaving directory `/home/tom/gbdk/sdcc'
make: *** [sdcc-build] Error 2
dose anyone know what is causing this?
Offline
You don't have ppc-unknown-linux2.2-ar in your path. See if you have the correct binutils for your platform. Also check if your host-triplet is correct (ppc: power-pc?). Finally, try $> which gcc. This should tell you where your gcc is located (possibly try $> which ppc-unknown-linux2.2-gcc). Look for a plain ar in that directory. If there is, set a symbolic link to it (as, you guessed it, ppc-unknown-linux2.2-ar) and try make again.
cYa,
Tauwasser
Offline
"See if you have the correct binutils for your platform"
i ran apt-get install binutils*
" check if your host-triplet is correct"
?
please elaborate
"which ppc-unknown-linux2.2-gcc"
i get no output
Last edited by a cat (2015-04-14 17:35:45)
Offline
this fourm is inactive :'(
Offline
Dude, seriously. If you're on MacOS, you have to look for stuff yourself. See to it that you have a working toolchain to compile c source code and run it. Make sure you're familiar with every tool. After that, you can jump into cross-compiling. Make sure you have the right prefix and bintutils for all of your tools. If "which ppc-unknown-linux2.2-gcc" doesn't yield any output for you, you have to make sure you have the right toolchain installed for the job. Go small steps until you understand what every tool is used for.
cYa,
Tauwasser
Offline
i will follow your advice but i am running
trisquel gnu/linux not mac osx
Last edited by a cat (2015-04-18 13:46:20)
Offline
a cat are you tom lukeywood
if so what will you're next tutorial will be about ?"
Offline
i am tom lukeywood
i have quit youtube do to the many bad things about it e.g
censorship
forcing google plus on the site's users
its centralized so google have all the control and its users have none
spying on its users and data mining
using non-libreJavaScript on the site(although you can get around it by watching this tutorial(https://goblinrefuge.com/mediagoblin/u/ … uirements/))
etc etc
so any future videos i will now post on my site:
http://pika.jadedfs.net/
also for a decentralized alternative to you check out:
http://mediagoblin.org/
but getting to this question:
what do you want me to make a tutorial about?
Last edited by a cat (2015-04-19 19:39:42)
Offline
What will be in part 9 I am now aware that you quitted YouTube
Offline
what go you want to be in part 9?
note:
i can only work within my knowlage
Offline
mMake a walking charter and how to design them
Offline
i could try i am currently busy setting up a online shop
but when i get the time i will try
if somone could post some info about making and using sprites with gbdk and c that would be great too!
Offline