From patchwork Fri Sep 11 12:41:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 1362418 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=rockwellcollins.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rockwellcollins.com header.i=@rockwellcollins.com header.a=rsa-sha256 header.s=hrcrc2020 header.b=U1bCA7Ig; 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 4BnwPM6TXtz9sTK for ; Fri, 11 Sep 2020 22:41:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9BA9B2E249; Fri, 11 Sep 2020 12:41:57 +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 gt0K1jLhHv-2; Fri, 11 Sep 2020 12:41:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D440E2E232; Fri, 11 Sep 2020 12:41:42 +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 4D9B41BF35D for ; Fri, 11 Sep 2020 12:41:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4A41687263 for ; Fri, 11 Sep 2020 12:41:41 +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 1oPtH3g9B50y for ; Fri, 11 Sep 2020 12:41:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ch3vs05.rockwellcollins.com (ch3vs05.rockwellcollins.com [205.175.226.130]) by hemlock.osuosl.org (Postfix) with ESMTPS id 5266887255 for ; Fri, 11 Sep 2020 12:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rockwellcollins.com; s=hrcrc2020; h=from:to:cc:subject:date:message-id; bh=frJWTN4ezexCHK4gfLdAC6dnw/Ydi0yrhlKmu3icddY=; b=U1bCA7IgAy3J0vKP7jZCIHyqk0IaZ3lUGHIsHhrhcYf+PyXUAXR2DlsL KZoh5qM3aWwhumrG8+wfuFqRiApMXcMcr7xDammy1kDwxTL0gnGerJrTh HG0FKy7ugKz5M0lwxWBzNT3oGO9+8bc4lrSlaswQJlhCB+HiFYlJRdnAF UhhNzVyfz0VN6v3dpSpEgzpodbaZEV7dQ9ddp/oHuJVyUAz8oFFaauJRg kXQRKTp9GlKDa8n9QpjF6ZQY70OSCse3JlnoCp92g4ub9FyukEvP4RiRi 5QoNlw2/X318zujOG4k0yIFjjJ4rqatoxBL5yv3EufNAPq0HuydhjAc8z A==; IronPort-SDR: NTpwcgucM0bSOg973pEogcyJuCp0f+guigj6MrnVJjp5lzo8Cz3KLgVqD/1giotY3qSPFUje1M Rg1S9zSSXQEsZW92PwaRr0yw2WrP6M0oU8Nn2hE1EI+DCTbMoOg+UajpPd3nBiq2jQNJd5tKtE B9Oy+n01vlAUQhpmekhNe4kEi6ODwVUWdeOt0syIzCrtORQuCOBCV8bGri43nz4AIX3bd0PpS+ vx0V23QFuzSW/06xqVbN+yB/jClQ+9j/Mpi5X002DPMWnJO14d7H8KhO6RbALshZsMRtwCdoHF 08c= Received: from ofwch3n02.rockwellcollins.com (HELO crulimr02.rockwellcollins.com) ([205.175.226.14]) by ch3vs05.rockwellcollins.com with ESMTP; 11 Sep 2020 07:41:32 -0500 X-Received: from biscuits.rockwellcollins.com (biscuits.rockwellcollins.lab [10.148.119.137]) by crulimr02.rockwellcollins.com (Postfix) with ESMTP id C0E87600D6; Fri, 11 Sep 2020 07:41:31 -0500 (CDT) From: Matt Weber To: buildroot@buildroot.org Date: Fri, 11 Sep 2020 07:41:31 -0500 Message-Id: <20200911124131.8549-1-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] gcc: disable fortran use of libquadmath 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: Matt Weber , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The GCC package has a default conf option of disabling libquadmath and the toolchain dependencies selectively enabled it if i386 / x64. Fixes: https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359622 This patch fixes a build failure when (GCC + glibc) is being built for the IBM Power8 arch and has libgfortran enabled + libquadmath disabled. The libgfortran has a code condition for __float128 and includes the quadmath headers. The bug occurs because Power8 has emulated float128 support. The fix per GCC options is to also set --disable-libquadmath-support which disables the __float128/libquadmath support in gcc/fortran and in libgfortran [1]. Another option to fix the build failure was to enable libquadmath for IBM Power8 (ISA 2.07), however this would be soft float based as the ISA 3.0+ (Power9) first supports native float128 [2][3]. [1] https://fortran.gcc.gnu.narkive.com/8uSfoKUS/patch-build-pr-46540-add-disable-libquadmath-disable-libquadmath-support [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66382#c7 [3] https://gcc.gnu.org/onlinedocs/gcc/RS_002f6000-and-PowerPC-Options.html Cc: Thomas Petazzoni Signed-off-by: Matthew Weber --- package/gcc/gcc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index b834269adc..c04d3b4d5c 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -116,7 +116,7 @@ endif ifeq ($(BR2_USE_WCHAR)$(BR2_TOOLCHAIN_HAS_LIBQUADMATH),yy) HOST_GCC_COMMON_CONF_OPTS += --enable-libquadmath else -HOST_GCC_COMMON_CONF_OPTS += --disable-libquadmath +HOST_GCC_COMMON_CONF_OPTS += --disable-libquadmath --disable-libquadmath-support endif # Disable libsanitizer due to a build issue with gcc 7.5 and glibc 2.31.