From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93594 invoked by alias); 24 Mar 2016 13:29:58 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 92013 invoked by uid 89); 24 Mar 2016 13:29:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=accessible, Hx-languages-length:1381, Doing, xtk X-HELO: mail-in-13.arcor-online.net Received: from mail-in-13.arcor-online.net (HELO mail-in-13.arcor-online.net) (151.189.21.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Thu, 24 Mar 2016 13:29:47 +0000 Received: from mail-in-16-z2.arcor-online.net (mail-in-16-z2.arcor-online.net [151.189.8.33]) by mx.arcor.de (Postfix) with ESMTP id 3qW6jg5Fgsz3337 for ; Thu, 24 Mar 2016 14:29:43 +0100 (CET) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mail-in-16-z2.arcor-online.net (Postfix) with ESMTP id A9E8A213638 for ; Thu, 24 Mar 2016 14:29:43 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-07.arcor-online.net 3qW6jg2Gqfz1WZN Received: from Gertrud (p54B46F42.dip0.t-ipconnect.de [84.180.111.66]) (Authenticated sender: stromeko@arcor.de) by mail-in-07.arcor-online.net (Postfix) with ESMTPSA id 3qW6jg2Gqfz1WZN for ; Thu, 24 Mar 2016 14:29:43 +0100 (CET) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: Dodgy functions (was: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.5.0-0.8) References: <56EC6BDA.7050505@cornell.edu> <20160318214509.GD11113@calimero.vinschen.de> <8760whmn3a.fsf@Rainer.invalid> <20160320152540.GG11113@calimero.vinschen.de> <87wpoxkm28.fsf@Rainer.invalid> <56EF0583.5030302@cygwin.com> Date: Fri, 25 Mar 2016 09:00:00 -0000 In-Reply-To: <56EF0583.5030302@cygwin.com> (Yaakov Selkowitz's message of "Sun, 20 Mar 2016 15:18:11 -0500") Message-ID: <87lh58xav0.fsf_-_@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2016-03/txt/msg00152.txt.bz2 Yaakov Selkowitz writes: >> Doing that seems to have changed the behaviour of sprintf and now one of >> the tests involving NaN and the %a format fails. Ideas? > > Can you be more specific? I've finally drilled to the bottom of this (on 64bit so far, but the issues and workarounds are quite likely similar on 32bit). One part of the problem was that not all symbols are accessible via the import libraries libc.a and libm.a (sys_errlst and tzname get recognized additionally if you look at libcygwin.a) . The second part of the problem is that finite and finitel seem to not work correctly. These get picked up when I either extract symbols from libm.a, libcygwin.a or let Configure check for the presence of those symbols with a test program instead of nm (which picks them up from libcygwin presumably). Long story short, they seem to report a finite value on at least some NaN constructs and then the %a format for the Perl sprintf outputs those bits as a hex FP number rather than just printing "NaN". On 64bit the culprit is actually finitel, of course, since Perl gets compiled with long doubles. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds