Page 1 of 1

Lib crt0.o

Posted: Mon Mar 06, 2006 9:21 am
by MrBondBoca
Before a doubt, lets say thanks... I got the toolchain works on cygwin.

To BraveDog to say Build date of his cygwin...
Sat Jul 2 20:30:04 EDT 2005 to looking for in
http://www.fruitbat.org/Cygwin/ and
ftp://www.fruitbat.org/pub/cygwin/circa/index.html
to this version - Thanks

To Lukasz for a Tutorial: How to setup a ps2dev env in cygwin, its great.
I add just a package: Patch - Thanks

To ooPo to say gcc-4.x has problems compiling the gcc-3.2.2 - Thanks

The doubt:

I get the demo Funslower by SoopaDoopa. Did a little modifications to solve the problems that appears in the compilation, and the last one, need to copy crt0.o from the demo to \usr\local\ps2dev\ee\lib\gcc-lib\ee\3.2.2 where has a link with the same name... and got the ELF file.

How do I need to do in source, I think in the makefile, to doesn´t need copy crt0.o?

Posted: Mon Mar 06, 2006 10:14 am
by Drakonite
First off, stuff like funslower is ancient stuff. The examples with ps2sdk, and also the examples with gsKit if you are goint to be using it, are a lot better IMO.

Second... don't quote me on this, but if you add -mno-crt0 and then add the local crt0.o to the linker options, I think it should work... but I could be wrong, so who knows ;)

Posted: Mon Mar 06, 2006 10:25 am
by ooPo
The problem with building gcc4 on a gcc3 system is well known and is something you'd have to talk to GNU about if you want fixed.

Alternatively, you can install gcc3 in addition to your normal host toolchain and use something like 'CC=gcc-3.4 ./toolchain.sh' to compile it. That's what I'm currently doing under ubuntu.