A strange problem when compile gcc 4.1.0

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
allenray
Posts: 4
Joined: Mon Oct 15, 2007 3:55 pm

A strange problem when compile gcc 4.1.0

Post by allenray »

Hello!
I ran the automatic toolchain compile, toolchain.sh, right now. But when compiling gcc-stage1, the following errors occured.

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
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/alloc-pool.c -o alloc-pool.o
/usr/local/pspdev/bin/psp-as: unrecognized option `-Qy'
make[2]: *** [pointer-set.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/local/pspdev/bin/psp-as: unrecognized option `-Qy'
make[2]: *** [alloc-pool.o] Error 1
make[2]: Leaving directory `/psptoolchain/build/gcc-4.1.0/build-psp/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/psptoolchain/build/gcc-4.1.0/build-psp'
make: *** [all] Error 2
../scripts/002-gcc-4.1.0-stage1.sh: Failed.

Can anyone help me to fix it?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Update GCC on your machine. that should solve that problem
allenray
Posts: 4
Joined: Mon Oct 15, 2007 3:55 pm

Post by allenray »

But my gcc version is 4.1.2 which is later than gcc 4.1.0. I use ubuntu 7.01. And the prompt /usr/local/pspdev/bin/psp-as: unrecognized option `-Qy' means psp-as doesn't recognize option '-Qy'.
allenray
Posts: 4
Joined: Mon Oct 15, 2007 3:55 pm

Post by allenray »

Is there anybody can help me with it?
allenray
Posts: 4
Joined: Mon Oct 15, 2007 3:55 pm

Post by allenray »

Is there anybody building toolchian in Ubuntu and met this problem. Please tell me how to fix it. Thank you very much!
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

I've built the toolchain in Xubuntu 7.04 without a problem. Other than making sure you have all the dependencies, there shouldn't be any problem.
laichung
Posts: 123
Joined: Fri May 06, 2005 2:02 pm

Post by laichung »

use SVN to get the latest toolchain~~

the latest version is Rev 2320 - 2007-10-01 03:03:50 +1000 (Mon, 01 Oct 2007)

I'm using ubuntu 7.10 rc and rebuild the toolchain almost ten times these few days, no problem at all.

allenray wrote:Is there anybody building toolchian in Ubuntu and met this problem. Please tell me how to fix it. Thank you very much!
Post Reply