Gameboy Development Forum

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.

Ads

#1 2015-04-13 12:35:49

a cat
Member
Registered: 2014-07-27
Posts: 98

compiling GBDK on gnu/linux

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?


a cat in need of knowledge!!

Offline

 

#2 2015-04-13 13:10:09

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: compiling GBDK on gnu/linux

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?


a cat in need of knowledge!!

Offline

 

#3 2015-04-13 19:50:00

Tauwasser
Member
Registered: 2010-10-23
Posts: 160

Re: compiling GBDK on gnu/linux

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

 

#4 2015-04-14 17:33:12

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: compiling GBDK on gnu/linux

"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)


a cat in need of knowledge!!

Offline

 

#5 2015-04-17 18:40:58

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: compiling GBDK on gnu/linux

this fourm is inactive :'(


a cat in need of knowledge!!

Offline

 

#6 2015-04-17 20:36:53

Tauwasser
Member
Registered: 2010-10-23
Posts: 160

Re: compiling GBDK on gnu/linux

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

 

#7 2015-04-18 13:46:08

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: compiling GBDK on gnu/linux

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)


a cat in need of knowledge!!

Offline

 

#8 2015-04-18 23:13:02

npzman
Banned
From:
Registered: 2014-11-19
Posts: 197

Re: compiling GBDK on gnu/linux

a cat are you tom lukeywood

if so what will you're next tutorial will be about ?"


Twitter : @Sfeedman please follow
Join : sfeed.club my website please join

Offline

 

#9 2015-04-19 19:05:19

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: compiling GBDK on gnu/linux

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)


a cat in need of knowledge!!

Offline

 

#10 2015-04-20 05:16:20

npzman
Banned
From:
Registered: 2014-11-19
Posts: 197

Re: compiling GBDK on gnu/linux

What will be in part 9 I am now aware that you quitted YouTube


Twitter : @Sfeedman please follow
Join : sfeed.club my website please join

Offline

 

#11 2015-04-20 18:02:21

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: compiling GBDK on gnu/linux

what go you want to be in part 9?

note:
i can only work within my knowlage


a cat in need of knowledge!!

Offline

 

#12 2015-04-20 19:30:18

npzman
Banned
From:
Registered: 2014-11-19
Posts: 197

Re: compiling GBDK on gnu/linux

mMake a walking charter and how to design them


Twitter : @Sfeedman please follow
Join : sfeed.club my website please join

Offline

 

#13 2015-04-21 18:35:28

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: compiling GBDK on gnu/linux

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!


a cat in need of knowledge!!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson