From patchwork Sat May 23 17:20:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1296756 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=YDetpNU7; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Tqpf2KfSz9sRY for ; Sun, 24 May 2020 03:19:21 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DD0C02051A; Sat, 23 May 2020 17:19:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ru-lvlp3ey7w; Sat, 23 May 2020 17:19:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8E3A220784; Sat, 23 May 2020 17:19:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 9E5C21BF4E5 for ; Sat, 23 May 2020 17:19:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9A9F3883D2 for ; Sat, 23 May 2020 17:19:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0h3hnnPDEPKU for ; Sat, 23 May 2020 17:19:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by hemlock.osuosl.org (Postfix) with ESMTPS id CA1C3883C6 for ; Sat, 23 May 2020 17:19:13 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id c3so9122019wru.12 for ; Sat, 23 May 2020 10:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EuIz1HvVBVaIJXKu4e/tx1IA9IyKpGnAZ3FS9pIWmLs=; b=YDetpNU7XrBtTMjDajAVckJtOec1fbWxpgJH0iSh0S9MHMiGy6yTxHNFDWoXDobGbu Lel4nGQgsvjxUGVM2wijyQOe0SZhSO8Iwbr2WR7qtxe5BqOLmiTnLBq7K+vH1iw+HON2 8mJ8gLL2ej09bYca30vZmEQz0IoUezCJEWRT4JUeXYSm2+kn+0FN672qMmPeX0wXS+Hc BffKJAnaB4gKrQO+1X+UYpSM/U6MX8NQPQSFesAmuW86F6cAWMNzsaIywneMG8q+5KWS MAqLK5bCeA+8vT6RxjoBDLQo+Nu4n8iZ82Vj/ubWptYScL7cDtHbVrYZEV0WpyPbQrlE BTBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EuIz1HvVBVaIJXKu4e/tx1IA9IyKpGnAZ3FS9pIWmLs=; b=KF1dUqLzu+1iv7k5+83oKT4dKBWToN7SGa9Y1VYA1xuvEAPPE2YPVGYsakKaYU4CYT 5QOg9vf3Hng30Wr9sF4LZZQvEUYXFkKCa/mW+nHe6yAcRY4d4niQDjgzHrWb7xuMcUf4 0v7xPF3+PxlJry6k0W+VUAtbAQ/3pqFdYgTnjNLq6+wKl50EoOSZ+vweNFDuU4dtGogj Vmqsh/eKJs/kTHfLtDjteBM9XhqCCnEoS9IhNp5zTfZa4OQ2/UC9+sqrjBwPq94GTBmI 68C17+ZKmiSDzG8H2xd/7SmFQ46GOWFPxzGSc2Ha/TTP8LDww0EWtdb5X9CU7z69q5YX 9ywA== X-Gm-Message-State: AOAM530OilF82FqAw43v845j2J2CgNSTWMmq/dA4y12b8IHNw6aWmx7V oUQ3dRiihOblSDjisuHZ5uRT+pw+ X-Google-Smtp-Source: ABdhPJzmapQ/d/HLjITL3z57iVlAK9Cs6u2CF0eycrm2OhQb1bUqpuw8S2wCUUF/6OK81b4Nl6hFZQ== X-Received: by 2002:adf:f907:: with SMTP id b7mr8226339wrr.203.1590254351833; Sat, 23 May 2020 10:19:11 -0700 (PDT) Received: from kali.home (lfbn-ren-1-2144-158.w92-167.abo.wanadoo.fr. [92.167.223.158]) by smtp.gmail.com with ESMTPSA id d6sm13623373wrj.90.2020.05.23.10.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 10:19:11 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 23 May 2020 19:20:36 +0200 Message-Id: <20200523172036.1006199-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/fio: fix build on sh4 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/6dc82572ae1369aa5c9954b6e61777766c5aa3b4 Signed-off-by: Fabrice Fontaine --- ...akefile-fix-build-of-io_uring-on-sh4.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/fio/0002-Makefile-fix-build-of-io_uring-on-sh4.patch diff --git a/package/fio/0002-Makefile-fix-build-of-io_uring-on-sh4.patch b/package/fio/0002-Makefile-fix-build-of-io_uring-on-sh4.patch new file mode 100644 index 0000000000..69bda93d37 --- /dev/null +++ b/package/fio/0002-Makefile-fix-build-of-io_uring-on-sh4.patch @@ -0,0 +1,33 @@ +From e1985f9097f37748efdc29239eb3fb6a00b12f27 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sat, 23 May 2020 19:07:40 +0200 +Subject: [PATCH] Makefile: fix build of io_uring on sh4 + +SuperH compile currently fails with: + +/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sh4-buildroot-linux-uclibc/8.3.0/../../../../sh4-buildroot-linux-uclibc/bin/ld: t/io_uring.o: in function `submitter_fn': +/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/fio-3.19/t/io_uring.c:131: undefined reference to `arch_flags' +/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sh4-buildroot-linux-uclibc/8.3.0/../../../../sh4-buildroot-linux-uclibc/bin/ld: /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/fio-3.19/t/io_uring.c:367: undefined reference to `arch_flags' +collect2: error: ld returned 1 exit status + +Fix that by ensuring we have a stub arch.o with the necessary arch flags + +Signed-off-by: Fabrice Fontaine +[Retrieved from: +https://github.com/axboe/fio/commit/e1985f9097f37748efdc29239eb3fb6a00b12f27] +--- + Makefile | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile b/Makefile +index f1e984f5f..e39621954 100644 +--- a/Makefile ++++ b/Makefile +@@ -283,6 +283,7 @@ T_PIPE_ASYNC_OBJS = t/read-to-pipe-async.o + T_PIPE_ASYNC_PROGS = t/read-to-pipe-async + + T_IOU_RING_OBJS = t/io_uring.o ++T_IOU_RING_OBJS += t/arch.o + T_IOU_RING_PROGS = t/io_uring + + T_MEMLOCK_OBJS = t/memlock.o