This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

libio/stdfiles.c:46: parse error before `_IO_lock_t'


I am trying to compile gcc-2.95.3 for powerpc-wrs-vxworks with David Korn's
patches, and
have got the following problems in libio:

First of all, I needed to add sys-include to the inc path in order to compile
iofprintf.c, iofscanf.c, ioscanf.c, iosprintf.c, iosscanf.c, iovfprintf.c,
iovfscanf.c, stdfiles.c and vasprintf.c.

Second of all, and this is the step I haven't been able to get past, I get this
error with libio/stdfiles.c:

gmake[1]: Entering directory
`/usr/local/src/gnu/gcc/build-gcc-2.95.3-powerpc-vxworks/powerpc-wrs-vxworks/libio'
test x"no" != xyes ||\
  /usr/local/src/gnu/gcc/build-gcc-2.95.3-powerpc-vxworks/gcc/xgcc
-B/usr/local/src/gnu/gcc/build-gcc-2.95.3-powerpc-vxworks/gcc/
-B/home/athorp/powerpc-wrs-vxworks/powerpc-wrs-vxworks/bin/ -c -g -O2 -I.
-I../../../gcc-2.95.3/libio   ../../../gcc-2.95.3/libio/stdfiles.c -o
pic/stdfiles.o
/usr/local/src/gnu/gcc/build-gcc-2.95.3-powerpc-vxworks/gcc/xgcc
-B/usr/local/src/gnu/gcc/build-gcc-2.95.3-powerpc-vxworks/gcc/
-B/home/athorp/powerpc-wrs-vxworks/powerpc-wrs-vxworks/bin/ -c -g -O2 -I.
-I../../../gcc-2.95.3/libio  ../../../gcc-2.95.3/libio/stdfiles.c
../../../gcc-2.95.3/libio/stdfiles.c:46: parse error before `_IO_lock_t'
../../../gcc-2.95.3/libio/stdfiles.c:47: parse error before `_IO_lock_t'
../../../gcc-2.95.3/libio/stdfiles.c:48: parse error before `_IO_lock_t'
gmake[1]: *** [stdfiles.o] Error 1
gmake[1]: Leaving directory
`/usr/local/src/gnu/gcc/build-gcc-2.95.3-powerpc-vxworks/powerpc-wrs-vxworks/libio'
gmake: *** [all-target-libio] Error 2


The relevant bit of stdfiles.c, once preprocessed, looks for me like this:

static _IO_lock_t _IO_stdfile_0_lock = _IO_lock_t () ; struct _IO_FILE_plus 
_IO_stdin_  = {{ 0xFBAD0000 + 0x80 + 0x2000 +    8   , 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,    0  ,     0  , 0, 0, 0, 0, { 0 }, &_IO_stdfile_0_lock } ,
&_IO_file_jumps} ;
static _IO_lock_t _IO_stdfile_1_lock = _IO_lock_t () ; struct _IO_FILE_plus 
_IO_stdout_  = {{ 0xFBAD0000 + 0x80 + 0x2000 +    4   , 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,    &_IO_stdin_.file  ,     1  , 0, 0, 0, 0, { 0 },
&_IO_stdfile_1_lock } , &_IO_file_jumps} ;
static _IO_lock_t _IO_stdfile_2_lock = _IO_lock_t () ; struct _IO_FILE_plus 
_IO_stderr_  = {{ 0xFBAD0000 + 0x80 + 0x2000 +   
            4 + 2   , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,    &_IO_stdout_.file 
,     2  , 0, 0, 0, 0, { 0 }, &_IO_stdfile_2_lock } , &_IO_file_jumps} ;

_IO_FILE *_IO_list_all = &_IO_stderr_.file;

I am using Tornado 2.0, and Solaris.

Can anybody help?

Alex Thorp

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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