🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #161

strange compiler bug

#161
From: Paul de Bra
Date: Tue, 10 Apr 1990 13:30
26 lines
1333 bytes
When compiling metafont on a 386, using the AT&T (development system 4.1.6)
c-compiler, I get bogus errors like this:

"mf2.c", line 1811: illegal character: 043 (octal)
"mf2.c", line 1811: cannot recover from earlier errors: goodbye!

"mf4.c", line 1362: illegal character: 043 (octal)
"mf4.c", line 1362: cannot recover from earlier errors: goodbye!

The commands for compiling each file look like:
cc -O -I.. -c mf2.c

I compiled the stuff with gcc without getting any errors.
Also, when I say

cc -P -I.. mf2.c; cc -O -I.. -c mf2.i

I get no errors, so just by splitting the compilation in 2 supposedly
equivalent parts the errors go away.

Has anyone seen this before?
(Please don't tell me I should use gcc instead. I want to try the X11 stuff
and the gnu utils, using gas and gnu-ld, don't like the shared libraries.)

Paul.
(debra@research.att.com)
Technical Details
Message-ID: <1064@tuewsd.lso.win.tue.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!tuegate.tue.nl!tuewsd!wsinpdb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!tuegate.tue.nl!tuewsd!wsinpdb
From: wsinpdb@lso.win.tue.nl (Paul de Bra)
Newsgroups: comp.bugs.sys5,comp.sys.att
Subject: strange compiler bug
Keywords: compiler, i386
Message-ID: <1064@tuewsd.lso.win.tue.nl>
Date: 10 Apr 90 13:30:11 GMT
Sender: wsinpdb@lso.win.tue.nl (Paul de Bra)
Organization: Eindhoven University of Technology, The Netherlands
Lines: 26