For those of you who are looking to run GCC on the N900 here is a quick guide for packages to install. I am using the latest version of maemo, (fremantle-1.3).
First you are going to have to download the following packages on your computer. Links are provided to the repository directory, or if you prefer I will list a direct links to the most current packages:
binutils – http://repository.maemo.org/pool/fremantle/free/b/binutils/ – Latest: http://repository.maemo.org/pool/fremantle/free/b/binutils/binutils-dev_2.18.50.20070820-4+0m5_armel.deb
libgcc1 – http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/ – Latest: http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/libgcc1_4.2.1-4maemo12+0m5_armel.deb
libgomp -http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/ – Latest: http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/libgomp1_4.2.1-4maemo12+0m5_armel.deb
c++ – http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/ – Latest: http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/cpp-4.2_4.2.1-4maemo12+0m5_armel.deb
gcc-4.2-base – http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/ – Latest: http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/gcc-4.2-base_4.2.1-4maemo12+0m5_armel.deb
gcc-4.2 -http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/ – Latest: http://repository.maemo.org/pool/fremantle/free/g/gcc-4.2/gcc-4.2_4.2.1-4maemo12+0m5_armel.deb
make – http://repository.maemo.org/pool/fremantle/free/m/make/ – Latest: http://repository.maemo.org/pool/fremantle/free/m/make/make_3.80-9osso_armel.deb
Plug your phone into your computer and select Mass Storage Mode.
Copy all the files into the MyDocs folder.
Now unmount the drive ( make sure all the files have copied ), and type in the following:
cd ~/MyDocs
dpkg -i *armel.deb
This will install all the packages.
Now to compile a c program you can use the application: gcc-4.2.
You can also use make files to build projects. Many c Makefiles are formatted with a CC variable defined:
CC=gcc
You replace the previous line with the following to allow the makefile to run on your system:
CC=gcc-4.2
If you have any questions please leave a comment and I will try to respond.
Update: I was able to successfully compile Marcan’s PS3 Firmware version 3.41 exploit using my N900. I compiled the ps3pwn part of the exploit and it ran well on my n900. I was not able to cross compile Stage 1 and Stage 2 binaries for the cell but they are available for download.