From 63eb3957299e187938d6634ba450eabe86deb52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 5 Jan 2026 19:49:15 +0100 Subject: [PATCH] ci: build test stage3 on powerpc64le-linux with long calls Necessary to work around this: error: ld.lld: /home/ci/.cache/act/f23fdcb74e58cd75/hostexecutor/zig-global-cache/o/c67e3042d116da0f73d3129d377044bf/libc++abi.a(/home/ci/.cache/act/f23fdcb74e58cd75/hostexecutor/zig-global-cache/o/61dd7765ab891b4db54a5e49b8ab8c86/cxa_thread_atexit.o):(function __cxa_thread_atexit: .text.__cxa_thread_atexit+0x40): relocation R_PPC64_REL24_NOTOC out of range: -251925824 is not in [-33554432, 33554431]; references '__cxa_thread_atexit_impl' note: referenced by cxa_thread_atexit.cpp:116 (/home/ci/.cache/act/f23fdcb74e58cd75/hostexecutor/lib/libcxxabi/src/cxa_thread_atexit.cpp:116) note: defined in /home/ci/.cache/act/f23fdcb74e58cd75/hostexecutor/zig-global-cache/o/c67e3042d116da0f73d3129d377044bf/libc++abi.a(/home/ci/.cache/act/f23fdcb74e58cd75/hostexecutor/zig-global-cache/o/61dd7765ab891b4db54a5e49b8ab8c86/cxa_thread_atexit.o) This is only a problem for now because we link libLLVM; once we start invoking llc instead, we won't need this workaround anymore. --- ci/powerpc64le-linux-debug.sh | 1 + ci/powerpc64le-linux-release.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/ci/powerpc64le-linux-debug.sh b/ci/powerpc64le-linux-debug.sh index e521c4cca2..1b9a51e44d 100755 --- a/ci/powerpc64le-linux-debug.sh +++ b/ci/powerpc64le-linux-debug.sh @@ -49,6 +49,7 @@ stage3-debug/bin/zig build test docs \ -Dstatic-llvm \ -Dskip-non-native \ -Dtarget=native-native-musl \ + -Dcpu=native+longcall \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ --test-timeout 4m diff --git a/ci/powerpc64le-linux-release.sh b/ci/powerpc64le-linux-release.sh index 96915af527..77e1ca803a 100755 --- a/ci/powerpc64le-linux-release.sh +++ b/ci/powerpc64le-linux-release.sh @@ -49,6 +49,7 @@ stage3-release/bin/zig build test docs \ -Dstatic-llvm \ -Dskip-non-native \ -Dtarget=native-native-musl \ + -Dcpu=native+longcall \ --search-prefix "$PREFIX" \ --zig-lib-dir "$PWD/../lib" \ --test-timeout 4m