Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/fio: remove native build to fix crashes
@ 2023-09-17 20:29 Jens Maus via buildroot
  2023-09-21 19:27 ` Arnout Vandecappelle via buildroot
  2023-09-26  5:47 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Jens Maus via buildroot @ 2023-09-17 20:29 UTC (permalink / raw)
  To: buildroot; +Cc: Ezequiel Garcia

Per default, the fio package uses the "-march=native" GCC option. This,
however can result in "illegal instructions" when fio is compiled in a
cross compile environment where the target machine will have a different
cpu feature set than the compilation environment. Thus we make sure fio
will not use that compiler option by adding --disable-native to
FIO_OPTS.

Signed-off-by: Jens Maus <mail@jens-maus.de>
---
 package/fio/fio.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/fio/fio.mk b/package/fio/fio.mk
index b1763d6c73..f6e7b036bb 100644
--- a/package/fio/fio.mk
+++ b/package/fio/fio.mk
@@ -9,7 +9,7 @@ FIO_SITE = http://brick.kernel.dk/snaps
 FIO_LICENSE = GPL-2.0
 FIO_LICENSE_FILES = COPYING MORAL-LICENSE
 
-FIO_OPTS = --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)"
+FIO_OPTS = --disable-native --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)"
 
 ifeq ($(BR2_PACKAGE_LIBAIO),y)
 FIO_DEPENDENCIES += libaio
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-26  5:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-17 20:29 [Buildroot] [PATCH 1/1] package/fio: remove native build to fix crashes Jens Maus via buildroot
2023-09-21 19:27 ` Arnout Vandecappelle via buildroot
2023-09-26  5:47 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox