Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hplabs!hpcc05!hpbbn!hpgnd!hppcmart!martin From: martin@hppcmart.HP.COM (Martin Croome) Newsgroups: comp.sources.games.bugs Subject: Re: GCC on SCO UNIX was Re: Nethack on SCO UNIX Message-ID: <6370003@hppcmart.HP.COM> Date: 4 Oct 90 09:25:23 GMT References: <89@unigold.UUCP> Organization: Hewlett-Packard, Grenoble PC Div., France Lines: 43 tim@delluk.uucp (Tim Wright) writes... > In <6370002@hppcmart.HP.COM> martin@hppcmart.HP.COM (Martin Croome) writes: > > >in article libove@libove.det.dec.com (Jay Libove) writes: > >>Which compiler are you using? Have you tried the > >>other one? I vaguely recall that I compiled it with rcc -UM_UNIX -DM_XENIX. > > >Firstly, thank you to everyone who has replied. I am using GCC and I'm still > >having the problem. I sucessfully compiled the source I have for MS-DOS (the > >overlay version). My only ideas are either a compiler bug or a library bug. > > >The only problem I came across when compiling the source was a clash with the > >obj type in sys/types.h. I commentted this out. Somehow the save file is just > >not in the format that the restore expects to find. What am I doing wrong! > > >Does someone remember the exact sequence of steps they went through to get it > >to compile with GCC? > > I thought I responded to this one once - did it not get out ?? > If you compile nethack3.0 on a 386 with gcc you *MUST* turn off > optimisation on the file containing the save/restore functions. I did > not look into why this is, looks like an obscure gcc bug. I might take > a look if/when I get time ! Sorry Tim, I don't have optimisation switched on at all. I decided that it might be a problem with that and got rid of it. > > Tim > -- > Tim Wright, Dell Computer Corp. (UK) | Email address > Dell Computer Corp. (UK), Bracknell | Domain: tim@dell.co.uk > Tel: +44-344-860456 | Uucp: ...!ukc!delluk!tim > "What's the problem? You've got an IQ of six thousand, haven't you?" > ---------- ------------------------------------------------------------------------------- Martin CROOME !'s - hplabs!hpgnd!hppcmart!martin Hewlett Packard @'s - martin@hppcmart.grenoble.hp.com Grenoble Personal Computer Division HPDesk - Martin CROOME / HP6300/K1 Technical Mktg - Online Support or martin_croome@hp6300.desk.hp.com -------------------------------------------------------------------------------