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 

problem compiling psptoolchain (unrecognized option `-Qy')

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



Joined: 06 Jul 2008
Posts: 3

PostPosted: Sun Jul 06, 2008 2:06 pm    Post subject: problem compiling psptoolchain (unrecognized option `-Qy') Reply with quote

Hi,

I did a checkout of the toolchain with

svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain

set my PSPDEV env variable to /usr/local/pspdev and setup my path.
I did a ./toolchain.sh

it grabbed and unpacked the binutils and gcc...and it fails while building with the following message:

gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include ../../gcc/pointer-set.c -o pointer-set.o
/usr/local/pspdev/bin/psp-as: unrecognized option `-Qy'
make[2]: *** [pointer-set.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/flynnt/trees/psptoolchain/build/gcc-4.1.0/build-psp/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/flynnt/trees/psptoolchain/build/gcc-4.1.0/build-psp'
make: *** [all] Error 2
../scripts/002-gcc-4.1.0-stage1.sh: Failed.
[root@localhost psptoolchain]#

anyone know what's wrong?
Back to top
View user's profile Send private message
flynnt



Joined: 06 Jul 2008
Posts: 3

PostPosted: Sun Jul 06, 2008 7:41 pm    Post subject: Reply with quote

ok, i think i understand what the problem is, but am not quite sure the best way to fix it...

The problem is that I did a 'yum update all' a little while back and now my gcc version is 4.1.1 and my binutils is 2.16.91. The psp binutils is 2.16.1.

I tried hacking as.c in gas/ to take and ignore "-Qy' (since according to the 'as --help' of my binutils, it just ignores -Qy anyway) and got a bunch of other assembler errors complaining about unrecognized opcodes.

I tried using binutils-2.17 for the psp, but the psp patch fails.

I'm not quite sure how to downgrade my compiler back from 4.1.1 to 4.1.0. I think that's the only thing I haven't tried.
Back to top
View user's profile Send private message
Dark_Sabre



Joined: 05 Jul 2008
Posts: 3

PostPosted: Sun Jul 06, 2008 8:41 pm    Post subject: Reply with quote

My best idea is reinstall reinstall reinstall. thats what got psptoolchain going for me... as well as pirata nervo's cygwin install tut.
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Jul 07, 2008 3:02 am    Post subject: Reply with quote

Dark_Sabre wrote:
My best idea is reinstall reinstall reinstall. thats what got psptoolchain going for me... as well as pirata nervo's cygwin install tut.


He's clearly using linux. Notice the "yum update all"? That's a redhat-derived distro - maybe Mandriva. Lot's of folks report being unable to use the toolchain in Mandriva.

@flynnt - the gcc in linux doesn't matter that much. 4.0 - 4.1 - 4.2 - 4.3... any of them can be used to build the toolchain. Where you see the most trouble with the toolchain is the automake/autoconf version. Every new update to that package seems to break the toolchain. Don't bother reverting EVERYTHING, just go back to an older version of autoconf and maybe automake.
Back to top
View user's profile Send private message AIM Address
treehunter



Joined: 31 Mar 2008
Posts: 3

PostPosted: Tue Jul 08, 2008 8:18 am    Post subject: The Fix (i think) Reply with quote

I've been having similar issues, just switching automake to 2.61 and autoconf to 1.9 you're set.
Back to top
View user's profile Send private message
flynnt



Joined: 06 Jul 2008
Posts: 3

PostPosted: Tue Jul 08, 2008 8:51 am    Post subject: Reply with quote

ah, those version numbers are critical. I'll have to give that a try when I get back home. Thanks!
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 -> 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