On 23/12/2025 20:03, vom513 wrote:
Hello all, Trying to build packages from 2025Q4 on my hppa machine running a -current from a few days ago. python312 built fine previously (older -current, 2025Q3). It seems to compile everything but the linking at the end is where it chokes. Any ideas ?
I nearly forgot to say that I added hppa 64 bit atomics to -current with this commit
https://mail-index.netbsd.org/source-changes/2026/01/09/msg160078.html
ld: Objects/obmalloc.o: in function `mi_stat_update.part.0': (.text+0xd78): undefined reference to `__sync_add_and_fetch_8' ld: (.text+0xe40): undefined reference to `__sync_fetch_and_add_8' ld: (.text+0xe68): undefined reference to `__sync_fetch_and_add_8' ld: Objects/obmalloc.o: in function `mi_stat_add.constprop.0': (.text+0x10c8): undefined reference to `__sync_fetch_and_add_8' ld: (.text+0x10e0): undefined reference to `__sync_fetch_and_add_8' ld: (.text+0x10f8): undefined reference to `__sync_fetch_and_add_8' ld: Objects/obmalloc.o:(.text+0x110c): more undefined references to `__sync_fetch_and_add_8' follow ld: Objects/obmalloc.o: in function `mi_manage_os_memory_ex2': (.text+0xebe4): undefined reference to `__sync_lock_test_and_set_8' ld: Objects/obmalloc.o: in function `_mi_arena_free': (.text+0x10ec0): undefined reference to `__sync_fetch_and_add_8' ld: (.text+0x11008): undefined reference to `__sync_lock_test_and_set_8' ld: Objects/typeobject.o: in function `managed_static_type_state_clear': (.text+0x22c4): undefined reference to `__sync_fetch_and_add_8' ld: (.text+0x2340): undefined reference to `__sync_fetch_and_add_8' ld: Objects/typeobject.o: in function `init_static_type': (.text+0x1d608): undefined reference to `__sync_fetch_and_add_8' ld: (.text+0x1d6ec): undefined reference to `__sync_fetch_and_add_8' ld: (.text+0x1d78c): undefined reference to `__sync_fetch_and_add_8' ld: Objects/typeobject.o:(.text+0x1d844): more undefined references to `__sync_fetch_and_add_8' follow ld: Python/lock.o: in function `_PyRecursiveMutex_Lock': (.text+0x1158): undefined reference to `__sync_lock_test_and_set_8' ld: Python/lock.o: in function `_PyRecursiveMutex_Unlock': (.text+0x1274): undefined reference to `__sync_lock_test_and_set_8' ld: Python/qsbr.o: in function `_Py_qsbr_advance': (.text+0x10): undefined reference to `__sync_add_and_fetch_8' ld: Python/qsbr.o: in function `_Py_qsbr_attach': (.text+0x234): undefined reference to `__sync_lock_test_and_set_8' ld: Python/qsbr.o: in function `_Py_qsbr_detach': (.text+0x25c): undefined reference to `__sync_lock_test_and_set_8' ld: Modules/_threadmodule.o: in function `rlock_acquire_restore': (.text+0xbc8): undefined reference to `__sync_lock_test_and_set_8' ld: Modules/_threadmodule.o: in function `rlock_acquire': (.text+0x10a4): undefined reference to `__sync_lock_test_and_set_8' ld: Modules/_threadmodule.o: in function `rlock_release_save': (.text+0x175c): undefined reference to `__sync_lock_test_and_set_8' ld: Modules/_threadmodule.o:(.text+0x192c): more undefined references to `__sync_lock_test_and_set_8' follow