From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: isinf and type-pun warning/error on OSF guile 1.8.7 Date: Thu, 10 Jun 2010 00:28:00 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276122380 20351 80.91.229.12 (9 Jun 2010 22:26:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 22:26:20 +0000 (UTC) Cc: bug-guile@gnu.org To: Jay K Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jun 10 00:26:19 2010 connect(): No such file or directory Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OMTio-0006qL-Md for guile-bugs@m.gmane.org; Thu, 10 Jun 2010 00:26:17 +0200 Original-Received: from localhost ([127.0.0.1]:50830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMTik-0002Wn-94 for guile-bugs@m.gmane.org; Wed, 09 Jun 2010 18:26:02 -0400 Original-Received: from [140.186.70.92] (port=40712 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMTib-0002Wd-9u for bug-guile@gnu.org; Wed, 09 Jun 2010 18:25:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMTiT-0005CH-8H for bug-guile@gnu.org; Wed, 09 Jun 2010 18:25:46 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:39926 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMTiT-0005CC-5t for bug-guile@gnu.org; Wed, 09 Jun 2010 18:25:45 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8C538B9553; Wed, 9 Jun 2010 18:25:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=dTgQNNSI5wo1 Z5BXfX+tm2qor/Q=; b=vune8lFe5iJTQpfP6NfWeBKDwJ7OK8MgUPU7qHDhPr7u jyOrinciXvS/sbTbDpDKRcvoX84iku/LoFqkn20xWKfpyvVRO43fe/bPfuWYNtm+ LrvG8uW4078kZromn1yzsDjzAaTqM91M854pH4oFL5+JzFGolbOxjjQ/NfR7LL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=Ueq4xz sL42VHnUyM9lB2A2Qi4v198Je3PrNpbt0GVpd6uDg+eZamZ3OQEIlkW/Y4Fp+4zs KYoqmGT/OIHRK28ZY1sAtfAXcv2D6i46A7QaLjrfw5V6N3rwVATbrLe/eNhrDSsB Jtm17C2fhwBeI/HdKT6/sUAvpk7qkE0D+zSV0= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8E197B954F; Wed, 9 Jun 2010 18:25:42 -0400 (EDT) Original-Received: from unquote (unknown [81.38.180.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 85C93B954E; Wed, 9 Jun 2010 18:25:40 -0400 (EDT) In-Reply-To: (Jay K.'s message of "Wed, 9 Jun 2010 15:43:49 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: F0AE25C6-7415-11DF-A2A6-9056EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4633 Archived-At: Hi Jay, On Wed 09 Jun 2010 17:43, Jay K writes: > libtool: compile:=C2=A0 gcc -DHAVE_CONFIG_H -I.. -I/home/jayk/src/guile-1= .8.7 -I.. -mieee -mieee -D_REENTRANT -pthread -g -O2 -Wall -Wmissing-protot= ypes -Werror -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbe= rs.Tpo -c /home/jayk/src/guile-1.8.7/libguile/numbers.c=C2=A0 -DPIC -o .lib= s/libguile_la-numbers.o > cc1: warnings being treated as errors > /home/jayk/src/guile-1.8.7/libguile/numbers.c: In function 'xisinf': > /home/jayk/src/guile-1.8.7/libguile/numbers.c:144: error: implicit > declaration of function 'isinf' > I couldn't find isinf in any header.=20 This call only occurs if configure detected support `isinf', so surely it is there? Can you check again? Barring that can you send a config.log, please. > /home/jayk/src/guile-1.8.7/libguile/numbers.c: In function 'guile_ieee_in= it': > /home/jayk/src/guile-1.8.7/libguile/numbers.c:623: error: dereferencing t= ype-punned pointer will break strict-aliasing rules > /home/jayk/src/guile-1.8.7/libguile/numbers.c:654: error: dereferencing t= ype-punned pointer will break strict-aliasing rules Does replacing that DINIFINITY block with the following help? /* OSF */ extern unsigned int DINFINITY[2]; union { double d; int i[2]; } alias; alias.i[0] =3D DINFINITY[0]; alias.i[1] =3D DINFINITY[1]; guile_Inf =3D alias.d; Likewise for DQNAN: { /* OSF */ extern unsigned int DQNAN[2]; union { double d; int i[2]; } alias; alias.i[0] =3D DQNAN[0]; alias.i[1] =3D DQNAN[1]; guile_NaN =3D alias.d; } > I recall seeing the same problem on Irix, where autoconf does a link check > and compiles without -Wmissing-prototype so it passes, because the functi= on > does exist somewhere. Autoconf checks need to more closely resemble > how later compilation will occur. How does that work though -- does isinf have no header/declaration? > /home/jayk/src/guile-1.8.7/test-suite/standalone/test-conversion.c:859: > error: dereferencing type-punned pointer will break strict-aliasing > rules make[4]: *** [test_conversion-test-conversion.o] Error 1 We can copy the above solution if it works. Let us know! Andy --=20 http://wingolog.org/