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 

[PSP] toolchain and gcc

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> Patch Submissions
View previous topic :: View next topic  
Author Message
xantares



Joined: 30 Dec 2008
Posts: 16

PostPosted: Fri Oct 09, 2009 10:47 pm    Post subject: [PSP] toolchain and gcc Reply with quote

Hi,

The toolchain-sudo.sh installation defaults gcc 4.2 as compiler.
I think this behaviour is obsolete as the toolchain builds fine under ubuntu with it's default gcc 4.3, and even with fedora's gcc 4.4
Also, this version of gcc tends not to be packaged as newer versions of gcc get released.

To me, this should be removed :
Code:
 ## Temporary workaround for gcc.
 export CC=gcc-4.2


xantares
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sat Oct 10, 2009 3:57 pm    Post subject: Reply with quote

There are bugs in the toolchain. When it is compiled with GCC 4.3 or newer, these bugs cause crashes at runtime.
Back to top
View user's profile Send private message
xantares



Joined: 30 Dec 2008
Posts: 16

PostPosted: Wed Oct 21, 2009 11:24 pm    Post subject: Reply with quote

Hi,

I see 'CC=gcc-4.2' was removed from the install script
so what'sup ? does compiling with gcc>4.2 fully works now ?
I didn't notice any runtime error with fedora and 4.4, although i only use very few, basic stuff, and a little sdl.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Oct 22, 2009 4:36 am    Post subject: Reply with quote

Yep, the bug should be fixed by http://forums.ps2dev.org/viewtopic.php?t=12528
and gcc > 4.2 should be OK. Let me know if you run into any problems.

Note that gcc > 4.2 was always OK buffer overflow checks aren't enabled (Ubuntu and OSX at least seem to enable them by default).
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 -> Patch Submissions 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