From 2c9928e4cbfd926ee7ea27dedf851e41c2c3c5ee Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 15 Oct 2025 22:12:02 -0500 Subject: [PATCH] Fix FTBFS on ppc64le systems Tested to compile and function normally under Debian Trixie ppc64le / POWER9 Signed-off-by: Timothy Pearson --- libraries/source/nvtt/build.sh | 5 ++++- ...0004-Properly-detect-ppc64le-systems.patch | 17 ++++++++++++++ ...ix-compiler-flags-on-ppc64le-systems.patch | 14 ++++++++++++ ...x-altivec-include-on-ppc64le-systems.patch | 22 +++++++++++++++++++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 libraries/source/nvtt/patches/0004-Properly-detect-ppc64le-systems.patch create mode 100644 libraries/source/nvtt/patches/0005-Fix-compiler-flags-on-ppc64le-systems.patch create mode 100644 libraries/source/nvtt/patches/0006-Fix-altivec-include-on-ppc64le-systems.patch diff --git a/libraries/source/nvtt/build.sh b/libraries/source/nvtt/build.sh index 73aa186f7a..f05ce283e5 100755 --- a/libraries/source/nvtt/build.sh +++ b/libraries/source/nvtt/build.sh @@ -6,7 +6,7 @@ set -e cd "$(dirname "$0")" PV=28209 -LIB_VERSION=${PV}+wfg3 +LIB_VERSION=${PV}+wfg4 fetch() { @@ -64,6 +64,9 @@ rm -Rf nvtt-${PV} patch -d nvtt-${PV} -p1 + #undef bool + #endif +--- a/src/src/nvmath/SimdVector_VE.h ++++ b/src/src/nvmath/SimdVector_VE.h +@@ -27,7 +27,7 @@ + #ifndef NV_SIMD_VECTOR_VE_H + #define NV_SIMD_VECTOR_VE_H + +-#ifndef __APPLE_ALTIVEC__ ++#if !defined(__APPLE_ALTIVEC__) || defined(__powerpc64__) + #include + #undef bool + #endif