Path: chuka.playstation.co.uk!tjs From: tjs@cs.monash.edu.au (Toby Sargeant) Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: That dreaded Linux query again.... Date: 30 Sep 1998 03:24:53 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 40 Message-ID: References: <360AF965.4D35F33B@wyrddreams.demon.co.uk> <360C1CD7.133D3870@wyrddreams.demon.co.uk> <3611904B.A1B031AF@wyrddreams.demon.co.uk> NNTP-Posting-Host: longford.cs.monash.edu.au X-Newsreader: slrn (0.9.4.3 UNIX) On Wed, 30 Sep 1998 02:58:35 +0100, James Tait wrote: >Me again. *8O) > >Toby Sargeant wrote: >> I *think* the reason that james' compiler wasn't working (I think we worked >> it out via email) is that if you don't explicitly specify the exec-prefix >> and prefix when compiling gcc, or these aren't the same as the ones you >> used when you compiled binutils, then the gcc configuration will find the >> normal as|ld etc first. What it actually looks for is >> /prefix/target/bin/whatever, followed by /prefix/bin/whatever, and then >> it probably looks in standard locations. > >I figured out how I got it to call the right versions on as, ld, et al. >Looking through my command history (yes, I actually went to the trouble >of tracing what I did to make it work) I found a command 'pico gcc.c' so >I checked the timestamp of gcc.c against the other files in the >directory and it is newer. I assume I must have changed the command >references by hand, though I don't specifically remember it - I've had >some very late (and sleepless, yes) nights sorting this lot out and >after a while one piece of GNU code begins to look very much like the >rest.... > >Anyway, I still have the problem with the floating point stuff, which is >slightly annoying and a little odd as it works fine in the DOS version. >But I'm off and running again now and I can generate my code from Linux >which is what I have been trying to achieve. So many thanks to Toby and >Toby for both their help and hopefully I'll be posting enquiries of a >more 'game-coding' nature soon. *8OP This is simply because the version you compiled didn't quite get to the stage of compiling floating point emulation support. it should all be in libgcc.a. I don't know whether it's possible to copy the libgcc.a from the psx yaroze compiler, nor whether, once you have, you can actually convince you handbuilt gcc to use it, rather than just generating coprocessor code. I remember seeing stuff about this in the install file. Emulated floating point really sucks anyway, so you'll be much better off learning how to use fixed point math. Toby.