forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hints on compiling using a gcc-3.x toolchain.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Mar 12, 2004 7:12 pm    Post subject: Hints on compiling using a gcc-3.x toolchain. Reply with quote

A few things have changed, but not much. Here's some hints:

1) If you get an error about -mcpu, just change it to -march.

2) Using -march seems to automatically specify a -mips level. Delete the offending -mips.

3) If you get errors about 'puts', add a -fno-builtin to your cflags.

I'm sure someone is going to come along and comment on how wrong I am and there's a better way to do it, to which I respond:

Why am I writing this message instead of you, hmm?
Back to top
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Fri Mar 12, 2004 7:51 pm    Post subject: Reply with quote

Hehe :-)

As for the -fno-builtin, maybe you would rather want to disable specific functions, like printf which will use puts which doesn't exist in the iop part. Depends on the amount of builtins to disable.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Mar 13, 2004 1:15 am    Post subject: Re: Hints on compiling using a gcc-3.x toolchain. Reply with quote

ooPo wrote:
A few things have changed, but not much. Here's some hints:

1) If you get an error about -mcpu, just change it to -march.

2) Using -march seems to automatically specify a -mips level. Delete the offending -mips.

3) If you get errors about 'puts', add a -fno-builtin to your cflags.

I'm sure someone is going to come along and comment on how wrong I am and there's a better way to do it, to which I respond:

Why am I writing this message instead of you, hmm?


Doing a blanket -fno-builtin IMO is a bad idea. To fix puts() add -fno-builtin-printf. See the iop makefiles in ps2drv.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group