[RTEMS Project] #2990: RTEMS Source Builder Fails on Windows Builds

RTEMS trac trac at rtems.org
Mon Aug 7 23:59:07 UTC 2017


#2990: RTEMS Source Builder Fails on Windows Builds
---------------------------------+--------------------------
 Reporter:  Worth Burruss        |       Owner:  Chris Johns
     Type:  defect               |      Status:  reopened
 Priority:  normal               |   Milestone:  4.12.0
Component:  RSB                  |     Version:  4.12
 Severity:  normal               |  Resolution:
 Keywords:  windows, MSYS2, gcc  |
---------------------------------+--------------------------

Comment (by Chris Johns):

 nios2 gcc-7.1.0, newlib-2.5.0.20170623:
 {{{
 ../../../../../../../../../../gcc-7.1.0/libgcc/unwind-dw2-fde.c: At top
 level:
 ../../../../../../../../../../gcc-7.1.0/libgcc/unwind-dw2-fde.c:56:1:
 error: variable 'object_mutex' has initializer but incomplete type
  static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT;
  ^~~~~~
 make[4]: *** [../../../../../../../../../../gcc-7.1.0/libgcc/static-
 object.mk:17: unwind-sjlj.o] Error 1
 In file included from
 ../../../../../../../../../../gcc-7.1.0/libgcc/gthr.h:148:0,
                  from
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:31:
 ./gthr-default.h:51:30: error: '_MUTEX_INITIALIZER' undeclared here (not
 in a function); did you mean 'PTHREAD_MUTEX_INITIALIZER'?
  #define __GTHREAD_MUTEX_INIT _MUTEX_INITIALIZER
                               ^
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:58:41: note: in
 expansion of macro '__GTHREAD_MUTEX_INIT'
  static __gthread_mutex_t emutls_mutex = __GTHREAD_MUTEX_INIT;
                                          ^~~~~~~~~~~~~~~~~~~~
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c: In function
 '__emutls_get_address':
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:159:13: warning:
 implicit declaration of function 'calloc' [-Wimplicit-function-
 declaration]
        arr = calloc (size + 1, sizeof (void *));
              ^~~~~~
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:159:13: warning:
 incompatible implicit declaration of built-in function 'calloc'
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:159:13: note:
 include '<stdlib.h>' or provide a declaration of 'calloc'
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:171:13: warning:
 implicit declaration of function 'realloc' [-Wimplicit-function-
 declaration]
        arr = realloc (arr, (size + 1) * sizeof (void *));
              ^~~~~~~
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:171:13: warning:
 incompatible implicit declaration of built-in function 'realloc'
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:171:13: note:
 include '<stdlib.h>' or provide a declaration of 'realloc'
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c: At top level:
 ../../../../../../../../../../gcc-7.1.0/libgcc/emutls.c:58:26: error:
 storage size of 'emutls_mutex' isn't known
  static __gthread_mutex_t emutls_mutex = __GTHREAD_MUTEX_INIT;
                           ^~~~~~~~~~~~
 In file included from
 ../../../../../../../../../../gcc-7.1.0/libgcc/gthr.h:148:0,
                  from ../../../../../../../../../../gcc-7.1.0/libgcc
 /unwind-dw2-fde.c:37:
 ./gthr-default.h:51:30: error: '_MUTEX_INITIALIZER' undeclared here (not
 in a function); did you mean 'PTHREAD_MUTEX_INITIALIZER'?
  #define __GTHREAD_MUTEX_INIT _MUTEX_INITIALIZER
                               ^
 ../../../../../../../../../../gcc-7.1.0/libgcc/unwind-dw2-fde.c:56:41:
 note: in expansion of macro '__GTHREAD_MUTEX_INIT'
  static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT;
                                          ^~~~~~~~~~~~~~~~~~~~
 make[4]: *** [../../../../../../../../../../gcc-7.1.0/libgcc/static-
 object.mk:17: emutls.o] Error 1
 ../../../../../../../../../../gcc-7.1.0/libgcc/unwind-dw2-fde.c:56:26:
 error: storage size of 'object_mutex' isn't known
  static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT;
                           ^~~~~~~~~~~~
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/2990#comment:12>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list