[MacPorts] #67220: mimalloc broken on 10.6: error: stdatomic.h: No such file or directory, etc.

MacPorts noreply at macports.org
Fri Jul 7 05:53:28 UTC 2023


#67220: mimalloc broken on 10.6: error: stdatomic.h: No such file or directory,
etc.
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  mohd-akram
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  snowleopard, leopard, powerpc,
      Port:  mimalloc    |  rosetta
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 Replying to [comment:4 barracuda156]:
 > After a couple of extra fixes I ended up here:
 > {{{
 > Undefined symbols:
 >   "___atomic_compare_exchange_8", referenced from:
 >       _mi_stat_update.part.0 in stats.c.o
 >   "__Znam", referenced from:
 >       __mi_cxx_interposes in alloc.c.o
 >   "__ZnwmRKSt9nothrow_t", referenced from:
 >       __mi_cxx_interposes in alloc.c.o
 >   "___atomic_fetch_add_8", referenced from:
 >       _mi_atomic_addi64_relaxed in stats.c.o
 >   "_mi_prim_tls_slot", referenced from:
 >       _mi_prim_get_default_heap in alloc.c.o
 >       _mi_prim_get_default_heap in alloc-aligned.c.o
 >       _mi_prim_get_default_heap in heap.c.o
 >       __mi_thread_done in init.c.o
 >       _mi_thread_init in init.c.o
 >   "___atomic_load_8", referenced from:
 >       _mi_segment_cache_purge.constprop.0 in segment-cache.c.o
 >       _mi_segment_cache_purge.constprop.0 in segment-cache.c.o
 >       _mi_stat_update.part.0 in stats.c.o
 >       _mi_process_info in stats.c.o
 >       _mi_process_info in stats.c.o
 >   "__Znwm", referenced from:
 >       __mi_cxx_interposes in alloc.c.o
 >   "__ZnamRKSt9nothrow_t", referenced from:
 >       __mi_cxx_interposes in alloc.c.o
 >   "_mi_prim_tls_slot_set", referenced from:
 >       __mi_heap_set_default_direct in init.c.o
 >   "___atomic_store_8", referenced from:
 >       _mi_segment_cache_pop_ex in segment-cache.c.o
 >       _mi_segment_cache_purge.constprop.0 in segment-cache.c.o
 >       __mi_segment_cache_push in segment-cache.c.o
 >       __mi_segment_cache_push in segment-cache.c.o
 > }}}
 >
 > Of these, atomics is known how to fix, other not yet sure.

 All non-atomic problematic stuff comes from this commit:
 https://github.com/microsoft/mimalloc/commit/c47de7eb9090cf8c0a5f307a74437cf927a361be
 #diff-09d94a49fa7395392e824b1a84c3c76e360ed043aef99205441dc0a199a8a1b8R92
 For atomics there is a setting:
 https://github.com/microsoft/mimalloc/commit/4d89176eb4584c16a2b3141a97c1970cc1664014

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


More information about the macports-tickets mailing list