diff options
| author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2026-01-08 11:45:28 +0000 |
|---|---|---|
| committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2026-01-09 22:44:40 +0000 |
| commit | 928771aa51cc3cc7056ad0d4712e3ffb23dfcf29 (patch) | |
| tree | af787d0e7e706fa71f145625a6d05efa85333600 | |
| parent | 52d2a669e56f8d07a996450c8811f1c4de50e98f (diff) | |
misc/onnxruntime: fix build on powerpc64
VSX is required:
/wrkdirs/usr/ports/misc/onnxruntime/work/onnxruntime-1.23.2/onnxruntime/core/mlas/lib/power/FgemmKernelpower.h:155:27: error: use of undeclared identifier 'vec_splat'
ABroadcast[Row] = vec_splat(AElements[Row], Lane);
| -rw-r--r-- | misc/onnxruntime/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/onnxruntime/Makefile b/misc/onnxruntime/Makefile index 67152ff60acc..f757427a10ea 100644 --- a/misc/onnxruntime/Makefile +++ b/misc/onnxruntime/Makefile @@ -36,8 +36,10 @@ CMAKE_TESTING_ON= onnxruntime_BUILD_UNIT_TESTS CXXFLAGS+= -Wno-array-bounds # workaround for https://github.com/microsoft/onnxruntime/issues/23410 CXXFLAGS+= -Wno-deprecated-declarations #fixes error: 'vec_lvsl' is deprecated: use assignment for unaligned little endian loads/stores +#CXXFLAGS+= -Wno-deprecated-altivec-src-compat #fixes error: current handling of vector bool and vector pixel types in this context are deprecated; the default behaviour will soon change to that implied by the '-altivec-compat=xl' option CXXFLAGS+= -I${WRKSRC}/include/onnxruntime/core/common/logging # otherwise logging.h isn't found CXXFLAGS+= -frtti # fixes error: onnxruntime/test/contrib_ops/gather_block_quantized_op_test.cc:85:77: error: use of typeid requires -frtti +CXXFLAGS_powerpc64= -mvsx BINARY_ALIAS= patch=gpatch |
