[MacPorts] #65945: jemalloc fails on 10.5.8: Undefined symbols: _malloc_default_purgeable_zone, __Unwind_Resume using a modified MacPorts setup on 10.5 that is defaulting to use gcc11
MacPorts
noreply at macports.org
Mon Oct 10 14:02:21 UTC 2022
#65945: jemalloc fails on 10.5.8: Undefined symbols:
_malloc_default_purgeable_zone, __Unwind_Resume using a modified MacPorts
setup on 10.5 that is defaulting to use gcc11
---------------------------+-------------------------------------------
Reporter: barracuda156 | Owner: kencu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc, leopard, snowleopard
Port: jemalloc |
---------------------------+-------------------------------------------
Comment (by barracuda156):
Output from manual linking:
{{{
36-249:jemalloc-5.3.0 svacchanda$ sudo /opt/local/bin/gcc-mp-11 -Wl,-v
-shared -Wl,-install_name,/opt/local/lib/libjemalloc.2.dylib -o
lib/libjemalloc.2.dylib src/jemalloc.pic.o src/arena.pic.o
src/background_thread.pic.o src/base.pic.o src/bin.pic.o
src/bin_info.pic.o src/bitmap.pic.o src/buf_writer.pic.o
src/cache_bin.pic.o src/ckh.pic.o src/counter.pic.o src/ctl.pic.o
src/decay.pic.o src/div.pic.o src/ecache.pic.o src/edata.pic.o
src/edata_cache.pic.o src/ehooks.pic.o src/emap.pic.o src/eset.pic.o
src/exp_grow.pic.o src/extent.pic.o src/extent_dss.pic.o
src/extent_mmap.pic.o src/fxp.pic.o src/san.pic.o src/san_bump.pic.o
src/hook.pic.o src/hpa.pic.o src/hpa_hooks.pic.o src/hpdata.pic.o
src/inspect.pic.o src/large.pic.o src/log.pic.o src/malloc_io.pic.o
src/mutex.pic.o src/nstime.pic.o src/pa.pic.o src/pa_extra.pic.o
src/pai.pic.o src/pac.pic.o src/pages.pic.o src/peak_event.pic.o
src/prof.pic.o src/prof_data.pic.o src/prof_log.pic.o
src/prof_recent.pic.o src/prof_stats.pic.o src/prof_sys.pic.o
src/psset.pic.o src/rtree.pic.o src/safety_check.pic.o src/sc.pic.o
src/sec.pic.o src/stats.pic.o src/sz.pic.o src/tcache.pic.o
src/test_hooks.pic.o src/thread_event.pic.o src/ticker.pic.o src/tsd.pic.o
src/witness.pic.o src/zone.pic.o src/jemalloc_cpp.pic.o -L/opt/local/lib
-Wl,-headerpad_max_install_names -m32 -lstdc++ -pthread
collect2 version 11.3.0
/opt/local/bin/ld -dynamic -arch ppc -macosx_version_min 10.5.0 -o
lib/libjemalloc.2.dylib -ldylib1.10.5.o -L/opt/local/lib
-L/opt/local/lib/gcc11/gcc/ppc-apple-darwin9/11.3.0
-L/opt/local/lib/gcc11/gcc/ppc-apple-darwin9/11.3.0/../../.. -v
-install_name /opt/local/lib/libjemalloc.2.dylib src/jemalloc.pic.o
src/arena.pic.o src/background_thread.pic.o src/base.pic.o src/bin.pic.o
src/bin_info.pic.o src/bitmap.pic.o src/buf_writer.pic.o
src/cache_bin.pic.o src/ckh.pic.o src/counter.pic.o src/ctl.pic.o
src/decay.pic.o src/div.pic.o src/ecache.pic.o src/edata.pic.o
src/edata_cache.pic.o src/ehooks.pic.o src/emap.pic.o src/eset.pic.o
src/exp_grow.pic.o src/extent.pic.o src/extent_dss.pic.o
src/extent_mmap.pic.o src/fxp.pic.o src/san.pic.o src/san_bump.pic.o
src/hook.pic.o src/hpa.pic.o src/hpa_hooks.pic.o src/hpdata.pic.o
src/inspect.pic.o src/large.pic.o src/log.pic.o src/malloc_io.pic.o
src/mutex.pic.o src/nstime.pic.o src/pa.pic.o src/pa_extra.pic.o
src/pai.pic.o src/pac.pic.o src/pages.pic.o src/peak_event.pic.o
src/prof.pic.o src/prof_data.pic.o src/prof_log.pic.o
src/prof_recent.pic.o src/prof_stats.pic.o src/prof_sys.pic.o
src/psset.pic.o src/rtree.pic.o src/safety_check.pic.o src/sc.pic.o
src/sec.pic.o src/stats.pic.o src/sz.pic.o src/tcache.pic.o
src/test_hooks.pic.o src/thread_event.pic.o src/ticker.pic.o src/tsd.pic.o
src/witness.pic.o src/zone.pic.o src/jemalloc_cpp.pic.o
-headerpad_max_install_names -lstdc++ -dylib -lemutls_w -lgcc -lSystem
-lef_ppc
@(#)PROGRAM:ld PROJECT:ld64-97.17
configured to support archs: i386 x86_64 ppc ppc64 armv6 armv7
Library search paths:
/opt/local/lib
/opt/local/lib/gcc11/gcc/ppc-apple-darwin9/11.3.0
/opt/local/lib/gcc11
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
Undefined symbols:
"_malloc_default_purgeable_zone", referenced from:
_je_zone_register in zone.pic.o
_malloc_default_purgeable_zone$non_lazy_ptr in zone.pic.o
(maybe you meant: _malloc_default_purgeable_zone$non_lazy_ptr)
"__Unwind_Resume", referenced from:
__ZL9handleOOMmb in jemalloc_cpp.pic.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65945#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list