Article View: gnu.gcc.help
Article #53145Re: compiling under SCO
From: Michael Joosten
Date: Thu, 27 Feb 1992 17:22
Date: Thu, 27 Feb 1992 17:22
41 lines
2620 bytes
2620 bytes
In article <9202261719.AA04217@acds.physik.rwth-aachen.de> kuku@acds.physik.rwth-aachen.de (Christoph Kukulies) writes:
My efforts to get gcc-2.0 working under SCO 3.2 have not yet been honored
with success. Both cc and rcc choke. rcc produces a ./gcc which does
a segmentation violation on compiling libgcc2 when fixundfdi is compiled.
Mmmh, SCO 3.2 ? Well, last time I've tried to compile gcc-1.40 I encountered
quite the same problem: ldexp() in libc.a is broken, at least in ODT 1.0.
Since gcc only uses some fixed values for the exponent (16 and 32), I replaced
it with this 'Two-Minutes-Egg':
/* Braindamaged SCO 3.2 has apparently a broken ldexp -
* whatever argumets you provide it reacts with Floating Exception !
* (mj) cadlab, 8.11.91
*/
double ldexp(x,n)
double x;
int n;
{
if (n>0) {
while (n--) x *= 2;
}
return x;
}
You might add this to config/i386.c, savely guarded with a proper #ifdef for
SCO. Sorry, I can't check now if this is still working because we got rid of
this braindamaged machine (Siemens Nixdorf WX200 under ODT 1.0) and its rotten
and obsolete OS.
Happy compiling ! Michael
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Michael Joosten | Tel. : (+49) (+) 5251-284 120 |
| CADLAB | Fax : (+49) (+) 5251-284 140 |
| Bahnhofstr. 32 | E-Mail: joost@cadlab.de |
| D-4790 Paderborn | ...!uunet!unido!cadlab!joost |
| FRG | Mass mail to: joost@pbinfo.uni-paderborn.de |
|--------------------------------------------------------------------------|
| CADLAB is a cooperation between Uni-GH Paderborn & SNI AG |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID:
<JOOST.92Feb27182243@ori.cadlab.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!unido!pbinfo!joostReferences:
<9202261719.AA04217@acds.physik.rwth-aachen.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f5a7f75255e1941a X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-02-27 11:30:02 PST Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!unido!pbinfo!joost From: joost@cadlab.de (Michael Joosten) Newsgroups: gnu.gcc.help Subject: Re: compiling under SCO Message-ID: <JOOST.92Feb27182243@ori.cadlab.de> Date: 27 Feb 92 17:22:43 GMT References: <9202261719.AA04217@acds.physik.rwth-aachen.de> Sender: news@uni-paderborn.de (News Uni-Paderborn) Distribution: gnu Organization: CADLAB, Paderborn, FRG Lines: 41 In-Reply-To: kuku@acds.physik.rwth-aachen.de's message of Wed, 26 Feb 1992 17:19:22 GMT Nntp-Posting-Host: ori.cadlab.uni-paderborn.de