[MacPorts] #64913: vlang fails for PowerPC: -latomic flag needed, Header file <sys/errno.h>, needed for module `sync` was not found

MacPorts noreply at macports.org
Fri Jan 12 09:59:27 UTC 2024


#64913: vlang fails for PowerPC: -latomic flag needed, Header file <sys/errno.h>,
needed for module `sync` was not found
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  harens
      Type:  defect        |     Status:  accepted
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, leopard, snowleopard
      Port:  vlang         |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Replying to [comment:53 harens]:

 Something got broken:
 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:
 In function '__closure_alloc':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16418:51:
 error: '__closure_thunk' undeclared (first use in this function); did you
 mean '__closure_alloc'?
 16418 | #define _CLOSURE_SIZE (((2*sizeof(void*) > sizeof(__closure_thunk)
 ? 2*sizeof(void*) : sizeof(__closure_thunk)) + sizeof(void*) - 1) &
 ~(sizeof(void*) - 1))
       |                                                   ^~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16528:40:
 note: in expansion of macro '_CLOSURE_SIZE'
 16528 |         int remaining = _V_page_size / _CLOSURE_SIZE;
       |                                        ^~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16418:51:
 note: each undeclared identifier is reported only once for each function
 it appears in
 16418 | #define _CLOSURE_SIZE (((2*sizeof(void*) > sizeof(__closure_thunk)
 ? 2*sizeof(void*) : sizeof(__closure_thunk)) + sizeof(void*) - 1) &
 ~(sizeof(void*) - 1))
       |                                                   ^~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16528:40:
 note: in expansion of macro '_CLOSURE_SIZE'
 16528 |         int remaining = _V_page_size / _CLOSURE_SIZE;
       |                                        ^~~~~~~~~~~~~
 In file included from /usr/include/string.h:148,
                  from /opt/local/include/LegacySupport/string.h:25,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:805:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:
 In function '__closure_init':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16566:30:
 error: '__CLOSURE_GET_DATA_BYTES' undeclared (first use in this function);
 did you mean '__CLOSURE_GET_DATA'?
 16566 |         memcpy(_closure_ptr, __CLOSURE_GET_DATA_BYTES,
 sizeof(__CLOSURE_GET_DATA_BYTES));
       |                              ^~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16418:51:
 error: '__closure_thunk' undeclared (first use in this function); did you
 mean '__closure_init'?
 16418 | #define _CLOSURE_SIZE (((2*sizeof(void*) > sizeof(__closure_thunk)
 ? 2*sizeof(void*) : sizeof(__closure_thunk)) + sizeof(void*) - 1) &
 ~(sizeof(void*) - 1))
       |                                                   ^~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16569:25:
 note: in expansion of macro '_CLOSURE_SIZE'
 16569 |         _closure_ptr += _CLOSURE_SIZE;
       |                         ^~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:
 In function '__closure_create':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16418:51:
 error: '__closure_thunk' undeclared (first use in this function); did you
 mean '__closure_init'?
 16418 | #define _CLOSURE_SIZE (((2*sizeof(void*) > sizeof(__closure_thunk)
 ? 2*sizeof(void*) : sizeof(__closure_thunk)) + sizeof(void*) - 1) &
 ~(sizeof(void*) - 1))
       |                                                   ^~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-0.4.3/vc/v.c:16581:25:
 note: in expansion of macro '_CLOSURE_SIZE'
 16581 |         _closure_ptr += _CLOSURE_SIZE;
       |                         ^~~~~~~~~~~~~
 make: *** [all] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64913#comment:56>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list