git: 16b3f6880766 - main - emulators/unicorn: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 24 Sep 2026 12:54:18 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=16b3f6880766dc9bc73215fe09992245cbd51462
commit 16b3f6880766dc9bc73215fe09992245cbd51462
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-09-16 11:09:10 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-09-24 12:53:38 +0000
emulators/unicorn: fix build on powerpc64*
In file included from /wrkdirs/usr/ports/emulators/unicorn/work/unicorn-2.1.4/qemu/util/bitmap.c:13:
In file included from /wrkdirs/usr/ports/emulators/unicorn/work/unicorn-2.1.4/qemu/include/qemu/bitops.h:16:
In file included from /wrkdirs/usr/ports/emulators/unicorn/work/unicorn-2.1.4/qemu/include/qemu/host-utils.h:30:
/wrkdirs/usr/ports/emulators/unicorn/work/unicorn-2.1.4/qemu/include/qemu/int128.h:150:16: error: typedef redefinition with different types ('Int128' (aka 'struct Int128') vs '__int128')
---
emulators/unicorn/files/patch-CMakeLists.txt | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/emulators/unicorn/files/patch-CMakeLists.txt b/emulators/unicorn/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..9d2e3a7c8114
--- /dev/null
+++ b/emulators/unicorn/files/patch-CMakeLists.txt
@@ -0,0 +1,16 @@
+--- CMakeLists.txt.orig 2026-09-16 10:31:01 UTC
++++ CMakeLists.txt
+@@ -327,6 +327,13 @@ else()
+ set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -DUNICORN_TRACER")
+ endif()
+ if (ATOMIC_LINKAGE_FIX)
++ include(CheckLibraryExists)
++ check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC)
++ if (NOT HAVE_LIBATOMIC)
++ set(ATOMIC_LINKAGE_FIX FALSE)
++ endif()
++ endif()
++ if (ATOMIC_LINKAGE_FIX)
+ set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -latomic")
+ endif()
+ if (CMAKE_OSX_SYSROOT)