1) Install this
http://files.getdropbox.com/u/876743/fake-libgcc_1.0_iphoneos-arm.deb
dpkg -i fake-libgcc_1.0_iphoneos-arm.deb
2) apt-get install iphone-gcc
3) Install headers:
Copy these over, which I got from http://www.megaupload.com/?d=55ZNOCKI, and extra to /usr/include
sdk-2.0-headers.tar.gz
I literally just put them in /usr/include/
4) Missing
/usr/lib/libgcc_s.1.dylib
...
wget http://apt.saurik.com/debs/libgcc_4.2-20080410-1-6_iphoneos-arm.deb
5) Hmm:
http://blog.aaronash.com/?p=15
I downloaded this and extracted it as lib, and had to use some funny password.
"aksblog.co.nr"
Then I copied lib/libSystem.dylib to /usr/lib/ on my iPad
... and now gcc seems to work!
6) This isn't needed for some reason: Make it so I can sign my apps:
apt-get install ldid
ldid -S main
Maybe I don't need this only because I'm not making a gui yet.
7) Compiling runs into fork limits a lot, so raise the limit:
William-A-Steins-iPad:~/pari/pari-2.3.5 mobile$ sysctl -w kern.maxprocperuid=64
kern.maxprocperuid: 26
sysctl: kern.maxprocperuid: Operation not permitted
William-A-Steins-iPad:~/pari/pari-2.3.5 mobile$ sudo sysctl -w kern.maxprocperuid=64
Password:
kern.maxprocperuid: 26 -> 64

About Me

I am a professor of mathematics at University of
Washington. In my mathematics research, I use the Birch and
Swinnerton-Dyer conjecture as motivation to explore the
constellation of conjectures and questions about arithmetic invariants of elliptic curves. I do many explicit computations, and started the Sage Mathematical Software project. Currently, I'm working very hard on https://cloud.sagemath.com.