git: 092e5a2ca90e - main - misc/quary: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Aug 2024 12:01:12 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=092e5a2ca90e514120ddce7185b3e16217f86a58
commit 092e5a2ca90e514120ddce7185b3e16217f86a58
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-07-30 16:57:21 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-08-04 12:00:28 +0000
misc/quary: fix build on powerpc
ld: error: undefined symbol: __atomic_fetch_sub_8
>>> referenced by ub_src_main_buffered_data.cpp
>>> 239a61d5cb207136-ub_src_main_buffered_data.o:(duckdb::SimpleBufferedData::Scan()) in archive /wrkdirs/usr/ports/misc/quary/work/target/powerpc-unknown-freebsd/release/deps/liblibduckdb_sys-cad649c98c3dae49.rlib
>>> referenced by ub_src_execution_operator_persistent.cpp
>>> 239a61d5cb207136-ub_src_execution_operator_persistent.o:(duckdb::BatchMemoryManager::ReduceUnflushedMemory(unsigned long long)) in archive /wrkdirs/usr/ports/misc/quary/work/target/powerpc-unknown-freebsd/release/deps/liblibduckdb_sys-cad649c98c3dae49.rlib
>>> referenced by ub_src_transaction.cpp
>>> 239a61d5cb207136-ub_src_transaction.o:(duckdb::CleanupState::CleanupDelete(duckdb::DeleteInfo&)) in archive /wrkdirs/usr/ports/misc/quary/work/target/powerpc-unknown-freebsd/release/deps/liblibduckdb_sys-cad649c98c3dae49.rlib
>>> referenced 14 more times
cc: error: linker command failed with exit code 1 (use -v to see invocation)
---
misc/quary/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/misc/quary/Makefile b/misc/quary/Makefile
index 2d8648476c8a..753461ea4fcd 100644
--- a/misc/quary/Makefile
+++ b/misc/quary/Makefile
@@ -524,6 +524,13 @@ CARGO_CRATES= addr2line-0.22.0 \
PLIST_FILES= bin/${PORTNAME}
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT}
+LDFLAGS+= -L/usr/local/lib/gcc${GCC_DEFAULT} -latomic
+.endif
+
do-install:
${INSTALL_PROGRAM} \
${WRKDIR}/target/*/release/${PORTNAME} \