mrhaboobi wrote:Hey all,
Im wondering if anyone has attempted to update the sony tools to work correctly using the latest version of gcc? From memory the sources are pretty old version of GCC (2.7 or 2.8 from memory ), compiled using DJGPP so that they work under windows and not requiring Cygwin or anything else. id be keen to know if anyone has gotten the tools to recompile correctly, as ive tried a few times, i have patch files from the japanese web site, but again ive had little luck getting anything going.. Would be great is someone could get a new build up..
So I thought I would go through the document by Christian Bauer:
http://www.cebix.net/ (attached)
This is my first time compiling a compiler, but his docs and
others more modern are pretty good.. good enough to compile the binutils.
I'm using the latest Mint linux 17.3 for a quick test, but I need it for windows.
Requires:
apt-get install Texinfo
apt-get install g++ make gawk
apt-get install libmpc-dev
apt-get install libc-dev-bin
apt-get install libc-dev
export PATH=/usr/local/ target /bin:$PATH
I'm using the 2nd latest version of binutils/gcc as the old 2001 don't compile.
My gcc config, runs with no errors/warnings:
../gcc-5.2.0/configure --prefix=/usr/local --target=mipsel-unknown-ecoff --with-gnu-as --with-gnu-ld --disable-nls --disable-multilib --enable-languages=c --build=i686-linux-gnu
But I'm stuck at the compiling gcc:
*** Configuration mipsel-unknown-ecoff not supported
From google'ing I guess that configuration has been dropped?
I would guess the Net Yaroze toolchain would be the same as compiling with the PSY-Q libs? just different library right?
Could be different due to the dynamic linking of the yaroze lib in PS ram?
elf = PSY-Q
ecoff = Net yaroze
update:
https://gcc.gnu.org/install/specific.html#mips-x-x
So, as a test I used mipsel-unknow-elf, which is supported and looks like its working....
update:
Looks like it compiled as expected, but couldn't find the /usr/local/mipsel-unknown-elf/lib etc, because I did that using the ecoff.
checking for mipsel-unknown-elf-ar... mipsel-unknown-elf-ar
checking for mipsel-unknown-elf-lipo... mipsel-unknown-elf-lipo
checking for mipsel-unknown-elf-nm... /home/ny/NY/build-gcc/./gcc/nm
checking for mipsel-unknown-elf-ranlib... mipsel-unknown-elf-ranlib
checking for mipsel-unknown-elf-strip... mipsel-unknown-elf-strip
checking whether ln -s works... yes
checking for mipsel-unknown-elf-gcc... /home/ny/NY/build-gcc/./gcc/xgcc -B/home/ny/NY/build-gcc/./gcc/ -B/usr/local/mipsel-unknown-elf/bin/ -B/usr/local/mipsel-unknown-elf/lib/ -isystem /usr/local/mipsel-unknown-elf/include -isystem /usr/local/mipsel-unknown-elf/sys-include
checking for suffix of object files... configure: error: in `/home/ny/NY/build-gcc/mipsel-unknown-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/home/ny/NY/build-gcc'
make: *** [all] Error 2
ECOFF info:
http://web.mit.edu/rhel-doc/3/rhel-as-e ... bject.html
http://crosstool-ng.org/#status also doesn't have ecoff
Kinda close:
https://sourceware.org/ml/crossgcc/2003 ... 00110.html
old patch
https://www.niksula.hut.fi/~buenos/cros ... r-old.html
Someone else trying to do it
http://lukasz.dk/mirror/forums.ps2dev.o ... ml?t=11275
Going to try and build the older versions, with C errors
So, I guess this is the process:
Compile an old 1999-2000 toolchain; then with that,
Compile the mips-ecoff NY toolchain
[youtube]
http://www.youtube.com/watch?v=fCi-fytEQO8[/youtube]
links:
https://groups.yahoo.com/neo/groups/psx ... sages/4791
https://sourceware.org/ml/crossgcc/1999 ... 00187.html
https://github.com/andrewwutw/build-djgpp
https://groups.google.com/forum/#!topic ... U9swPq16zk
Regarding the pdf doc,
I've downloaded RH 6 (from 2000).
See if it was/is that easy, except siocons is pure dos hackery... nope doesn't start on virtualbox
I've emailed of few people that might help also.. but
I have a copy of the official NY gcc, gdb and siocons which is the real issue that the NY is stuck in win98.
It's build with
DJGPP, it has the configurations already set.
I downloaded the v2 of gcc, make, binutils etc, but it doesn't compile
also, I've found a DJGPP ISO
https://archive.org/download/DJGPP_Deve ... ugust_1998
If anyone want the sources, PM me, happy to share as it's gnu.
I can't live like this!
I can't! Please no I can't! I can't! Help me, somebody please, help me!
Mother where are ya? Help me, mother, I'm having a nightmare and I can't wake up