mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Fix post-kubernetes-push-e2e-node-perf-npb-is-test-images problem (arm64)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
@@ -30,7 +30,13 @@ WORKDIR ./NPB3.3.1/NPB3.3-OMP
|
||||
RUN sed -i '1i#!/bin/sh' sys/print_header sys/print_instructions
|
||||
|
||||
# Create build config based on the architecture and build the workload.
|
||||
RUN if [ $(arch) != "x86_64" ]; then \
|
||||
# arm64 requires special flags to avoid relocation overflow with large binaries:
|
||||
# -mcmodel=large: use large code model for > 4GB address space
|
||||
# -fno-PIE: disable position-independent executable (incompatible with large model)
|
||||
# -mno-outline-atomics: inline atomics to avoid linker issues
|
||||
RUN if [ $(arch) = "aarch64" ]; then \
|
||||
sed 's/-mcmodel=medium/-mcmodel=large -fno-PIE -mno-outline-atomics/g' config/NAS.samples/make.def.gcc_x86 > config/make.def; \
|
||||
elif [ $(arch) != "x86_64" ]; then \
|
||||
sed s/-mcmodel=medium//g config/NAS.samples/make.def.gcc_x86 > config/make.def; \
|
||||
else \
|
||||
cp config/NAS.samples/make.def.gcc_x86 config/make.def; \
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.5.0
|
||||
1.6.0
|
||||
|
||||
Reference in New Issue
Block a user