From patchwork Tue May 15 21:15:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 159453 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A64F7B6FAA for ; Wed, 16 May 2012 07:15:59 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CE637A0356; Tue, 15 May 2012 21:15:58 +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 TOPMBb6AdJ1J; Tue, 15 May 2012 21:15:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 9ED56A035E; Tue, 15 May 2012 21:15:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C1B218F76A for ; Tue, 15 May 2012 21:15:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4C3C58C8B6 for ; Tue, 15 May 2012 21:15:56 +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 K4M9yk42-o0r for ; Tue, 15 May 2012 21:15:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr [80.12.242.126]) by whitealder.osuosl.org (Postfix) with ESMTP id 291E68C8B0 for ; Tue, 15 May 2012 21:15:53 +0000 (UTC) Received: from treguer.bzh.lan ([90.32.127.72]) by mwinf5d60 with ME id AMFq1j0071Zqyb603MFqM6; Tue, 15 May 2012 23:15:53 +0200 From: "Yann E. MORIN" To: buildroot@busybox.net Date: Tue, 15 May 2012 23:15:50 +0200 Message-Id: <1337116550-12175-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH] toolchain/crosstool-NG: disable decimal floats X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Decimal floats were introduced circa gcc-4.2 or -4.3, and requires the floating-point environement fenv.h in the C library. The uClibc .config file used by crosstool-NG to build uClibc is the same as used by the internal buildroot mechanism, and explcitly disables fenv support. The quick workaround is to simply disable decimal floats in all crosstool-NG config files. In the long run, it might be better to check this situation, and/or add code and/or options in crosstool-NG to handle this (but it is much more involved, and this workaround is sane). Reported-by: Thomas Petazzoni CC: Thomas Petazzoni Signed-off-by: "Yann E. MORIN" --- .../crosstool-ng.config-eglibc | 4 ++-- .../crosstool-ng.config-glibc | 4 ++-- .../crosstool-ng.config-uClibc | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc b/toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc index c1ab679..4488d02 100644 --- a/toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc +++ b/toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc @@ -273,8 +273,8 @@ CT_CC_LANG_CXX=y # gcc other options # CT_CC_ENABLE_CXX_FLAGS="" -CT_CC_CORE_EXTRA_CONFIG_ARRAY="" -CT_CC_EXTRA_CONFIG_ARRAY="" +CT_CC_CORE_EXTRA_CONFIG_ARRAY="--disable-decimal-float" +CT_CC_EXTRA_CONFIG_ARRAY="--disable-decimal-float" CT_CC_STATIC_LIBSTDCXX=y # diff --git a/toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc b/toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc index 4a555c7..46a636b 100644 --- a/toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc +++ b/toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc @@ -273,8 +273,8 @@ CT_CC_LANG_CXX=y # gcc other options # CT_CC_ENABLE_CXX_FLAGS="" -CT_CC_CORE_EXTRA_CONFIG_ARRAY="" -CT_CC_EXTRA_CONFIG_ARRAY="" +CT_CC_CORE_EXTRA_CONFIG_ARRAY="--disable-decimal-float" +CT_CC_EXTRA_CONFIG_ARRAY="--disable-decimal-float" CT_CC_STATIC_LIBSTDCXX=y # diff --git a/toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc b/toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc index 0e442f0..437f455 100644 --- a/toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc +++ b/toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc @@ -272,8 +272,8 @@ CT_CC_LANG_CXX=y # gcc other options # CT_CC_ENABLE_CXX_FLAGS="" -CT_CC_CORE_EXTRA_CONFIG_ARRAY="" -CT_CC_EXTRA_CONFIG_ARRAY="" +CT_CC_CORE_EXTRA_CONFIG_ARRAY="--disable-decimal-float" +CT_CC_EXTRA_CONFIG_ARRAY="--disable-decimal-float" CT_CC_STATIC_LIBSTDCXX=y #