From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylan Ulrich Bayirli/Kammer Newsgroups: gmane.lisp.guile.devel Subject: Re: 2.0.11 on OS X 10.9 / Xcode 5.1 Date: Tue, 22 Apr 2014 16:36:41 +0200 Message-ID: <87mwfdo2h2.fsf@taylan.uni.cx> References: <87vbuq435v.fsf@taylan.uni.cx> <87bnwak01s.fsf@taylan.uni.cx> <87zjjsfz9x.fsf@yeeloong.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398177422 10529 80.91.229.3 (22 Apr 2014 14:37:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2014 14:37:02 +0000 (UTC) Cc: guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Apr 22 16:36:55 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wcbob-0005hD-M9 for guile-devel@m.gmane.org; Tue, 22 Apr 2014 16:36:53 +0200 Original-Received: from localhost ([::1]:55519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcbob-0008WO-6u for guile-devel@m.gmane.org; Tue, 22 Apr 2014 10:36:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcboW-0008Su-S2 for guile-devel@gnu.org; Tue, 22 Apr 2014 10:36:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcboV-0003kD-To for guile-devel@gnu.org; Tue, 22 Apr 2014 10:36:48 -0400 Original-Received: from mail-ee0-x22d.google.com ([2a00:1450:4013:c00::22d]:34118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcboV-0003jt-MZ for guile-devel@gnu.org; Tue, 22 Apr 2014 10:36:47 -0400 Original-Received: by mail-ee0-f45.google.com with SMTP id d17so4658364eek.18 for ; Tue, 22 Apr 2014 07:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=cRpvL1/xDcjLjt+PSn03WrSROx402FelxfDdIgMY/DA=; b=YbSPqzKWkRQXRvK9EskJ5E0Ze0CoGKiyjuSyTOjngASbnCSTScvs/zfe9hSa79crdX 7ztcRdW7VHL6f6Qo7/xDrA9x6k+cgwQeXrJQDV2gazFmv/mANkzh0o0ZF6gSirqUwmuH QfTtj4Xh2h4c2HjG2+OtiDUWqaLZnOLpCU+VJeTRHfYGvQovjgukqukxD601B7JrWQqj xPJcnyRJNPeKdesDQ/G253uI6+Je7GABd2OVO1qC9rfKFb5VbOgx5lGPV4qyRebXi+8R RHkpZew9UM90xwGpHtWWvT7GsTsB4IR/Yt9sJXinwvWcnw1rype42KJh3mtz+AeH/dcM 4A7w== X-Received: by 10.14.219.137 with SMTP id m9mr11043388eep.77.1398177405599; Tue, 22 Apr 2014 07:36:45 -0700 (PDT) Original-Received: from taylan.uni.cx (p200300514A658DCC0213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a65:8dcc:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id l42sm113569231eew.19.2014.04.22.07.36.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Apr 2014 07:36:44 -0700 (PDT) In-Reply-To: <87zjjsfz9x.fsf@yeeloong.lan> (Mark H. Weaver's message of "Thu, 10 Apr 2014 21:08:58 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22d X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17095 Archived-At: Mark H Weaver writes: > What does (sin -0.0) evaluate to? > > My first guess is that at the C level, sin(-0.0) => 0.0 on your system, > although IEEE 754 and C11 (F.10.1.6) specify that sin(-0.0) => -0.0. > > If my guess is incorrect, then please put a breakpoint in > 'scm_c_make_polar' and see what's going wrong. Both 'ang' and 's' > should be -0.0, and then it should pass -0.0 as the second argument to > 'scm_c_make_rectangular'. > > Thanks, > Mark Update: (As mentioned on IRC, (sin -0.0) evaluates to -0.0, also via sin() on the C level in a minimal test-case compiled with the same compiler. However...) While trying to get the MacPorts-provided GCC 4.8 to build Guile with debugging symbols (and not succeeding), I noticed that adding -g or -ggdb to CFLAGS hides the issue, making #i1@-0 => 1.0-0.0i. It seems to be enough to recompile numbers.c (I touch it and re-run make with or without CFLAGS+="-g"). Interestingly even with -g or -ggdb the ".debug_info" of the installed guile executable is empty as per dwarfdump(1). I wonder if, by the time I actually manage to build with debug symbols, I'll be able to reproduce the bug. I wonder if I should concentrate on getting Guile to build with the native compiler of OS X 10.9 / Xcode 5.1 instead (clang). I don't have too much time for Guile at work anyway, and otherwise no OS X system. Taylan