Lib crt0.o

General, off-topic discussion about things of interest to the members of these forums.

Moderator: cheriff

Post Reply
MrBondBoca
Posts: 3
Joined: Wed Mar 01, 2006 12:51 pm
Location: Sampa - Brasil

Lib crt0.o

Post 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?
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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 ;)
Shoot Pixels Not People!
Makeshift Development
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post 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.
Post Reply