From da65855dd49582f2bd4de4dad9b6725554e6d4da Mon Sep 17 00:00:00 2001 From: forbes Date: Thu, 29 Jan 2026 16:15:32 -0600 Subject: [PATCH] Fix: Remove x86-64-v3 CPU flags for broader compatibility The -march=x86-64-v3 flag requires AVX2 instructions which are not available on all target machines (e.g. QEMU VMs with only SSE4.2). This caused 'Illegal instruction' crashes at runtime. Remove the explicit -march flags from both build and release workflows to use the default target architecture, ensuring the .deb package runs on a wider range of x86-64 machines. --- .gitea/workflows/build.yml | 5 +---- .gitea/workflows/release.yml | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index fd1cc7d38a..4265b59650 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -74,10 +74,7 @@ jobs: - name: Configure (CMake) shell: bash run: | - # Use conda Clang with modern CPU optimizations - pixi run cmake --preset conda-linux-release \ - -DCMAKE_C_FLAGS="-march=x86-64-v3" \ - -DCMAKE_CXX_FLAGS="-march=x86-64-v3" + pixi run cmake --preset conda-linux-release - name: Build run: pixi run cmake --build build/release -j$(nproc) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e6cd130173..e5de16aa2a 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -23,9 +23,8 @@ jobs: CCACHE_SLOPPINESS: "include_file_ctime,include_file_mtime,pch_defines,time_macros" BUILD_TAG: ${{ github.ref_name || inputs.tag }} MAKE_INSTALLER: "true" - # Modern CPU flags for x86-64-v3 (AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, XSAVE) - CFLAGS: "-march=x86-64-v3 -O3" - CXXFLAGS: "-march=x86-64-v3 -O3" + CFLAGS: "-O3" + CXXFLAGS: "-O3" steps: - name: Trust FreeIPA CA certificate