[comp.unix.programmer] ODT C Compiler Problem

bbs@alchemy.UUCP (BBS Administration) (06/05/91)

I just installed v1.0.1 of the development system on my v1.1 ODT machine. I
originally installed the entire development system, but when this problem
occurred, I thought it might "go away" if I removed everything and installed
only the OS portion of it. After installing only the OS portion of the
Dev. System, the problem still persists.

I wrote a test program that simply writes "Hello World" to the screen (we've
all seen this before) just as a test to see if everything was installed
correctly before I transfer over all my source and begin my port from
SCO Xenix 386 to ODT Unix SVR3.2. Well, using either "make test.c" or
"cc test.c" I get the same message:

Compiler error : Floating point exception

That makes it sound as if the compiler (in pass 2 -- I tried "cc -d" for
debugging output and it got to "P2:" and was executing " /lib/386/p2_386"
when this message was printed) is crashing by itself, not because of
incorrect input.

This system is comprised of an Intel i80386 motherboard and a bunch of
other clone hardware. The ODT system itself runs fine including TCP/IP
and NFS and the server upgrade stuff and everything, so I can't
understand why this program doesn't work correctly. If this is a known
problem with the Dev. System release 1.0.1, I'd like to know how to
get an update.

HELP!

-- John

John Donahue, Senior Partner | UUCP: ucrmath!alchemy!{bbs, gumby} | The Future
  Alchemy Software Designs   | INET: {bbs, gumby}@alchemy.UUCP    | Begins Now
-------------------+---------+------------------------------------+-----------
Communique On-line | +1-714-278-0862 {12, 24, 96v32, 19.2k} T2500 | Next Wave:
Information System |    Alchemy Software Designs Support System   | Communique

sef@kithrup.COM (Sean Eric Fagan) (06/05/91)

In article <443@alchemy.UUCP> bbs@alchemy.UUCP (BBS Administration) writes:
>Compiler error : Floating point exception

For just

	main() {
		printf ("Hello, World!\n");
	}

?  It sounds like something's wrong with either your FPU (if you have one),
or your FP emulator.  Make sure you're using the ms emulator (make sure that
/etc/emulator is a link to /etc/emulator.ms).

>If this is a known
>problem with the Dev. System release 1.0.1, I'd like to know how to
>get an update.

Doesn't sound familiar to me, and *that* I *would* be familiar with.

-- 
Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
sef@kithrup.COM  |  I had a bellyache at the time."
-----------------+           -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.

drt@cysog.UUCP (David R. Trinidad) (06/15/91)

1. I noticed that you have Version 1.0.1 .. Version 2.0 is the
latest and greatest and I'm sure that lot's is fixed ..

2. This is the response I got from SCO from an unrealated problem
with Version 1.0.1.

************************************************************************
Organization: 	Cycare Systems 
Internet : 	drt%cysog@hbiso.ma02.bull.com
UUNET:		uunet!hbiso!cysog!drt
Phone:		(602) 224 0555	| FAX: (602) 224 0872
System:		B.O.S. UNIX     |
	 UNIX isn't just an OS  | It's a way of life !!!!!
***********************************************************************