From patchwork Sat Sep 23 21:24:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 817835 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="i0WKOtTp"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y03Jm3ZJ6z9t5C for ; Sun, 24 Sep 2017 07:24:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B5D4388F38; Sat, 23 Sep 2017 21:24:38 +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 zeqtr0KOtCiV; Sat, 23 Sep 2017 21:24:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 53E0F88F0E; Sat, 23 Sep 2017 21:24:37 +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 824CF1C0060 for ; Sat, 23 Sep 2017 21:24:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 78F1E88EEA for ; Sat, 23 Sep 2017 21:24:28 +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 wju0Lm0kJo6m for ; Sat, 23 Sep 2017 21:24:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3E81F88F31 for ; Sat, 23 Sep 2017 21:24:25 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id k20so2266325wre.1 for ; Sat, 23 Sep 2017 14:24:25 -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:in-reply-to:references; bh=e8yibvs9ImPJ+FZSNE2aTtYrIUvuzs0AP0JCrbCpNKs=; b=i0WKOtTpI7rjr1vkJNCfWtqKXzar6BYJErPqwM7H2OGLtU14khTYCWYb/cqwkfhjVE QLZMCee/BEWJDPv+VNkXu0vo1an9tIIN0dN3KKGr/dceaZ9p4Nq7z836n8HziY5ab5DK puXqDxwkcJXB33PpSsx1u9annyWlF3bKN5Kc+I8g3ih7R1XBZJ1kXHhTMjAEe7ei+Mbn pVv5uAw3WzruaoHgmERDbWFcI6TDL2ZiXuTMLCWDzSD4QG916hR3R+ubxOEHWqtt1giX VgNUbbLl02Xk0eNYYw4D5gVu3TQCSsgPzBCjlf77qymmuMOq9y4E70SFlDxAN9hMEtio nREA== 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:in-reply-to :references; bh=e8yibvs9ImPJ+FZSNE2aTtYrIUvuzs0AP0JCrbCpNKs=; b=UB/E3LaZBVDDakgdUGj1WTsTiwD+oiHqijM+BH3kf2Vd/yjuKNhxNAnK9920aI1NoG phLWEIV338rReJlDigG6ndzeZFBoGMJd1ePS+CsH/kfnLmepS1OonwzcjWPgDU5NGbn7 TiuVxsGri2NHSYBHjmB5EGpP+4wLkJLV9T4UghkjV3InBUjFMnntcY3+lYwN8EdpbWA/ +24H5SkWCFnAekJLlc+3t4ujobbmgq0YZGi4HX4Qr7htrjv1WmmZmMeF4ASGgcd4APtB SE/uDcyTjTnqHYhltcJWmR3n4sIGKtynyj/sfbRhyQmskj75EO1ghlGNpR8HcxsaRo03 Dfbg== X-Gm-Message-State: AHPjjUjrUDm7KAQ1TvyCUfA2GXI+iFjyKaxDfANjH0ediCjCuk9dPjPR jG0zGiZJbmoM/GE1UTIi4pq5gb0K X-Google-Smtp-Source: AOwi7QBrzOxVSBsZD7Ad4aZf3jfGV8J4OSRcdrG/z7MFtBfcJjDcqlZw/73mguE6Zn9vpbEJkZ3K0A== X-Received: by 10.223.175.217 with SMTP id y25mr2630711wrd.255.1506201863450; Sat, 23 Sep 2017 14:24:23 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:1391:67d0:e6f9:2d2f:1a1e:79bf]) by smtp.gmail.com with ESMTPSA id f89sm1253848wmh.18.2017.09.23.14.24.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Sep 2017 14:24:23 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 23 Sep 2017 23:24:03 +0200 Message-Id: <20170923212414.16744-5-romain.naour@gmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170923212414.16744-1-romain.naour@gmail.com> References: <20170923212414.16744-1-romain.naour@gmail.com> Cc: Romain Naour Subject: [Buildroot] [PATCH v3 4/7] package/gcc: enable float128 on powerpc64le with glibc >= 2.26 toolchains X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" float128 is now required on powerpc64le with glibc >= 2.26 toolchains. Fixes: running configure fragment for sysdeps/gnu running configure fragment for sysdeps/powerpc/powerpc64le checking if [...]powerpc64le-buildroot-linux-gnu-gcc supports binary128 floating point type... no checking if the target machine is at least POWER8... yes configure: error: *** binary128 floating point type (GCC >= 6.2) is required on powerpc64le. In order to prepare the glibc bump to this version, we enable binary128 floating point in gcc. This require at least gcc >= 6.2. Disable gcc 4.x and 5.x for internal toolchain. Signed-off-by: Romain Naour Reviewed-by: "Yann E. MORIN" --- v2: Disable gcc 4.x and 5.x for internal toolchain. --- package/gcc/Config.in.host | 4 ++++ package/gcc/gcc.mk | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index ec7b692..0926560 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -39,6 +39,8 @@ config BR2_GCC_VERSION_4_9_X depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le)) # musl mips64 unsupported depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el)) + # glibc >= 2.26 needs gcc >= 6.2 + depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_powerpc64le) select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 config BR2_GCC_VERSION_5_X @@ -53,6 +55,8 @@ config BR2_GCC_VERSION_5_X depends on !BR2_mips_interaptiv && !BR2_mips_m5150 && !BR2_mips_i6400 # musl mips64 unsupported depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el)) + # glibc >= 2.26 needs gcc >= 6.2 + depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_powerpc64le) select BR2_TOOLCHAIN_GCC_AT_LEAST_5 config BR2_GCC_VERSION_6_X diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index 49ccccf..54ef70c 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -254,6 +254,14 @@ HOST_GCC_COMMON_CONF_OPTS += \ --without-long-double-128 endif +# Since glibc >= 2.26, poerpc64le requires double/long double which +# requires at least gcc 6.2. +# See sysdeps/powerpc/powerpc64le/configure.ac +ifeq ($(BR2_TOOLCHAIN_USES_GLIBC)$(BR2_TOOLCHAIN_GCC_AT_LEAST_6)$(BR2_powerpc64le),yyy) +HOST_GCC_COMMON_CONF_OPTS += \ + --with-long-double-128 +endif + HOST_GCC_COMMON_TOOLCHAIN_WRAPPER_ARGS += -DBR_CROSS_PATH_SUFFIX='".br_real"' ifeq ($(BR2_GCC_ARCH_HAS_CONFIGURABLE_DEFAULTS),) ifeq ($(call qstrip,$(BR2_GCC_TARGET_CPU_REVISION)),)