Created attachment 217809 [details] patch Codeveloped with Brandon Bergen (bdragon@). This patch fixes build on powerpc64, adding necessary code variants for FreeBSD, where necessary. Apart from that, FreeBSD installs libs to lib, not lib64. Also coredump support seems to be disabled for ppc64, so adjust Makefile for that. Since C11 atomic features are necessary, add USES=compiler:c11.
I made minor changes to patch configure directly (skipping USES=autoreconf). https://people.FreeBSD.org/~sunpoet/patch/pr-249181.txt BTW, do you have any plan to submit the patch to upstream?
(In reply to Sunpoet Po-Chuan Hsieh from comment #1) Yes, once it's committed here, I'll send it upstream.
A commit references this bug: Author: sunpoet Date: Wed Sep 9 20:40:09 UTC 2020 New revision: 548157 URL: https://svnweb.freebsd.org/changeset/ports/548157 Log: Fix build on powerpc64 PR: 249181 Submitted by: pkubaj Changes: head/devel/libunwind/Makefile head/devel/libunwind/files/patch-powerpc64 head/devel/libunwind/pkg-plist
Committed. Thanks!