The above video goes away if you are a member and logged in, so log in now!
|
| |
Would you like to get all the new info from PSX-Scene in your email each day?
| |
|
-
#1
Upgrading Linux GCC on PS2 Linux
Upgrading Linux GCC on PS2 Linux –
07-24-2011,03:26 AM
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.
-
-
07-25-2011,03:22 AM
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
-
07-25-2011,03:58 AM
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 04:29 AM.
-
07-25-2011,05:18 PM
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".
-
07-27-2011,06:46 AM
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
>as -v = 2.9-33-990721 (mipsEEel-linux) using BDF version 2.0-ee-990721
I downloaded the src.rpm for the binutils
>rpm --rebuild binutils.src.rpm
>rpm -i binutils.rpm --replacefiles
After upgrading binutils I tried to compile a simple c++ hello world program
> g++ -o fooWithBinutils2_13 foo.cpp -v
The error was
/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 full output here
The output shows that the new version of as is being used
as -v -mwarn-short-loop -mcpu=r5900 -KPIC -mips2 -msingle-float -o /tmp/ccJpc4xp.o /tmp/ccQhpgC2.s
GNU assembler version 2.13.2.1 (mipsEEel-linux) using BFD version 2.13.2.1
Interestingly I can compile the file without link ok.
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 11:23 AM.
-
07-27-2011,02:23 PM
I think you need to use parameter "-mips2" or "-mips3" for g++. One of the parameters should work.
-
07-27-2011,03:44 PM
tried those
-mips2 gives the same error, -mips3 different errors
"Error: illegal operands `lui'"
How would these updates be applied normally?
-
07-28-2011,04:39 PM
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:
http://kernelloader.cvs.sourceforge....stic/?view=tar
This is a self contained program which needs no libraries. This will prove that the linker is working and the libraries are incompatible.
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|