🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1438

Fatal signal 10 with ObjC.

#1438
From: Eric M. Nelson
Date: Fri, 20 Nov 1992 20:14
31 lines
1768 bytes
  The following simple program fails to compile with gcc 2.3.1 on a NeXT  
running NeXTstep 3.0. Note that <stdarg.h> is required by <objc/Object.h>,  
but <objc/Object.h> forgets to include it.

#include <stdarg.h>
#include <objc/Object.h>

int main(){
  id anObject;
  anObject=[Object new];
  }

The compilation yields,
rees> gcc -v -c -I ~/Sources/gnu/gcc-2.3.1 test.m
Reading specs from /usr/local/lib/gcc-lib/next/2.3.1/specs
gcc version 2.3.1
 /usr/local/lib/gcc-lib/next/2.3.1/cpp -lang-objc -v -I  
/Net/apnext1/Users/enelson/Sources/gnu/gcc-2.3.1 -undef -D__OBJC__  
-D__GNUC__=2 -Dmc68000 -Dm68k -DNeXT -Dunix -D__MACH__  
-D__ARCHITECTURE__="m68k" -D__mc68000__ -D__m68k__ -D__NeXT__ -D__unix__  
-D__MACH__ -D__ARCHITECTURE__="m68k" -D__mc68000 -D__m68k -D__NeXT  
-D__unix -D__MACH__ -D__ARCHITECTURE__="m68k" test.m /usr/tmp/cc026776.i
GNU CPP version 2.3.1 (68k, MIT syntax)
 /usr/local/lib/gcc-lib/next/2.3.1/cc1obj /usr/tmp/cc026776.i -quiet  
-dumpbase test.m -version -lang-objc -o /usr/tmp/cc026776.s
GNU C version 2.3.1 (68k, MIT syntax) compiled by GNU C version 2.3.1.
gcc: Internal compiler error: program cc1obj got fatal signal 10

Has anyone had better luck with ObjC than this? If so, please let
me know. Thanks.
-Eric
Technical Details
Message-ID: <By16vK.oK@unixhub.SLAC.Stanford.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!apnext1.slac.stanford.edu!enelson

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!apnext1.slac.stanford.edu!enelson
From: enelson@apnext1.slac.stanford.edu (Eric M. Nelson)
Subject: Fatal signal 10 with ObjC.
Message-ID: <By16vK.oK@unixhub.SLAC.Stanford.EDU>
Sender: gnulists@ai.mit.edu
Reply-To: enelson@apnext1.slac.stanford.edu (Eric M. Nelson)
Organization: Stanford Linear Accelerator Center
Distribution: gnu
Date: Fri, 20 Nov 1992 20:14:07 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 32