From b94fc1485b36b12effacc303811b1ec785bfe183 Mon Sep 17 00:00:00 2001 From: Anthony Iliopoulos Date: Tue, 27 Nov 2018 21:37:27 +0100 Subject: [PATCH] fio: add --disable-native to the configure options fio by default is passing the -march=native flag to gcc, which causes it to emit specific optimized instructions that are not available on all cpu models. More specifically, the particular cause was that it was enabling the BMI2 instruction set on the x86_64 builder and emitting shlx instructions which were crashing fio (as illegal opcodes) on machines with older cpus. Signed-off-by: Anthony Iliopoulos --- srcpkgs/fio/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/fio/template b/srcpkgs/fio/template index a0861cd5b01..c76fdcb455a 100644 --- a/srcpkgs/fio/template +++ b/srcpkgs/fio/template @@ -1,7 +1,7 @@ # Template file for 'fio' pkgname=fio version=3.12 -revision=1 +revision=2 wrksrc="${pkgname}-${pkgname}-${version}" build_style=configure make_install_args="mandir=/usr/share/man" @@ -19,7 +19,7 @@ case "$XBPS_TARGET_MACHINE" in esac do_configure() { - ./configure --prefix=/usr --extra-cflags="$CFLAGS" + ./configure --prefix=/usr --extra-cflags="$CFLAGS" --disable-native } post_install() {