X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lists.alpinelinux.org (Postfix) with ESMTP id 8A9915C41AB for ; Fri, 20 Jan 2017 15:54:08 +0000 (GMT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v0KFnC9m035341 for ; Fri, 20 Jan 2017 10:54:07 -0500 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0a-001b2d01.pphosted.com with ESMTP id 283bmffcty-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 20 Jan 2017 10:54:07 -0500 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 20 Jan 2017 08:54:06 -0700 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 20 Jan 2017 08:54:06 -0700 Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 5EC8B19D803F; Fri, 20 Jan 2017 08:53:21 -0700 (MST) Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v0KFrs397274874; Fri, 20 Jan 2017 08:54:05 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5E4036A03F; Fri, 20 Jan 2017 08:54:05 -0700 (MST) Received: from [9.86.26.161] (unknown [9.86.26.161]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id C2AB16A045; Fri, 20 Jan 2017 08:54:04 -0700 (MST) Subject: Re: [alpine-aports] [PATCH] Add support for ppc64le To: Timo Teras References: <1484670631-10385-1-git-send-email-brenohl@br.ibm.com> <20170120142510.7dd61350@vostro> <20170120143532.1aa59d71@vostro> <68f63acc-b6ad-5370-55a8-a55ea4e8b479@br.ibm.com> <20170120154216.699bd22d@vostro> Cc: alpine-aports@lists.alpinelinux.org From: Breno Leitao Date: Fri, 20 Jan 2017 13:54:03 -0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: <20170120154216.699bd22d@vostro> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17012015-0008-0000-0000-000006FA0D58 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006467; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000200; SDB=6.00810336; UDB=6.00394864; IPR=6.00587689; BA=6.00005079; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013987; XFM=3.00000011; UTC=2017-01-20 15:54:06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17012015-0009-0000-0000-00003F2B48E6 Message-Id: <5864bbf3-3968-c1dd-e268-2078e9a29560@br.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-01-20_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1701200215 Hi Timo, On 01/20/2017 11:42 AM, Timo Teras wrote: > On Fri, 20 Jan 2017 11:30:56 -0200 > Breno Leitao wrote: > >> Hi Timo, >> >> On 01/20/2017 10:35 AM, Timo Teras wrote: >>> On Fri, 20 Jan 2017 14:25:10 +0200 >>> Timo Teras wrote: >>> >>>> On Tue, 17 Jan 2017 14:30:31 -0200 >>>> Breno Leitao wrote: >>>> >>>>> This is a patch that adds support for ppc64le platform. >>>>> Currently, musl fails to build with long double as 128-bits, >>>>> because POWER does not implement IEEE long double but IBM long >>>>> double which causes the following error: >>>>> >>>>> unsupported long double type musl >>>>> >>>>> This patch just turns "long double" into "double" for ppc64le. >>>> >>>> Should this be in gcc default flags instead? I suspect almost >>>> nothing will work with 128-bit double if c-library does not >>>> support it. And assume this affects ABI too? >> >> GCC on Powerpc has a native support for long double (128-bits float). >> The support is not using the traditional IEEE 754R, but a very >> specific format called "IBM extended double". >> >> This is transparent to most of the open source software. The only >> problem I see recently is related to musl that requires long double >> to be IEEE complaint. >> >> If we set the --with-long-double-64 as a default gcc option, we will >> kill *all* long double operations, i.e long double will be equal to >> double. I do not think that killing all the quad float operation is >> worth just to become IEEE 754R complaint. >> >> That is why I proposed to do this change only where it is required, >> and the only package to complain about it (long double not being >> IEEE) seems to be musl. >> >> POWER9 will add support for IEEE long double together with IBM >> extended double. > > But if you compile musl different from rest of system, then printf and > all C-library provided function operating on a double will not work for > the caller, due to assuming different double types. I'm pretty sure > you'd have a broken system in this case. > > The only case where it makes sense is that the software using 'double' > is not calling any libc functions. But this is rare case. If there's > such software they probably setup CFLAGS anyway properly for this with > -ffreestanding etc. > > I think ultimately the thing is that musl does not (yet?) support > 128-bit double on powerpc. You might want to ask on #musl or musl > mailing list about this. > > But for the time being we should just enable gcc's > --with-long-double-64 and live with this limitation. Yes, I agree with you. I just update the Pull Request with this new change and linked to this discussion: https://github.com/alpinelinux/aports/pull/765/commits/ae03bb344b4bd91fe3c9b91e49ab8270a27ac73c Thank you, Breno --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---