From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/919 Path: news.gmane.org!not-for-mail From: Richard Pennington Newsgroups: gmane.linux.lib.musl.general Subject: Re: A little more progress today with clang/LLVM Date: Sat, 26 May 2012 06:39:25 -0500 Message-ID: <11654110.pFvND7RYFl@main.pennware.com> References: <6099278.PLLg0Rc9Yf@main.pennware.com> <20120525230938.GZ163@brightrain.aerifal.cx> <20292255.R6gnMuUDLb@main.pennware.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: dough.gmane.org 1338032446 14782 80.91.229.3 (26 May 2012 11:40:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 May 2012 11:40:46 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-920-gllmg-musl=m.gmane.org@lists.openwall.com Sat May 26 13:40:45 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SYFMM-0002r9-86 for gllmg-musl@plane.gmane.org; Sat, 26 May 2012 13:40:38 +0200 Original-Received: (qmail 32413 invoked by uid 550); 26 May 2012 11:40:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32379 invoked from network); 26 May 2012 11:40:37 -0000 X-Authority-Analysis: v=2.0 cv=D8PF24tj c=1 sm=0 a=/l7PkcR/UKDnn7Q2wmGJww==:17 a=hdNgKtvFP3AA:10 a=fR_ARpL9IlcA:10 a=gQu5c9skE_AA:10 a=msTO8fkKGJEA:10 a=kj9zAlcOel0A:10 a=N4Ps669bAAAA:8 a=EwFgdRCrugfj4RgSttcA:9 a=CjuIK1q_8ugA:10 a=/l7PkcR/UKDnn7Q2wmGJww==:117 X-Cloudmark-Score: 0 X-Originating-IP: 65.26.59.215 User-Agent: KMail/4.8.3 (Linux/3.3.2-6.fc16.x86_64; KDE/4.8.3; x86_64; ; ) In-Reply-To: <20292255.R6gnMuUDLb@main.pennware.com> Xref: news.gmane.org gmane.linux.lib.musl.general:919 Archived-At: On Saturday, May 26, 2012 06:30:15 AM Richard Pennington wrote: > On Friday, May 25, 2012 07:09:38 PM Rich Felker wrote: > > On Fri, May 25, 2012 at 01:56:56PM -0500, Richard Pennington wrote: > > > I've done a little hacking on alltypes.h.sh which I'm in the process of > > > > > > testing. I have two goals: > > > 1. Make it work with clang's headers. > > > > Can you explain what the issue is? Are you talking about issues > > building clang itself, or building programs against musl using clang? > > In the latter case, musl does not use or support using > > compiler-provided headers. All of the standard headers are provided > > fully by musl. > > This is good to know. I'll stop using the compiler supplied headers. > [snip] Which reminds me why I went down the supplied header path in the first place. My tgmath.h test cases fail, for example (f is a float, d is a double): ../../../../../src/libs/math/001tgmath.c:15:7: error: assigning to 'float' from incompatible type 'typeof (*(0 ? (typeof (0 ? (double *)0 : (void *)!!((1 ? 1 : ((f))) / 2)))0 : (typeof (0 ? (typeof ((f)) *)0 : (void *)!!!((1 ? 1 : ((f))) / 2)))0))' (aka 'void') f = acos(f); ^ ~~~~~~~ ../../../../../src/libs/math/001tgmath.c:16:7: error: assigning to 'double' from incompatible type 'typeof (*(0 ? (typeof (0 ? (double *)0 : (void *)!!((1 ? 1 : ((d))) / 2)))0 : (typeof (0 ? (typeof ((d)) *)0 : (void *)!!!((1 ? 1 : ((d))) / 2)))0))' (aka 'void') d = acos(d); ^ ~~~~~~~ -Rich