From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10801 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl + PowerPC + GCC 5 Date: Thu, 15 Dec 2016 11:59:01 +0100 Message-ID: <20161215105901.GI16379@port70.net> References: <585118BF.6040004@adelielinux.org> <20161214105306.GG16379@port70.net> <58521805.5000308@Wilcox-Tech.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1481799558 24160 195.159.176.226 (15 Dec 2016 10:59:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2016 10:59:18 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-10814-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 15 11:59:12 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cHTkl-0005Lc-N3 for gllmg-musl@m.gmane.org; Thu, 15 Dec 2016 11:59:11 +0100 Original-Received: (qmail 6125 invoked by uid 550); 15 Dec 2016 10:59:13 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 6107 invoked from network); 15 Dec 2016 10:59:13 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <58521805.5000308@Wilcox-Tech.com> Xref: news.gmane.org gmane.linux.lib.musl.general:10801 Archived-At: * A. Wilcox [2016-12-14 22:11:49 -0600]: > On 14/12/16 04:53, Szabolcs Nagy wrote: > > * A. Wilcox [2016-12-14 04:02:39 -0600]: > > i think the simplest fix is to config with --disable-decimal-float > > Note "--disable-decimal-float". I receive the same error. > yeah, libgcc insists on using decimal float if the compiler you build it with supports it.. (which is xgcc when you cross compile so things work, but if you build natively the config flags don't affect the outcome). try to configure with libgcc_cv_dfp=no > > the second simplest fix is to patch the ifdef logic (e.g. define > > BFP_FMT "%Le") but then the conversion code would be broken at > > runtime: the code is compiled with -mlong-double-128 and musl > > expects 64 bit long double. (most likely the bootstrap process > > does not depend on this to work so this is a workaround hack > > that only breaks 128bit float to decimal conversion.) > > That sounds unacceptable for production code. I do not understand the > inner workings of floating point though. > note that without -mlong-double-128 the broken functions are never generated, and since musl does not support 128bit long double, with -mlong-double-128 broken decimal conversion will be the least of your problems. > > the correct way on musl is to build libgcc without -mlong-double-128 > > and without all the 128bit (TF mode) float stuff, but this may need > > some configure and build system changes as i don't immediately see > > an option to turn tf mode things off. > > I cannot seem to disable -mlong-double-128 no matter what I patch. :( > there is this: http://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/gcc/gcc-6.2/0045-libgcc-Add-knob-to-use-ldbl-128-on-ppc.patch but it needs more work. (the makefile should be modified too)