posix error with gcc3.0

Joel Sherrill joel at OARcorp.com
Wed Jun 20 15:22:11 UTC 2001



Jerry Needell wrote:

> I get the following error when building the 20010525 snapshot with
> gcc-3.0-20010614 if I use --enable-posix.  This seems like it may be
> something of general interest. Anyone know waht is going on here?


Not 100%.  I think that it may be saying that you can't do this anymore:

  mode = (mode_t) va_arg( arg, mode_t );

I (think) it is saying that the 2nd argument to va_arg should be int not 
mode_t but I
am not 100% sure about that.  All the cases I spot offhand in newlib use 
base types.

Anyone else have ideas?

> 
> - Jerry
> 
> 
> ------------------------------------------------------------------------
> 
> sparc-rtems-gcc --pipe -B../../../../../ -B../../../../../erc32/lib/ -specs bsp_specs -qrtems -g -Wall  -ansi -fasm  -mcpu=cypress         -c -DHAVE_CONFIG_H -I.  -D__RTEMS_INSIDE__  -O4 -o o-optimize/mqueuenotify.o ../../../../../../../rtems-ss-20010525/c/src/exec/posix/src/mqueuenotify.c
> sparc-rtems-gcc --pipe -B../../../../../ -B../../../../../erc32/lib/ -specs bsp_specs -qrtems -g -Wall  -ansi -fasm  -mcpu=cypress         -c -DHAVE_CONFIG_H -I.  -D__RTEMS_INSIDE__  -O4 -o o-optimize/mqueueopen.o ../../../../../../../rtems-ss-20010525/c/src/exec/posix/src/mqueueopen.c
> ../../../../../../../rtems-ss-20010525/c/src/exec/posix/src/mqueueopen.c: In function `mq_open':
> ../../../../../../../rtems-ss-20010525/c/src/exec/posix/src/mqueueopen.c:60: `mode_t' is promoted to `int' when passed through `...'
> ../../../../../../../rtems-ss-20010525/c/src/exec/posix/src/mqueueopen.c:60: (so you should pass `int' not `mode_t' to `va_arg')
> gmake[5]: *** [o-optimize/mqueueopen.o] Error 1
> gmake[5]: Leaving directory `/home/needell/rtems/tools/build-sparc-rtems/sparc-rtems/c/erc32/exec/posix/src'
> gmake[4]: *** [all-recursive] Error 1
> gmake[4]: Leaving directory `/home/needell/rtems/tools/build-sparc-rtems/sparc-rtems/c/erc32/exec/posix'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory `/home/needell/rtems/tools/build-sparc-rtems/sparc-rtems/c/erc32/exec'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/home/needell/rtems/tools/build-sparc-rtems/sparc-rtems/c/erc32'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/home/needell/rtems/tools/build-sparc-rtems/sparc-rtems/c'
> gmake: *** [all-recursive] Error 1
> ERROR: failed gmake all.
> ./bit_rtems: exit: bad non-numeric arg `./bit_rtems'
> posix.msg
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 




More information about the users mailing list