iop compile
iop compile
Hi,
I find problem to compile the IOP module, whatever try to compile the sample \ps2lib-2.1\iop\sample\hello\hello.c. the iop-cc keep on running and seems hang up my PC!!! Somebody help please!!!
I find problem to compile the IOP module, whatever try to compile the sample \ps2lib-2.1\iop\sample\hello\hello.c. the iop-cc keep on running and seems hang up my PC!!! Somebody help please!!!
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
Hi ooPo and blackdroid,
I am using Windows stuff. I try ps2-ee-dvp-iop-tools-win32.exe(http://ps2dev.sourceforge.net/), and ps2DevEnvironment.exe(http://ps2dev.org/) all give me the same result :( However, is there anyway to get a workable bin???
I am using Windows stuff. I try ps2-ee-dvp-iop-tools-win32.exe(http://ps2dev.sourceforge.net/), and ps2DevEnvironment.exe(http://ps2dev.org/) all give me the same result :( However, is there anyway to get a workable bin???
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
The iop-compiler in both those precompiled packages is broken. If you invoke the iop-gcc with the -v option, you'll see that it in turn is invoking components of the native compiler instead of the iop components.
I managed to get a working iop-compiler by following the instructions in the iop-tutorial on ps2dev.org. Unfortunately, if you follow the instructions, the compiler won't be able to create binaries in the .irx-format. The binutils-2.9.1 must be built with the --target=mipsel-scei-irx to be able to create binaries in the .irx-format. Then you'll have the prb that gcc-2.8.1 must be built with --target=mipsel-scei-elfl. I fixed that by modifying configure.tgt in binutils-2.9.1/ld, like this:
find the line:
mips*el-*-elf*) targ_emul=elf32elmip ;;
change it to:
mips*el-*-elf*) targ_emul=mipsirx
targ_extra_emuls=elf32elmip
;;
now you can build the binutils-2.9.1 with --target=mipsel-scei-elfl and it'll be able to create .irx-binaries. Invoke iop-ld with the -V option to verify that it's able to build mipsirx.
There is probably a niftier solution but I've spent way to much time on getting the compilers/environment up already.
I managed to get a working iop-compiler by following the instructions in the iop-tutorial on ps2dev.org. Unfortunately, if you follow the instructions, the compiler won't be able to create binaries in the .irx-format. The binutils-2.9.1 must be built with the --target=mipsel-scei-irx to be able to create binaries in the .irx-format. Then you'll have the prb that gcc-2.8.1 must be built with --target=mipsel-scei-elfl. I fixed that by modifying configure.tgt in binutils-2.9.1/ld, like this:
find the line:
mips*el-*-elf*) targ_emul=elf32elmip ;;
change it to:
mips*el-*-elf*) targ_emul=mipsirx
targ_extra_emuls=elf32elmip
;;
now you can build the binutils-2.9.1 with --target=mipsel-scei-elfl and it'll be able to create .irx-binaries. Invoke iop-ld with the -V option to verify that it's able to build mipsirx.
There is probably a niftier solution but I've spent way to much time on getting the compilers/environment up already.
Welcome to ps2dev. :)
I try to keep a fairly up-to-date tutorial and patches on my site ( http://www.oopo.net/consoledev ) since other tutorials tend to get lost in the sands of time...
I try to keep a fairly up-to-date tutorial and patches on my site ( http://www.oopo.net/consoledev ) since other tutorials tend to get lost in the sands of time...