From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10800 Path: news.gmane.org!.POSTED!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl + PowerPC + GCC 5 Date: Wed, 14 Dec 2016 22:11:49 -0600 Message-ID: <58521805.5000308@Wilcox-Tech.com> References: <585118BF.6040004@adelielinux.org> <20161214105306.GG16379@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aIdEsMeqrR8eJI417BEfXNAIfFAhG8UUL" X-Trace: blaine.gmane.org 1481775413 9339 195.159.176.226 (15 Dec 2016 04:16:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2016 04:16:53 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 To: musl@lists.openwall.com Original-X-From: musl-return-10813-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 15 05:16:44 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 1cHNTH-000103-Kg for gllmg-musl@m.gmane.org; Thu, 15 Dec 2016 05:16:43 +0100 Original-Received: (qmail 10081 invoked by uid 550); 15 Dec 2016 04:16:46 -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 7799 invoked from network); 15 Dec 2016 04:12:20 -0000 In-Reply-To: <20161214105306.GG16379@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:10800 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aIdEsMeqrR8eJI417BEfXNAIfFAhG8UUL Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 /usr/src/sys-devel/gcc-5.4.0-r2/work/gcc-5.4.0/configure --host=3Dpowerpc-foxkit-linux-musl --target=3Dpowerpc-foxkit-linux-musl --prefix=3D/usr --bindir=3D/usr/powerpc-foxkit-linux-musl/gcc-bin/5.4.0 --includedir=3D/usr/lib/gcc/powerpc-foxkit-linux-musl/5.4.0/include --datadir=3D/usr/share/gcc-data/powerpc-foxkit-linux-musl/5.4.0 --mandir=3D/usr/share/gcc-data/powerpc-foxkit-linux-musl/5.4.0/man --infodir=3D/usr/share/gcc-data/powerpc-foxkit-linux-musl/5.4.0/info --with-gxx-include-dir=3D/usr/lib/gcc/powerpc-foxkit-linux-musl/5.4.0/inc= lude/g++-v5 --enable-languages=3Dc,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=3Drelease --enable-libstdcxx-time --enable-shared --enable-threads=3Dposix --disable-multilib --disable-altivec --disable-fixed-point --disable-decimal-float --disable-libgcj --enable-libgomp --disable-libmudflap --enable-libssp --disable-libcilkrts --disable-libmpx --disable-vtable-verify --disable-libvtv --enable-lto --without-isl --disable-libsanitizer Note "--disable-decimal-float". I receive the same error. > 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. > 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. :( Regards, --arw --=20 A. Wilcox (awilfox) Open-source programmer (C, C++, Python) https://code.foxkit.us/u/awilfox/ --aIdEsMeqrR8eJI417BEfXNAIfFAhG8UUL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYUhgGAAoJEMspy1GSK50UUcsP/A1ZqhgT96MK7GeP4ilf5n0/ iEZLB5HhR7REYNyHvmOe5VapeL2kXyzTRKVagpa05wV7ozYaYRGM1/bBlDjfh+Xy H5eA3FFz+YzrsyQWHa0kpRZmyeJXTd85jKRaYLZYztQzsO/5MBJJHcRHVIgBwo2P 3oHhxQ8/4oW85xWj/wKvCPaBeQlr2UdW+IUgmPOirKCO7uUHD7XwMMM6t1NYrSAE dKNfCigibD3qlislPxfzfDIlFn1fQTK9OGEfmiHEZb43+NKnSSkqpn9K8pcwJD14 9rG1Wq77cvqZ1eFZPbf6YMtfAqLsjTESwVTD56L+KItQVcpHZlP/O8fjWNmd/8NZ PxOMAhvbwN6AjaI8rXifeM77Ebukxs2XK13rZ0qv92TfFII+j7EuZeoU2Z2YqMbt 8Xbx3IWHaaP0adQXDj5Usnk82iR9K9DXQ37gMKTMxEvR96mJzjPhJ0XFxDXcUvgx bXUDCF0IIZntY9i6Wm3NWdjIVAkrZnvoamg8em90pobJ/CuLyIT6aGvX5UqYOr4u /dDSWXj5GLM/8+vL1/yuPi/IFcTMbInI93f5EKMRuXbAuhE2VuZ+7pfStiwPtMEh X5sD4TVokfvRDv+PCpNEE0LbG2mhtvRyn5lE59rqF5GwJpFZaI2yod38p/INz59S 6XrNNYRfS89uCscgbbw1 =FTBY -----END PGP SIGNATURE----- --aIdEsMeqrR8eJI417BEfXNAIfFAhG8UUL--