The above video goes away if you are a member and logged in, so log in now!
Upgrading Linux GCC on PS2 Linux
Upgrading Linux GCC on PS2 Linux –
Hi I'm trying to upgrade gcc on the PS2 Linux distro.
I tried to upgrade to GCC3.3.1 but got errors relating to binutils stuff so I upgraded binutils 2.13.2 (I think 2.14 would have worked as well).
know when I try to configure the make file for the GCC I get an error telling me that my CC environment variable isn't a working compiler.
I did export CC="/usr/bin/gcc" just to be sure.
Has anybody experienced this? or know a work around.
Yep I wrote the Stackoverflow article as well. Thanks for those links I'll try them later today really hope this will work 2.95.2 is such a crap compiler
Ok i installed binutils mipsel, and src, dont quite know what todo with the .diff file.
installed the binary gcc, I get error messages for simple hello world program.
5008: Error: illegal operands `mult $2,$2,$3'
5046: Error: illegal operands `mult $2,$2,$3'
this is proberly down to my missed .diff file I guess.
Last edited by Basic; 07-25-2011 at 05:29 AM.
The .diff doesn't fix this. There is still something wrong with the binutils. The assembler "as" should be able to compile a file with the text "mult $2,$2,$3". I think every version of MIPS binutils should be able to do it. You can use "strace -fF" to check which assembler is called. You can use parameter "-save-temps" with gcc to save the assembler files and use it directly with "as".
OK, just to make sure nothing is interfering, I did a clean install of the PS2 linux (this includes the sps2lib stuff)
I upgraded binutils, then tried to compile a simple hello world program.
prior to install
I downloaded the src.rpm for the binutils
>as -v = 2.9-33-990721 (mipsEEel-linux) using BDF version 2.0-ee-990721
After upgrading binutils I tried to compile a simple c++ hello world program
>rpm --rebuild binutils.src.rpm
>rpm -i binutils.rpm --replacefiles
The error was
> g++ -o fooWithBinutils2_13 foo.cpp -v
The full output here
/usr/bin/ld: /tmp/ccJpc4xp.o: ISA mismatch (-mips2) with previous modules (-mips3)
Bad value: failed to merge target specific data of file /tmp/ccJpc4xp.o
The output shows that the new version of as is being used
Interestingly I can compile the file without link ok.
as -v -mwarn-short-loop -mcpu=r5900 -KPIC -mips2 -msingle-float -o /tmp/ccJpc4xp.o /tmp/ccQhpgC2.s
GNU assembler version 220.127.116.11 (mipsEEel-linux) using BFD version 18.104.22.168
full output here
But when I link it
This results in the same error.
full output here
Thanks for your time on this. I feel frustrating close to this.
Last edited by Basic; 07-27-2011 at 12:23 PM.
I think you need to use parameter "-mips2" or "-mips3" for g++. One of the parameters should work.
tried those -mips2 gives the same error, -mips3 different errors
How would these updates be applied normally?
"Error: illegal operands `lui'"
As far as I remember I installed gcc 3 without the new binutils on BlackRhino. I used the packages from deba5er.
I think the binutils are incompatible and you need to recompile all libraries. To prove this, try to compile the following package:
This is a self contained program which needs no libraries. This will prove that the linker is working and the libraries are incompatible.