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: Wed, 23 Apr 2014 19:51:25 +0200 Message-ID: <87a9bcndcy.fsf@taylan.uni.cx> References: <87vbuq435v.fsf@taylan.uni.cx> <87bnwak01s.fsf@taylan.uni.cx> <87zjjsfz9x.fsf@yeeloong.lan> <87mwfdo2h2.fsf@taylan.uni.cx> <87ppk9cor5.fsf@yeeloong.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398275517 4747 80.91.229.3 (23 Apr 2014 17:51:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 17:51:57 +0000 (UTC) Cc: guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Apr 23 19:51:50 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 1Wd1Ke-00027m-7Z for guile-devel@m.gmane.org; Wed, 23 Apr 2014 19:51:40 +0200 Original-Received: from localhost ([::1]:34106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd1Kd-0004Wj-NP for guile-devel@m.gmane.org; Wed, 23 Apr 2014 13:51:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd1KW-0004KH-Ex for guile-devel@gnu.org; Wed, 23 Apr 2014 13:51:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wd1KV-0006q4-6N for guile-devel@gnu.org; Wed, 23 Apr 2014 13:51:32 -0400 Original-Received: from mail-ee0-x232.google.com ([2a00:1450:4013:c00::232]:47854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd1KV-0006pa-0B for guile-devel@gnu.org; Wed, 23 Apr 2014 13:51:31 -0400 Original-Received: by mail-ee0-f50.google.com with SMTP id c13so1041761eek.23 for ; Wed, 23 Apr 2014 10:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; bh=t34S5SnOK+3TvQvfJFo4SXYaTYRK5wkoPg7MUoBOntE=; b=InOgPufyp90ql0c2SWj14Jm3ywXF2oEcH45/20JLdbnp854dwt/RtJ7aBQ58RpHfH0 wt9EzfmfprhFaDDf0AjixfPHBSb+n5MQQwpUNKcnMpb3QNe8x6lj+gFk+luLVWezonkF i108TWP4tvY1AtSHC6Rg7W9S0d4/KqY96/yQkAPnfriBHAoTu7VejUMavEFPrK8/87YV rbeCHP9pn0Luux5rZg+MRNAnTT6XZ2QWgc/KqI5bPf22myldLdId+wqNIbJI58cVVQtV pppO/VjM9DCDgt412Nh7YIDfli4zr5qYD+cHwXFYP9gGzZ5zm1O8u5TtIuIr+sgYh5c1 cx5A== X-Received: by 10.14.95.8 with SMTP id o8mr64398056eef.15.1398275489169; Wed, 23 Apr 2014 10:51:29 -0700 (PDT) Original-Received: from taylan.uni.cx (p200300514A658D250213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a65:8d25:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id q49sm8203994eem.34.2014.04.23.10.51.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Apr 2014 10:51:28 -0700 (PDT) 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::232 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:17101 Archived-At: Mark H Weaver writes: > Are you passing any optimization flags? There are some, such as -Ofast, > -ffast-math, -funsafe-math-optimizations, -fno-signed-zeros, > -fassociative-math, and maybe some others that might result in this bug. I don't pass any flags to ./configure or make, other than --prefix to ./configure. I have several *PATH environment variables exported, but I guess that wouldn't be relevant. > Otherwise, I suspect that there's some optimization bug in the compiler > you're using. What exact version of GCC are you using? These problems > don't seem to be happening with GCC 4.8.2 on GNU/Linux systems. bash-3.2$ gcc-mp-4.8 --version gcc-mp-4.8 (MacPorts gcc48 4.8.2_0) 4.8.2 That aside, I noticed that passing CFLAGS+="-g" to make ends up inhibiting the passing of -O2 to gcc-mp-4.8, so surely the issue lies somewhere in there. The -g flag is passed by default anyway, so the only effect of the CFLAGS+="-g" on make is to inhibit -O2 after all. I also figured out the problem with debug symbols: apparently the ld on OS X doesn't carry over debug info from .o files to a generated .dylib file. Instead, one later runs dsymutil(1) on the .dylib file, which gathers the debug info from the .o files and puts them into a .dSYM directory; gdb even loads this automatically when it's in the standard location. The next roadblock I hit is that when I run gdb on the guile executable, it doesn't seem to realize that the libguile dylib is loaded, so still lacks the debug symbols from it. (When I enter "info sharedlibrary" it says "No shared libraries loaded at this time" although the Guile REPL and all runs, so libguile is obviously loaded.) I'll continue tomorrow if I have time again at work. Taylan