How do you compile gnu programs?

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

Moderators: cheriff, TyRaNiD

Post Reply
Inferno_Intelligence
Posts: 3
Joined: Fri Aug 12, 2005 8:29 am

How do you compile gnu programs?

Post by Inferno_Intelligence »

Sorry for the double post but figured this would be a better place to ask.
Hi guys, I'm going to work on a project to start porting standard gnu stuff over to the psp. I noticed that there was a version of gcc for psp so I was like "wow, this would be perfect to start porting gnu stuff over!"
Anyway! I was about to compile bash when I realized that it might be a little harder than I had first thought since bash install involves the standard configure, make, make install process.
So, my question is. Has anyone tried to install anything like this that uses a configure make process for the psp? Anyone have any idea what would be required to do this?
I've just assumed that psp-gcc will produce a binary that can run on a psp, if that is the case, maybe it would only require me to change the configure process to use psp-gcc instead of gcc, but I am somehow doubtful that this would actually work seeing as the configure script is generally made to compile something on the architecture the files resides on.
Anyway, I obviously have no experience with compiling something for an architecture other than for the machine doing the compiling, so any help or direction would be appreciated
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

There is no POSIX-compatible development environment for the PSP. You can't just port bash and crap like that over without the libraries that support them. And that's not even getting into why you would want to blithely port POSIX software over to the PSP anyway...
protomech
Posts: 1
Joined: Fri Jul 15, 2005 5:12 am

Post by protomech »

This might have already be answered..

You're going to run into a lot of problems due to incomplete library implementations for the psp .. there's a basic sockets library, but a lot of the POSIX layer stuff will be inoperable.

You can try running the configure script as a cross-compile.. on my machine (winxp + cygwin) it might go something like this..

$ cat > config.site
CC=psp-gcc
CPP=psp-g++
CFLAGS=-I/usr/local/pspdev/psp/include
LDFLAGS=-L/usr/local/pspdev/psp/lib -lpspsdk -lc -lpspuser -lpspkernel
^D
$ export CONFIG_SITE=./config.site
$ ./configure --host=mips-r4000 --build=i686-cygwin --other-various-options-go-here ...

Anyways, I'm slogging through some of this too at the moment.
Post Reply