This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

enabling objc on cygwin gcc


Hello,
I have the following error after running make-bootstrap on gcc-2.95.3-5 on
cygwin.  In order to even get this far I had to download the objc packages
from gnu.org.

<error>
In file included from /usr/src/gcc-2.95.3-5/libobjc/objc/Object.h:30,
                 from /usr/src/gcc-2.95.3-5/libobjc/linking.m:28:
/usr/src/gcc-2.95.3-5/libobjc/objc/objc.h:51: parse error before `const'

<included output>
/usr/src/gcc-output/gcc/xgcc -B/usr/src/gcc-output/gcc/ -B/usr/i686-pc-cygwi
n32
bin/ -c -I. -I/usr/src/gcc-2.95.3-5/libobjc   -g -O2 -DIN_GCC -I/usr/src/gcc
-2.
5.3-5/libobjc/objc  -I/usr/src/gcc-2.95.3-5/libobjc/../gcc -I/usr/src/gcc-2.
95.
-5/libobjc/../gcc/config -I../../gcc -I/usr/src/gcc-2.95.3-5/libobjc/../incl
ude
/usr/src/gcc-2.95.3-5/libobjc/init.c
/usr/src/gcc-output/gcc/xgcc -B/usr/src/gcc-output/gcc/ -B/usr/i686-pc-cygwi
n32
bin/ -fgnu-runtime -c -o
linking.o -I. -I/usr/src/gcc-2.95.3-5/libobjc   -g -O2
-DIN_GCC -I/usr/src/gcc-2.95.3-5/libobjc/objc  -I/usr/src/gcc-2.95.3-5/libob
jc/
./gcc -I/usr/src/gcc-2.95.3-5/libobjc/../gcc/config -I../../gcc -I/usr/src/g
cc-
.95.3-5/libobjc/../include /usr/src/gcc-2.95.3-5/libobjc/linking.m
In file included from /usr/src/gcc-2.95.3-5/libobjc/objc/Object.h:30,
                 from /usr/src/gcc-2.95.3-5/libobjc/linking.m:28:
/usr/src/gcc-2.95.3-5/libobjc/objc/objc.h:51: parse error before `const'
      0 [main] cc1obj 1764 open_stackdumpfile: Dumping stack trace to
cc1obj.ex
.stackdump
xgcc: Internal compiler error: program cc1obj got fatal signal 11
make[2]: *** [linking.o] Error 1
make[2]: Leaving directory `/usr/src/gcc-output/i686-pc-cygwin32/libobjc'
make[1]: *** [all-target-libobjc] Error 2
make[1]: Leaving directory `/usr/src/gcc-output'
make: *** [bootstrap] Error 2

<objc.h>	(line numbers added for readability)
----------------------------------------------------------------------
35: /*
36: ** Definition of the boolean type.
37: */
38: #ifdef __vxworks
39: typedef int BOOL;
41: #else
42: typedef unsigned char  BOOL;
43: #endif
44: #define YES   (BOOL)1
45: #define NO    (BOOL)0
46:
47: /*
48: ** Definition of a selector.  Selectors themselves are not unique, but
49: ** the sel_id is a unique identifier.
50: */
>51:  typedef const struct objc_selector
52:  {
53:    void *sel_id;
54:   const char *sel_types;
55: } *SEL;


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]