Path: utzoo!utgpu!watmath!watdragon!dvadura From: dvadura@watdragon.waterloo.edu (Dennis Vadura) Newsgroups: comp.sys.apollo Subject: Re: Has anyone seen this bug??? Message-ID: <11483@watdragon.waterloo.edu> Date: 12 Feb 89 18:18:15 GMT References: <11392@watdragon.waterloo.edu> Reply-To: dvadura@watdragon.waterloo.edu (Dennis Vadura) Distribution: world Organization: Computer Science Dept., University of Waterloo Lines: 40 In article <11392@watdragon.waterloo.edu> dvadura@watdragon.waterloo.edu (Dennis Vadura) writes: > >Machine DN3500, SYSTYPE=bsd4.3, COMPILER=/bin/cc, OS=SR10.1 >Trying to compile gcc-1.33, while compiling stmt.c, I get the following: > > Fatal error in /usr/apollo/lib/cc > Status 023 > >Command line used is: > cc -g -O -U__STDC__ -DSHORT_ENUM_BUG -c stmt.c Well, a number of people have suggested various solutions to this problem, thanks to all those that responded, here is the fix. *DON'T mix -g and -O options on the command line* Other suggestions included opening a new DM window/pad, or freeing disk space. Doing it in a new window produced a consistent error, so that wasn't it, and I have apx 170 Megs of free disk space, and if this thing ran out of space with that much free, it would be on it's way to the land of dead workstations. The reason I'm posting this is that you don't always get the error, *some* files get compiled. Almost all sane compilers that I know of don't allow the mixing of -g and -O, and print a warning, that they're using -g only. Lot's of makefiles that I have seen make this assumption when giving flags for debugging versions of programs, so I figure somebody out there could be interested in this. This might also explain my dbx problem with another program. It too was compiled with -g and -O both set, and the result was that it put dbx into a tail spin. -sigh (I hope mkapr takes < 5 min) -dennis -- -------------------------------------------------------------------------------- Dennis Vadura, Computer Science Dept., UUCP,BITNET: dvadura@water University of Waterloo, Waterloo, Ont. EDU,CDN,CSNET: dvadura@waterloo ================================================================================