[solved] Help installing toolchain !

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Pixel du Rezo
Posts: 5
Joined: Sat Oct 22, 2005 4:16 am

[solved] Help installing toolchain !

Post by Pixel du Rezo »

2 week before, I successfully installed the toolchain on my laptop, running Debian.
Yesterday, I want to update the toolchain, so I ran "./toolchain.sh"

now, I've got this output and error :

Code: Select all

In file included from ../../../../../../newlib/libc/sys/psp/libcglue.c:24:
../../../../../../newlib/libc/sys/psp/sys/dirent.h:27: erreur: syntax error before '*' token
../../../../../../newlib/libc/sys/psp/sys/dirent.h:27: attention : la définition de données n'a pas de type ni de classe de stockage
../../../../../../newlib/libc/sys/psp/sys/dirent.h:28: erreur: syntax error before '*' token
../../../../../../newlib/libc/sys/psp/sys/dirent.h:29: erreur: syntax error before '*' token
make[5]: *** [libcglue.o] Erreur 1
make[5]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc/sys/psp'
make[4]: *** [all-recursive] Erreur 1
make[4]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc/sys'
make[3]: *** [all-recursive] Erreur 1
make[3]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib'
make[1]: *** [all-recursive-am] Erreur 2
make[1]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib'
make: *** [all-target-newlib] Erreur 2
ERROR BUILDING NEWLIB
I try to uninstall the whole thing, and then reinstall it from scratch, but nothing to do...

Any solution ?

EDIT:

1st toolchain version was "psptoolchain-20050906.tgz".
Now, using "psptoolchain-20051011.tgz"
Last edited by Pixel du Rezo on Sat Oct 22, 2005 7:08 am, edited 1 time in total.
Pixel du Rezo
Posts: 5
Joined: Sat Oct 22, 2005 4:16 am

Post by Pixel du Rezo »

I've give another try with the "psptoolchain-20050906.tgz"

The error is

Code: Select all

../../../../../../newlib/libc/sys/psp/libcglue.c:272: erreur: syntax error before '*' token
../../../../../../newlib/libc/sys/psp/libcglue.c: In function '_opendir':
../../../../../../newlib/libc/sys/psp/libcglue.c:274: erreur: 'DIR' undeclared (first use in this function)
../../../../../../newlib/libc/sys/psp/libcglue.c:274: erreur: (Chaque identificateur non déclaré est rapporté une seule fois
../../../../../../newlib/libc/sys/psp/libcglue.c:274: erreur: pour chaque fonction dans laquelle il apparaît.)
../../../../../../newlib/libc/sys/psp/libcglue.c:274: erreur: 'dirp' undeclared (first use in this function)
../../../../../../newlib/libc/sys/psp/libcglue.c:282: erreur: syntax error before ')' token
make[5]: *** [_opendir.o] Erreur 1
make[5]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc/sys/psp'
make[4]: *** [all-recursive] Erreur 1
make[4]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc/sys'
make[3]: *** [all-recursive] Erreur 1
make[3]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib'
make[1]: *** [all-recursive-am] Erreur 2
make[1]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib'
make: *** [all-target-newlib] Erreur 2
ERROR BUILDING NEWLIB
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Both psptoolchain-20050906.tgz and psptoolchain-20051011.tgz are out of date; get it from Subversion instead:

Code: Select all

svn co svn://svn.pspdev.org/psp/trunk/psptoolchain
cd psptoolchain
./toolchain.sh
Pixel du Rezo
Posts: 5
Joined: Sat Oct 22, 2005 4:16 am

Post by Pixel du Rezo »

I'm trying right now...
I'll come back in a few hours to give the result ;)

EDIT: It's working now !!!! Thx a lot !
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Hmm. I guess its time to update the version on my site.

In case someone finds this thread in a search and the there's no prepackaged latest version, here's the updating instructions from the README.TXT included with psptoolchain:
============================
HOW CAN I STAY UP TO DATE?
============================

The psp toolchain itself isn't updated nearly as often as pspsdk itself
so you can usually stay up to date by just running:

./toolchain.sh -p

However, you can update the entire psp toolchain script, patches and sdk
by grabbing the latest version direct from the svn server:

svn update
./toolchain.sh
Making sure you're running the latest version is definately the first step in troubleshooting.
Pixel du Rezo
Posts: 5
Joined: Sat Oct 22, 2005 4:16 am

Post by Pixel du Rezo »

Just a little addition: (I still haven't search in this forum if anybody has the same problem)

It seems like I've got a "zoom" problem now...
It is to say that when I compile the "cube" sample (in sample/gu/cube of the sdk) all seems to be good, but when I launch the app, there is a cube, rotating... but I nearly not see it, because it's located "near the screen" (I don'tknow how to explain.. my english isn't very good)

With the previous version.. all was good if my memory is good ;)

PS: I'm running the app with a 2.0 firmware, with the EBOOT loader v0.6 from fanjita. (but it's the same since I started to develop for the PSP)
Post Reply