How do I use the psptoolchain script?

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

Moderators: cheriff, TyRaNiD

millionhere
Posts: 5
Joined: Mon Sep 19, 2005 5:32 pm

o! a error!

Post by millionhere »

i'm a newbie and my English is so poor too! hehe
it shows this:

checking whether ln works... yes
checking whether ln -s works... yes
-v: not found
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
ERROR CONFIGURING BINUTILS (binutils-2.16 psp)

XXX@XXXX ~
$

What should i do?! HELP ME!!!
Ratty
Posts: 18
Joined: Sun Sep 18, 2005 12:04 pm

Post by Ratty »

You don't have GCC installed, which is your C compiler. If you're using cygwin select it from the devel list during installation. If you're using linux, then your distro is nuts.
millionhere
Posts: 5
Joined: Mon Sep 19, 2005 5:32 pm

At last,finished the setup,but another problem......

Post by millionhere »

Thanks a lot,i do forgot to select the gcc & binutils
of cause i use the winXP

when i compile my first program--certainly "Helloworld"--
it shows :

$ make
make: psp-config: Command not found
Makefile:16: /lib/build.mak: No such file or directory
make: *** No rule to make target '/lib/build.mak'. Stop.

then i go to find the"psp-config"&"build.mak" in cygwin\usr\local\pspdev\bin\
of cause i can't find them but there are about 20 other exe-files just like "psp-addr2line.exe" "psp-g++.exe"......

Why? Didn't I install the psptoolchain correctly?
Ratty
Posts: 18
Joined: Sun Sep 18, 2005 12:04 pm

Post by Ratty »

Read http://wiki.ps2dev.org/psp:programming_ ... _of_pspsdk

the files are located:
/usr/local/pspdev/bin/psp-config
/usr/local/pspdev/psp/sdk/lib/build.mak

but it won't find any of that until you add the export lines to your .bashrc file and restart cygwin.
millionhere
Posts: 5
Joined: Mon Sep 19, 2005 5:32 pm

Maybe my toolchain is too old.

Post by millionhere »

Thank you......
I'm trying the newest toochain--psptoolchain-20050906
Wish all would be OK...
millionhere
Posts: 5
Joined: Mon Sep 19, 2005 5:32 pm

OK! It works!

Post by millionhere »

After about 2 hours's crack of my harddisk,I install the toolchains again(of cause it's the newest version),then i input "make" it works! So Great!
THANK YOU VERY MUCH!
I'm sure that on my way ahead there are also many questions......
jason867
Posts: 78
Joined: Sun Jul 24, 2005 1:58 am
Contact:

Post by jason867 »

I've finally gotten around to updating to the latest toolchain and updating the installation, and I got a few questions.

I downloaded the psptoolchain version 20050906 and unziped the psptoolchain folder into the cygwin\home\owner\ directory

Now, I haven't updated anything in quite a while. Do I need to re-run the entirety of the toolchain script? Or do I just need to type ./toolchain.sh -p and only update the pspsdk part?

Thanks for your help...
Ask not for whom the bell tolls, it tolls for thee, besides, I'm playing my PSP, tee hee!
------------------------------------------------------
Visit my website for my PSP Homebrew!
dankydoo
Posts: 11
Joined: Tue Mar 29, 2005 2:39 am

Post by dankydoo »

Hey all, I've followed the wiki step by step, and everytime I run the toolchain script it bombs at exactly the same place telling me

Code: Select all

'Invalid Configuration' 'psp' machine 'psp' not recognized
I've searched the forum, and one other person seemed to of had it, but they edited their posted saying they figured it out without their resolution....

thanks for any help,

dankydoo
psveind
Posts: 1
Joined: Wed Oct 05, 2005 12:16 pm
Contact:

Post by psveind »

Hi,

I failed to compile the psptoolchain script..

I followed all the steps in the tutorial, and installed at the packages required by cygwin.

Image

Yesterday, I downloaded the latest version of psptoolchain, and tried it again, but still failed.

Is there any way to solve this problem?

Thanks!
foobie
Posts: 3
Joined: Mon Oct 17, 2005 11:56 pm

Post by foobie »

Another random error. Happened on both redhat 7.3 and FC3, pretty minimal installs. I can supply kickstart config if required :-)

Code: Select all

if psp-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../sdk/base -I../../sdk/user    -g -O2 -G0 -Wall -MT pspaudiolib.o -MD -MP -MF ".deps/pspaudiolib.Tpo" -c -o pspaudiolib.o pspaudiolib.c; \
then mv -f ".deps/pspaudiolib.Tpo" ".deps/pspaudiolib.Po"; else rm -f ".deps/pspaudiolib.Tpo"; exit 1; fi
pspaudiolib.c:14:20: error: stdlib.h: No such file or directory
pspaudiolib.c:15:20: error: string.h: No such file or directory
pspaudiolib.c: In function âpspAudioInitâ:
pspaudiolib.c:117: warning: implicit declaration of function âstrcpyâ
pspaudiolib.c:117: warning: incompatible implicit declaration of built-in function âstrcpyâ
gmake[3]: *** [pspaudiolib.o] Error 1
gmake[3]: Leaving directory `/tmp/pspdev/pspsdk/sdk/audio'
foobie
Posts: 3
Joined: Mon Oct 17, 2005 11:56 pm

Post by foobie »

OK. Bizarre.

Fixed it by running ./toolchain.sh -n to re-download and install newlibs.

Thx anyway :-)
foobie
Posts: 3
Joined: Mon Oct 17, 2005 11:56 pm

Post by foobie »

OK, additional packages I had to install to a minimal FC3 box:

subversion
flex
gcc
gcc-c++
cpp
libstdc++-devel
glibc-devel
glibc-headers
glibc-kernheaders
texinfo
bison
which
autoconf
automake
doxygen
libtool
libtool-libs
ncurses
ncurses-devel

Hope this helps anyone else installing this :-)
seventoes
Posts: 79
Joined: Sun Oct 02, 2005 4:50 am

Post by seventoes »

Im having trouble upgrading to the newest 20051023 toolchain, but i just get this:

Image

How can i fix this? I tried chmodding the configure file, but it didnt help.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Install automake and autoconf.
seventoes
Posts: 79
Joined: Sun Oct 02, 2005 4:50 am

Post by seventoes »

I have to install them again?? I thought i already had them from installing cygwin the first time?

How do i install them again without uninstalling cygwin?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Those parts about the 'command not found' mean it isn't installed. What you think is irrelevant.

I do not use cygwin personally, but I've installed it several times to see if the toolchain script works - which it does without fail. However, I am amazed at how something that is VERY simple to install is INVARIABLY the main problem people have getting into pspdev. Its not like there's several versions of windows out there like you'd find with linux. Its not because of some inconsistency in included packages causing an error. You're running windows, you install cygwin, you run the toolchain script. Simple! I really can't understand how his is a problem for people. There's even prebuilt packages available!

Please, SEARCH THE FORUMS to find out the solution to your problem. This one in particular has been answered several times. Then LOOK AT THE WIKI ( http://wiki.pspdev.org/psp:programming_faq ) to see STEP BY STEP instructions. If that fails, utilize those very skills you'll need for programming to SEARCH GOOGLE and FIGURE IT OUT.

Good lord people. Stop sucking at the teat of laziness and THINK for once!
seventoes
Posts: 79
Joined: Sun Oct 02, 2005 4:50 am

Post by seventoes »

I already have cygwin installed, and i already installed automake and autoconf. I have installed PSPSDK with your toolchain already, i am just trying to update PSPSDK to the newest version, the one with the wifi stubs. I need to know how to reinstall automake and autoconf without reinstalling cygwin, since i am on dialup and it takes forever to download all of the packages.
Last edited by seventoes on Sun Oct 30, 2005 10:25 am, edited 3 times in total.
Skye
Posts: 19
Joined: Tue May 17, 2005 1:41 am

Post by Skye »

Haha, ooPo. It is a very nice tool. Thank you for all the support you give on it!!

And dont blame the people. I personally feel that cygwins install process is very confusing. I just kept click the + stuff Until it said all. And just installed the full package.
millionhere
Posts: 5
Joined: Mon Sep 19, 2005 5:32 pm

Post by millionhere »

Now a new problem , when i upgrade to 20051023 it shows :

./toolchian.sh: line 273: cd: pspsdk: No such file or directory
./toolchian.sh: line 276: ./bootstrap: No such file or directory
ERROR RUNNING PSPSDK BOOTSTRAP

Where is the directory "pspsdk"?
w.kosma
Posts: 19
Joined: Fri Oct 28, 2005 11:33 pm

toolchain on os x.3.9

Post by w.kosma »

hello,

i`m trying to update pspsdk with psptoolchain,
i had previously installed pspsdk with precompiled binaries
from
http://www.capsgetpeeled.com/blog/archives/000480.html

i get these errors, i installed newest autoconf,
but nothing changed.
any ideas?

best,
wojciech

****



configure.ac:4: error: Autoconf version 2.59 or higher is required
configure.ac:4: the top level
autom4te: /usr/bin/gm4 failed with exit status: 1
autoheader: /usr/bin/autom4te failed with exit status: 1
configure.ac:7: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
configure.ac: installing `./install-sh'
configure.ac: installing `./mkinstalldirs'
configure.ac: installing `./missing'
./aminclude.am:35: DX_COND_doc does not appear in AM_CONDITIONAL
./aminclude.am:41: DX_COND_html does not appear in AM_CONDITIONAL
./aminclude.am:51: DX_COND_chm does not appear in AM_CONDITIONAL
./aminclude.am:55: DX_COND_chi does not appear in AM_CONDITIONAL
./aminclude.am:67: DX_COND_man does not appear in AM_CONDITIONAL
./aminclude.am:77: DX_COND_rtf does not appear in AM_CONDITIONAL
./aminclude.am:87: DX_COND_xml does not appear in AM_CONDITIONAL
./aminclude.am:97: DX_COND_ps does not appear in AM_CONDITIONAL
./aminclude.am:126: DX_COND_pdf does not appear in AM_CONDITIONAL
sdk/audio/Makefile.am: installing `./depcomp'
./aminclude.am:35: DX_COND_doc does not appear in AM_CONDITIONAL
./aminclude.am:41: DX_COND_html does not appear in AM_CONDITIONAL
./aminclude.am:51: DX_COND_chm does not appear in AM_CONDITIONAL
./aminclude.am:55: DX_COND_chi does not appear in AM_CONDITIONAL
./aminclude.am:67: DX_COND_man does not appear in AM_CONDITIONAL
./aminclude.am:77: DX_COND_rtf does not appear in AM_CONDITIONAL
./aminclude.am:87: DX_COND_xml does not appear in AM_CONDITIONAL
./aminclude.am:97: DX_COND_ps does not appear in AM_CONDITIONAL
./aminclude.am:126: DX_COND_pdf does not appear in AM_CONDITIONAL
configure.ac:4: error: Autoconf version 2.59 or higher is required
configure.ac:4: the top level
autom4te: /usr/bin/gm4 failed with exit status: 1
cat: configure: No such file or directory
./toolchain.sh: line 305: ./configure: Permission denied
ERROR RUNNING PSPSDK CONFIGURE
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Try "autoconf --version" and figure out why the latest you installed (if it is above 2.59) isn't found on your PATH.
w.kosma
Posts: 19
Joined: Fri Oct 28, 2005 11:33 pm

Post by w.kosma »

thanks mrbrown,
i made step further,
but some new errors appear

test -z "" || rm -f
cd . && /bin/sh /tmp/pspdev/pspsdk/missing --run autoheader
Can't locate object method "path" via package "Autom4te::Request" at /usr/bin/autom4te line 81.
autoheader: /usr/bin/autom4te failed with exit status: 1
make: *** [config.h.in] Error 1
ERROR BUILDING PSPSDK

sorry for bothering again,
but any ideas with it?

best,
wojciech
munkers
Posts: 2
Joined: Wed Nov 16, 2005 12:06 pm

Post by munkers »

'configure: creating ./config.status'

I've been stuck on this step for 1hr, how long is it supposed to take or is it frozen? Im going to wait another hour but if it hasnt changed by then I will restart the script I guess..
songjing
Posts: 2
Joined: Fri Nov 18, 2005 2:38 am
Location: Singapore

W32 PSPtoolchain

Post by songjing »

Any W32 PSPtoolchain?
seventoes
Posts: 79
Joined: Sun Oct 02, 2005 4:50 am

Post by seventoes »

Well i keep trying to update, but it keeps saying automake is not installed, even though i have reinstalled it MANY times. I dont understand why... Is there an automake file i could download and put into my bin folder?
orphan frequently
Posts: 9
Joined: Thu Aug 11, 2005 1:52 pm

Post by orphan frequently »

r declaration, which is probably not what you want
../../src/net/pspnet_resolver.h:76: warning: 'struct in_addr' declared inside pa
rameter list
make[3]: *** [inethelper.o] Error 1
make[3]: Leaving directory `/tmp/pspdev/pspsdk/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk'
make: *** [all] Error 2
ERROR BUILDING PSPSDK

and yes Ive reinstalled make. Any suggestions?
Mike3285: wtf is a palindrome
MaroonSand: no its not dude
tachyon
Posts: 4
Joined: Wed Jan 18, 2006 2:52 am

Post by tachyon »

I'm also having problems with the PSPSDK. Here is what I did:

Downloaded the psptoolchain from oopo's site
Ran svn update (to update everything to revision 1710?)
./psptoolchain

Goes well until...


/cygdrive/c/DOCUME~1/Sim/LOCALS~1/Temp/ccf7ASwD.s: Assembler messages:
/cygdrive/c/DOCUME~1/Sim/LOCALS~1/Temp/ccf7ASwD.s:25: Error: illegal operands `v
midt.q M300'
make[3]: *** [sceGumLoadIdentity_vfpu.o] Error 1
make[3]: Leaving directory `/tmp/pspdev/pspsdk/src/gum'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk'
make: *** [all] Error 2
ERROR BUILDING PSPSDK

This looks like something to do with cygwin but I don't know what...any suggestions? Thanks.
619619
Posts: 9
Joined: Thu Jun 30, 2005 11:02 am
Location: Italy
Contact:

Error

Post by 619619 »

Same here:
Image

Reinstalled Cygwin and the toolchain script 2 times (also tried ./toolchain.sh -n)
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Post by chp »

Read this for solving those issues. They remain until oopo decides he wants to update the script on his homepage.
GE Dominator
tachyon
Posts: 4
Joined: Wed Jan 18, 2006 2:52 am

Post by tachyon »

Ok but even if you run 'svn update' before running toolchain it still stops at that point. Am I missing something or doesn't that command get the latest version of binutils?
Post Reply