Thread View: gnu.gcc.bug
2 messages
2 total messages
Started by Eric M. Nelson
Fri, 20 Nov 1992 20:14
Fatal signal 10 with ObjC.
Author: Eric M. Nelson
Date: Fri, 20 Nov 1992 20:14
Date: Fri, 20 Nov 1992 20:14
31 lines
1768 bytes
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
Re: Fatal signal 10 with ObjC.
Author: Adam Fedor
Date: Mon, 23 Nov 1992 20:58
Date: Mon, 23 Nov 1992 20:58
32 lines
1535 bytes
1535 bytes
In article <By16vK.oK@unixhub.SLAC.Stanford.EDU> enelson@apnext1.slac.stanford.edu (Eric M. Nelson) writes:
> 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];
> }
>
I've got gcc-2.3.1 on a VAXstation (vax-dec-ultrix) and this program
compiles nicely, but when I run it, I get the error:
focus:~/src>test
record.h:123: failed assertion `i'
Illegal instruction
P.S. I don't have gdb on my machine, but hope to get it soon and see if
I can trace this.
P.P.S. I sort-of remember some kind of mailing list for GNU objective-c
but I forget what it is. Is it real or am I just imaginging it?
--
Adam Fedor. CU, Boulder | Fudd's Law of Opposition: Push something
fedor@boulder.colorado.edu (W) | hard enough and it will fall over.
adam@bastille.rmnug.org (H,NeXTMail)|
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads