From: Jeff Sullivan
Subject: KCL for Suns -- earith.c can't compile!
Date: 
Message-ID: <8844@venera.isi.edu>
I'm trying to bring up KCL on a SUN 3/60 with gcc.  When I try to
compile the earith.c file (in the o/makefile), I get a bunch of
assembler errors, then it barfs.  I am not an assembler hacker, and am
only barely stable in UNIX C.  Does anyone know what miught the
problem be?  Here is the error out:

% gcc -fwritable-strings -DVOL=volatile -I/gen/jas/kcl/akcl/o -c -O -I../h ../c/earith.c
Assembler:
"/tmp/cc009912.s", line 9: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 11: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 12: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 13: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 18: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 19: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 20: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 21: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 22: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 30: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 34: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 35: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 36: Illegal character mapped: 52, char read:(octal) 100
"/tmp/cc009912.s", line 9: Unrecognized instruction or directive
"/tmp/cc009912.s", line 11: Too few arguments
"/tmp/cc009912.s", line 11: Unrecognized instruction or directive
"/tmp/cc009912.s", line 12: "mulul" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 13: "addl" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 14: "addxl" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 15: "lsll" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 16: "roxll" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 17: "lsrl" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 18: Too few arguments
"/tmp/cc009912.s", line 18: Unrecognized instruction or directive
"/tmp/cc009912.s", line 19: Unrecognized instruction or directive
"/tmp/cc009912.s", line 20: Too few arguments
"/tmp/cc009912.s", line 20: Unrecognized instruction or directive
"/tmp/cc009912.s", line 21: Unrecognized instruction or directive
"/tmp/cc009912.s", line 22: Too few arguments
"/tmp/cc009912.s", line 22: Unrecognized instruction or directive
"/tmp/cc009912.s", line 30: "moveml" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 31: "lsll" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 32: "lsrl" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 33: "roxrl" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 34: "divul" is not followed by a ':' for a label definition
"/tmp/cc009912.s", line 35: Unrecognized instruction or directive
"/tmp/cc009912.s", line 36: Unrecognized instruction or directive


Any help most appreciated.
P.S.  This is the akcl (Austin KCL) distribution.





--
--------------------------------------------------------------------------
Jeffrey A. Sullivan		| Senior Systems Programmer
···@venera.isi.edu		| Information Sciences Institute
···@isi.edu   DELPHI: JSULLIVAN	| University of Southern California
From: James da Silva
Subject: Re: KCL for Suns -- earith.c can't compile!
Date: 
Message-ID: <18420@mimsy.UUCP>
In article <····@venera.isi.edu> ···@ISI.EDU (Jeff Sullivan) writes:
>I'm trying to bring up KCL on a SUN 3/60 with gcc.  When I try to
>compile the earith.c file (in the o/makefile), I get a bunch of
>assembler errors, then it barfs.  I am not an assembler hacker, and
>am only barely stable in UNIX C.  Does anyone know what miught the
>problem be?  

Jeff,

GCC has its own syntax for asm statements.  The asm() statements in
earith.c and bitop.c are meant to be simply copied to the asm output
of the compiler.  My guess is that GCC is mangling them.

Compiling those two files with Sun's cc should work, though there may
be other problems (I haven't tried compiling KCL with GCC).

Jaime
...........................................................................
: domain: ···@mimsy.umd.edu				     James da Silva
: path:   uunet!mimsy!jds