From patchwork Mon Dec 23 21:36:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1215076 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.137; helo=fraxinus.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.b="h+Oh17Aa"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47hXhK2LdTz9sPn for ; Tue, 24 Dec 2019 08:35:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 710C9854E5; Mon, 23 Dec 2019 21:35:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Va-s8gOyXOPV; Mon, 23 Dec 2019 21:35:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5CCF5854B4; Mon, 23 Dec 2019 21:35:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 0A4161BF3DF for ; Mon, 23 Dec 2019 21:35:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F1E1F85CE1 for ; Mon, 23 Dec 2019 21:35:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ErapDMN0snil for ; Mon, 23 Dec 2019 21:35:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 093AB85CB4 for ; Mon, 23 Dec 2019 21:35:21 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id a5so776201wmb.0 for ; Mon, 23 Dec 2019 13:35:20 -0800 (PST) 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=KliP6DetvP0O0G1Jq6YlyPbEw5okci6TFrErlYpRkcY=; b=h+Oh17AaA6a7+FYsdh8GhzH19c946WQ73clpPeD2QMAZoFjORZ4ZcBn7c/9Dgoxq1p Wnbbvvzsf4kcPS0HWOIjH3S5qhUqL0ZbS3vGap1jndn5Lh5RgEYD3Ultcs/QQr8ebhSu 7N6qaGUAiOWLK3IE1jfCd1osrFCDOtZ/s6/Rm1tsfEyy3BrgYob3lkNgCBFI1YEEEO8x M9ggU/UEoyKcZR4XjUUz6vcy2F8WgYHxDbLlaK8CreWWYv9ozZy97OQlNdchXt1QAZw8 MyRi4WyAHNxXueT919rHSfHENdnG0Q/wYJobt8ocn0I6gGIxdxu8H6otQKFLbkmM9drC 05pA== 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=KliP6DetvP0O0G1Jq6YlyPbEw5okci6TFrErlYpRkcY=; b=Ds7J8b6W2XZbrIZGLSjH6pIJQzhd6Thz9PoH5x1p4WW1AMOCvheO22vThivySsuc3h uevzOvpVk2jtQ0rJSQcSkoQxc0aRjkoqLbp5IPK3WdXegdnQqzQwGlC8An1zhD4beDuU gYbvsjbCPy4prqihGLrhO8ZFrXFYmFnEj2OoPgCKWc5dC7w97pkCh8D/3+trpMY4Avma fI6cEkX3uSv7gI2YXzl3n9O6AzgNuVHA9qhIi7O2c9Qxk2od7fVZYKSCKuEZPdi+YKVL 8nZtX0qm5+tKwtZ6sj/XHqCcG9UBQVIWKTTeebKemrWox3NmgyQag4U+aQbeBN60y8v3 MMMA== X-Gm-Message-State: APjAAAVMI74Kg4KqVix/EuMyY/Fe4Ib831NnZpw20M3//+6lyK1ZIlek h5s4owR52F1QMwyIrpHzMebeIjcG X-Google-Smtp-Source: APXvYqyCMGM3mVgebNWC5XA/G/m7f4UdOicCwIz5EsOmXMMByktAfSXUUK9vV2CPxLQS2dA2CRVH3g== X-Received: by 2002:a7b:c957:: with SMTP id i23mr723644wml.49.1577136919185; Mon, 23 Dec 2019 13:35:19 -0800 (PST) Received: from kali.home (lfbn-ren-1-602-70.w81-53.abo.wanadoo.fr. [81.53.179.70]) by smtp.gmail.com with ESMTPSA id 16sm625703wmi.0.2019.12.23.13.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 13:35:18 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 23 Dec 2019 22:36:10 +0100 Message-Id: <20191223213610.142006-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/libffi: fix build failure on power7 and older 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 , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/3ab73995b8393592c0b147670d8ff7f8ebc8c79c Signed-off-by: Fabrice Fontaine --- ...ix-build-failure-on-power7-and-older.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/libffi/0005-powerpc-fix-build-failure-on-power7-and-older.patch diff --git a/package/libffi/0005-powerpc-fix-build-failure-on-power7-and-older.patch b/package/libffi/0005-powerpc-fix-build-failure-on-power7-and-older.patch new file mode 100644 index 0000000000..d0b91dda68 --- /dev/null +++ b/package/libffi/0005-powerpc-fix-build-failure-on-power7-and-older.patch @@ -0,0 +1,39 @@ +From 01a75ed76ea7e57f1b7a5c183e2b1e890e6aa0fd Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Thu, 28 Nov 2019 12:42:41 +0000 +Subject: [PATCH] powerpc: fix build failure on power7 and older (#532) + +Build failure looks as: +``` +libtool: compile: powerpc-unknown-linux-gnu-gcc \ + -O2 -mcpu=powerpc -mtune=powerpc -pipe ... -c src/powerpc/ffi.c ... +In file included from src/powerpc/ffi.c:33: +src/powerpc/ffi_powerpc.h:65:9: error: '__int128' is not supported on this target + 65 | typedef __int128 float128; + | ^~~~~~~~ +``` + +The fix avoids using __int128 in favour of aligned char[16]. + +Closes: https://github.com/libffi/libffi/issues/531 +Signed-off-by: Sergei Trofimovich +[Retrieved from: +https://github.com/libffi/libffi/commit/01a75ed76ea7e57f1b7a5c183e2b1e890e6aa0fd] +Signed-off-by: Fabrice Fontaine +--- + src/powerpc/ffi_powerpc.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/powerpc/ffi_powerpc.h b/src/powerpc/ffi_powerpc.h +index 5ee2a709..8e2f2f0e 100644 +--- a/src/powerpc/ffi_powerpc.h ++++ b/src/powerpc/ffi_powerpc.h +@@ -62,7 +62,7 @@ typedef _Float128 float128; + #elif defined(__FLOAT128__) + typedef __float128 float128; + #else +-typedef __int128 float128; ++typedef char float128[16] __attribute__((aligned(16))); + #endif + + void FFI_HIDDEN ffi_closure_SYSV (void);