forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

psptoolchain build / cygwin

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Janus



Joined: 16 Dec 2008
Posts: 7

PostPosted: Tue Dec 16, 2008 9:10 pm    Post subject: psptoolchain build / cygwin Reply with quote

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:
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.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Tue Dec 16, 2008 10:51 pm    Post subject: Re: psptoolchain build / cygwin Reply with quote

Janus wrote:

Code:
make[5]: psp-ar: Command not found


you haven't set up your paths correctly.
Back to top
View user's profile Send private message AIM Address
Janus



Joined: 16 Dec 2008
Posts: 7

PostPosted: Tue Dec 16, 2008 11:03 pm    Post subject: Reply with quote

could you be a bit more specific? what did I miss? and what is psp-ar exactly?
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Dec 17, 2008 2:57 am    Post subject: Reply with quote

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

Is there a space in your cygwin username?
Back to top
View user's profile Send private message Visit poster's website
Janus



Joined: 16 Dec 2008
Posts: 7

PostPosted: Wed Dec 17, 2008 8:32 am    Post subject: Reply with quote

No, there isn't. No special chars or anything either
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Dec 18, 2008 12:06 am    Post subject: Reply with quote

Code:
$ 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?
Back to top
View user's profile Send private message Visit poster's website
Janus



Joined: 16 Dec 2008
Posts: 7

PostPosted: Thu Dec 18, 2008 12:19 am    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
Janus



Joined: 16 Dec 2008
Posts: 7

PostPosted: Thu Dec 18, 2008 12:00 pm    Post subject: Reply with quote

This time, I'm getting:

Code:
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.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Dec 18, 2008 4:18 pm    Post subject: Reply with quote

Did you install SDL from the SVN for PSP and for PC?
Back to top
View user's profile Send private message AIM Address
Janus



Joined: 16 Dec 2008
Posts: 7

PostPosted: Thu Dec 18, 2008 7:42 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group