public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [Fwd: Cross Compile to a mips r3000 processor (playstation)]
@ 2000-08-10 22:39 Kai Ruottu
  0 siblings, 0 replies; only message in thread
From: Kai Ruottu @ 2000-08-10 22:39 UTC (permalink / raw)
  To: crossgcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2779 bytes --]

Here comes a message I was asked to forward...


To : karuottu at freenet dot hut dot fi
Subject : Re: Cross Compile to a mips r3000 processor (playstation)
From : Rodrigo Hernández <rodrigoh at y2knetcafe dot com>
Date : Wed, 09 Aug 2000 10:36:05 -0400
References : < 200008080241448.SM00261@m2w013.mail2web.com > < 398FE56D.11864F80@luukku.com >

Would you mind forwarding this message for me to the Cygnus List?
seems like my SMTP service provider is banned from it for someone spaming
Thank you.

I got mine working compiling like this:

binutils:
./configure --target=mipsel-psx-ecoff --disable-nls
make
make install

Gcc:
./configure --target=mipsel-psx-ecoff --disable-nls --with-gnu-as
--with-gnu-ld
make "C C++"
make install

I had to create an /include directory under the new
/usr/bin/mipsel-psx-ecoff after building and
installing binutils and put 2 empty files in it, stdlib.h and unistd.h I

think,
making the Gcc package I got into an error I could never find out what
it
really was, but if you neglect
it and install, it still works, of couse this will output ecoff "Yaroze"

exe's so you have to "eco2exe"
them in order to convert them to PSX format, which is not a GCC native
output format (you might have to
write a linking script if you want to add that feature or just upload
your
ecoff to the playstation,
caetla supports it, but I get weird results doing that, like colors look

inverted, like a negative of a
picture)
also it has the big disadvantage that GCC will not call LD for you, in
other words something like

mipsel-psx-ecoff-gcc hello.c -o hello.psx

will not work but

mipsel-psx-ecoff-gcc -c hello.c
mipsel-psx-ecoff-ld hello.o -o hello.psx

will work, I want to fix all this, if someone knows how to, please help,
I
believe it is because the
libgcca or libc.a or all of those fail to compile, how do I prevent Gcc
to
link against those?

also you NEED to build at least a syscall library, (there is some source

around from the NOT-YAROZE site)
because this library replaces most of the standard GCC ones.

the other option is checking http://psxdev.de , getting the patches for
the
source, apply em and compile,
or just download the mandrake RPMs, the site has just been put back on,
so
I dont know which version of
GCC is Daniel Balster Using this time, back when I was startting to
compile
a GCC for linux cross PSX he
was using egcs 1.12 or something like that, and I wanted to compile GCC
2.95 so the patches werent much
help although they gave me a clue, also if you use the patches, I
believe
you just do a --target=sony-psx
on your config script line.


"s382040@popserver.tue.nl" wrote:

> Hi all,
>
> Currently I am trying to make a crosscompiler from linux to
playstation.
Anybody got some experience?
>
> Ardjan Dommisse.







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-10 22:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-10 22:39 [Fwd: Cross Compile to a mips r3000 processor (playstation)] Kai Ruottu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).