Looks like there is a bug building on armv7 that is fixed upstream already <inline asm>:2:41: error: expected '%<type>' or "<type>" 2 | .pushsection ".debug_gdb_scripts", "MS",@progbits,1 | ^ Upstream discussion is here: https://github.com/boostorg/unordered/issues/294 The commits that fix it are here: https://github.com/boostorg/interprocess/pull/246 and https://github.com/boostorg/unordered/pull/295 or possibly there is an option to disable the embedded gdb scripts. I am not sure which is the best path.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1617413bd596f3086dbe227c5205303f3c632782 commit 1617413bd596f3086dbe227c5205303f3c632782 Author: Dima Panov <fluffy@FreeBSD.org> AuthorDate: 2025-02-20 08:31:49 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> CommitDate: 2025-02-20 08:36:24 +0000 devel/boost-libs: unbreak build on armv7 (+) @progbits is spelled %progbits on armv7 Update armv7 patch with two more places to fix this. Based on https://github.com/boostorg/interprocess/pull/246/ and https://github.com/boostorg/unordered/pull/295 Issue was raised in https://github.com/boostorg/unordered/issues/294 PR: 284880 Sponsored by: Future Crew, LLC devel/boost-libs/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
My local patch I had planned to commit to address this also has ${WRKSRC}/boost/json/detail/gdb_printers.hpp as a file with the progbits replacement. Is this needed, too? Have you build-tested your patch on armv7?
(In reply to Robert Clausecker from comment #2) Yes it is needed too Ref: https://github.com/boostorg/json/commit/57d42f07158b8ea4a713378c90d22b28ca4787f8
(In reply to Robert Clausecker from comment #2) Yeah, I found it too and will commit asap Sorry, cannot confirm build, I have only aarch64/amd64 hardware :(
(In reply to Dima Panov from comment #4) You can run armv7 jails on aarch64 hosts. This works e.g. with a Raspberry Pi 4B or a Windows ARM Dev Kit, but not with a Mac.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a7c991a3b4fa11bed3b2c4a3a8970593aa9c14a5 commit a7c991a3b4fa11bed3b2c4a3a8970593aa9c14a5 Author: Dima Panov <fluffy@FreeBSD.org> AuthorDate: 2025-02-21 00:38:43 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> CommitDate: 2025-02-21 00:38:43 +0000 devel/boost-libs: Boost.JSON library is also need to be patched for @progbist on 32-bit ARM (+) See https://github.com/boostorg/json/commit/57d42f07158b8ea4a713378c90d22b28ca4787f8 for details PR: 284880 Sponsored by: Future Crew, LLC devel/boost-libs/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Should be fine now. This matches my own patch.