cmake fails to build on NetBSD/hppa

Hello all,

Let me say upfront I know this is a pretty far out in left field, seeing that it’s a) NetBSD and b) on old HPPA hardware.

I have built cmake on 32-bit NetBSD sparc for example in the recent past. I am using the 2025Q1 pkgsrc snapshot - which has cmake version 3.31.6. I posted on the pkgsrc-users list but got no replies.

Figured I would try something here.

There is more in that mailing list message, but a snippet from the bottom is:

`_ZL17__gthread_triggerv' referenced in section `.rodata._ZN20cmBasicUVPipeIStreamIcSt11char_traitsIcEED1Ev.cst4' of cmPlistParser.o: defined in discarded section `.text._ZL17__gthread_triggerv[_ZN20cmBasicUVPipeIStreamIcSt11char_traitsIcEED1Ev]' of cmPlistParser.o
`_ZL17__gthread_triggerv' referenced in section `.rodata._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE1EE10_M_releaseEv.cst4' of cmake.o: defined in discarded section `.text._ZL17__gthread_triggerv[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE1EE10_M_releaseEv]' of cmake.o
`_ZL17__gthread_triggerv' referenced in section `.rodata._ZN20cmBasicUVPipeIStreamIcSt11char_traitsIcEED1Ev.cst4' of cmcmd.o: defined in discarded section `.text._ZL17__gthread_triggerv[_ZN20cmBasicUVPipeIStreamIcSt11char_traitsIcEED1Ev]' of cmcmd.o
make: *** [Makefile:2: cmake] Error 1

cmake builds everything up to the point of (I believe) the actual cmake binary ? No real errors before this. It’s like when it gets to the final step the above error happens.

I can open a NetBSD bug as well but would love to see if anyone recognizes what this might be.

Thanks.