psptoolchain build / cygwin

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

Moderators: cheriff, TyRaNiD

Post Reply
Janus
Posts: 7
Joined: Tue Dec 16, 2008 8:53 pm

psptoolchain build / cygwin

Post by Janus »

Hi folks, trying to build psptoolchain on cygwin. I triple-checked and reinstalled all necessary things (devel etc, the stuff from math, checked everything from the psptoolchain readme to be commands cygwin will execute from bash, those that don't I looked up on the cygwin installer, they should be correctly installed, just some additional libs or something that arent executables themselves). I did the EXPORT=... stuff and all, aswell.

Also, sorry for creating yet another psptoolchain-build-error thread, but I couldn't find anything fitting my case ;(

After a couple of hours I always get the following error. Any ideas?

Code: Select all

make[5]: psp-ar: Command not found
make[5]: *** [lib.a] Error 127
make[5]: Leaving directory `/home/Janus/psp/psp/newlib/libc/argz'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/Janus/psp/psp/newlib/libc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Janus/psp/psp/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Janus/psp/psp/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/home/Janus/psp'
make: *** [all] Error 2
../scripts/004-newlib-1.16.0.sh: Failed.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Re: psptoolchain build / cygwin

Post by Wally »

Janus wrote:

Code: Select all

make[5]: psp-ar: Command not found
you haven't set up your paths correctly.
Janus
Posts: 7
Joined: Tue Dec 16, 2008 8:53 pm

Post by Janus »

could you be a bit more specific? what did I miss? and what is psp-ar exactly?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

psp-ar is the assembler, it is build during the binutils step

Is there a space in your cygwin username?
Janus
Posts: 7
Joined: Tue Dec 16, 2008 8:53 pm

Post by Janus »

No, there isn't. No special chars or anything either
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Code: Select all

$ which psp-as
/usr/local/pspdev/bin/psp-as
For whatever reason, it isn't able to find that. Generally this means you haven't added /usr/local/pspdev/bin to your path. Are you using sudo to build the toolchain? Does cygwin even have sudo?
Janus
Posts: 7
Joined: Tue Dec 16, 2008 8:53 pm

Post by Janus »

I don't think cygwin has sudo. I'm just executing the .sh
I've added /usr/local/pspdev/bin to the PATH in /etc/profile manually, now, aswell as windows' PATH var, since it's pulling that on execution of the bash. Don't ask me why I haven't done that before...
Trying to build, will report progress once known :)
Janus
Posts: 7
Joined: Tue Dec 16, 2008 8:53 pm

Post by Janus »

This time, I'm getting:

Code: Select all

remotejoy.c:27:28: linux/joystick.h: No such file or directory
remotejoy.c: In function `get_joyinfo':
remotejoy.c:322: warning: implicit declaration of function `ioctl'
remotejoy.c:322: warning: implicit declaration of function `JSIOCGNAME'
remotejoy.c:328: error: `JSIOCGVERSION' undeclared (first use in this function)
remotejoy.c:328: error: (Each undeclared identifier is reported only once
remotejoy.c:328: error: for each function it appears in.)
remotejoy.c:334: error: `JSIOCGAXES' undeclared (first use in this function)
remotejoy.c:340: error: `JSIOCGBUTTONS' undeclared (first use in this function)
remotejoy.c: At top level:
remotejoy.c:465: warning: "struct js_event" declared inside parameter list
remotejoy.c:465: warning: its scope is only this definition or declaration, which is probably not what you want
remotejoy.c: In function `read_event':
remotejoy.c:471: error: invalid application of `sizeof' to incomplete type `js_event'
remotejoy.c:485: error: dereferencing pointer to incomplete type
remotejoy.c:485: error: `JS_EVENT_INIT' undeclared (first use in this function)
remotejoy.c:490: error: dereferencing pointer to incomplete type
remotejoy.c: In function `make_mapfile':
remotejoy.c:502: error: storage size of 'joydata' isn't known
remotejoy.c:539: error: `JS_EVENT_AXIS' undeclared (first use in this function)
remotejoy.c:552: error: `JS_EVENT_BUTTON' undeclared (first use in this function)
remotejoy.c:502: warning: unused variable `joydata'
remotejoy.c: In function `mainloop':
remotejoy.c:631: error: storage size of 'joydata' isn't known
remotejoy.c:682: error: `JS_EVENT_INIT' undeclared (first use in this function)
remotejoy.c:684: error: `JS_EVENT_BUTTON' undeclared (first use in this function)
remotejoy.c:710: error: `JS_EVENT_AXIS' undeclared (first use in this function)
remotejoy.c:631: warning: unused variable `joydata'
make[1]: *** [remotejoy.o] Error 1
make[1]: Leaving directory `/home/Janus/psptoolchain/build/psplinkusb/tools/remotejoy/pc'
make: *** [all] Error 2
../scripts/009-psplinkusb.sh: Failed.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Did you install SDL from the SVN for PSP and for PC?
Janus
Posts: 7
Joined: Tue Dec 16, 2008 8:53 pm

Post by Janus »

I assume I didn't. I just installed anything that might be necessary from the Cygwin Installer, set the PATH vars and hit ./toolchain.sh
Post Reply