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 

Help to compile psp gcc 4.3.0 on linux

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Sun Aug 24, 2008 4:33 am    Post subject: Help to compile psp gcc 4.3.0 on linux Reply with quote

Is there a upgrade of the toolchain.sh for linux available
that use the gcc 4.3.0 or gcc 4.3.1 as target cross compiler ?


Last edited by sauron_le_noir on Sun Aug 24, 2008 7:19 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Sun Aug 24, 2008 5:30 am    Post subject: Reply with quote

There's a patch on these forums somewhere to use gcc 4.3.0 with the toolchain, which I used a while back, but I found that my programs ran a tiny bit faster when compiled with 4.1.0.
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Sun Aug 24, 2008 6:36 am    Post subject: Reply with quote

i have downloade gcc 4.3.0 patch with the patch found on the forum
create a psp-build directory
launch this script:
#!/bin/sh

LANGUAGES="c,c++"

CFLAGS="-O2 -fomit-frame-pointer " \
BOOT_CFLAGS="-O2 -fomit-frame-pointer " \
BOOT_CXXFLAGS="-mthreads -fno-omit-frame-pointer -O2" \
BOOT_LDFLAGS=-s \
../configure \
--enable-languages=$LANGUAGES \
--disable-multilib \
--with-gcc --with-gnu-ld --with-gnu-as \
--disable-shared --disable-win32-registry --disable-nls \
--enable-cxx-flags="-G0 --disable-werror" \
--target=psp \
--with-newlib \
--prefix=/usr/local/pspdev \
--with-gmp \
--with-mpfr

the compiler is generated without problem but when he must genereated the libgcc
i've got this error
Checking multilib configuration for libgcc...
mkdir -p -- psp/libgcc
Configuring in psp/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i686-pc-linux-gnu
checking host system type... mipsallegrexel-psp-elf
checking for psp-ar... psp-ar
checking for psp-lipo... psp-lipo
checking for psp-nm... /home/f731/psp-gcc-4.3.0/gcc-4.3.0/build-psp/./gcc/nm
checking for psp-ranlib... psp-ranlib
checking for psp-strip... psp-strip
checking whether ln -s works... yes
checking for psp-gcc... /home/f731/psp-gcc-4.3.0/gcc-4.3.0/build-psp/./gcc/xgcc -B/home/f731/psp-gcc-4.3.0/gcc-4.3.0/build-psp/./gcc/ -B/usr/local/pspdev/psp/bin/ -B/usr/local/pspdev/psp/lib/ -isystem /usr/local/pspdev/psp/include -isystem /usr/local/pspdev/psp/sys-include
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Erreur 1
make[1]: quittant le répertoire « /home/f731/psp-gcc-4.3.0/gcc-4.3.0/build-psp »
make: *** [all] Erreur 2

any ideas
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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