View previous topic :: View next topic |
Author |
Message |
xantares
Joined: 30 Dec 2008 Posts: 16
|
Posted: Fri Oct 09, 2009 10:47 pm Post subject: [PSP] toolchain and gcc |
|
|
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 |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sat Oct 10, 2009 3:57 pm Post subject: |
|
|
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 |
|
|
xantares
Joined: 30 Dec 2008 Posts: 16
|
Posted: Wed Oct 21, 2009 11:24 pm Post subject: |
|
|
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 |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Thu Oct 22, 2009 4:36 am Post subject: |
|
|
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 |
|
|
|