Locale Build Failure with sparc-rtems

Joel Sherrill Joel.Sherrill@OARcorp.com
Tue Aug 16 13:52:00 GMT 2016


Hi

Sorry for not testing sooner but a clean git tree on the master this morning 
ends with this:

sparc-rtems4.12-gcc -B/home/joel/test-gcc/b-sparc-rtems4.12-newlib/sparc-rtems4.12/soft/newlib/ -isystem /home/joel/test-gcc/b-sparc-rtems4.12-newlib/sparc-rtems4.12/soft/newlib/targ-include -isystem /home/joel/test-gcc/newlib-cygwin/newlib/libc/include  -msoft-float -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.4.0\" -DPACKAGE_STRING=\"newlib\ 2.4.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../newlib-cygwin/newlib/libc/stdlib -DMALLOC_ALIGNMENT=8 -D_COMPILING_NEWLIB -DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL -DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS -D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -D_NO_POSIX_SPAWN -D_I386MACH_ALLOW_HW_INTERRUPTS -fno-builtin      -g -O2  -msoft-float -c -o lib_a-dtoa.o `test -f 'dtoa.c' || echo '../../../../../../newlib-cygwin/newlib/libc/stdlib/'`dtoa.c
In file included from ../../../../../../newlib-cygwin/newlib/libc/stdlib/mprec.h:35:0,
                 from ../../../../../../newlib-cygwin/newlib/libc/stdlib/dtoa.c:33:
../../../../../../newlib-cygwin/newlib/libc/stdlib/../locale/setlocale.h: In function '__get_monetary_locale':
../../../../../../newlib-cygwin/newlib/libc/stdlib/../locale/setlocale.h:329:10  error: incompatible types when returning type 'const struct lc_monetary_T' but 'const struct lc_monetary_T *' was expected
   return _C_monetary_locale;
          ^~~~~~~~~~~~~~~~~~

Thanks.

--joel


More information about the Newlib mailing list