From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.bugs Subject: bug#24862: guile 2.0.13 build error under macOS 10.12 Sierra Date: Mon, 7 Nov 2016 17:28:47 -0800 Message-ID: References: <9169B1E8-84CD-45DF-ADDB-8C7AF0A9597C@schamschula.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_302D1F0F-5E8C-4A9D-AA39-DE0B215372FF" X-Trace: blaine.gmane.org 1478568560 14983 195.159.176.226 (8 Nov 2016 01:29:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2016 01:29:20 +0000 (UTC) To: 24862@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Nov 08 02:29:16 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3vDq-0002ZU-2n for guile-bugs@m.gmane.org; Tue, 08 Nov 2016 02:29:10 +0100 Original-Received: from localhost ([::1]:57631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3vDt-0005me-0R for guile-bugs@m.gmane.org; Mon, 07 Nov 2016 20:29:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3vDl-0005mZ-Ow for bug-guile@gnu.org; Mon, 07 Nov 2016 20:29:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3vDi-0006v3-IN for bug-guile@gnu.org; Mon, 07 Nov 2016 20:29:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c3vDi-0006uE-Bc for bug-guile@gnu.org; Mon, 07 Nov 2016 20:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c3vDi-0006FY-0N for bug-guile@gnu.org; Mon, 07 Nov 2016 20:29:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <9169B1E8-84CD-45DF-ADDB-8C7AF0A9597C@schamschula.com> Resent-From: Matt Wette Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 08 Nov 2016 01:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24862 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 24862-submit@debbugs.gnu.org id=B24862.147856853724014 (code B ref 24862); Tue, 08 Nov 2016 01:29:01 +0000 Original-Received: (at 24862) by debbugs.gnu.org; 8 Nov 2016 01:28:57 +0000 Original-Received: from localhost ([127.0.0.1]:48851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3vDd-0006FG-6T for submit@debbugs.gnu.org; Mon, 07 Nov 2016 20:28:57 -0500 Original-Received: from mail.alumni.caltech.edu ([131.215.242.114]:36884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3vDb-0006F0-DK for 24862@debbugs.gnu.org; Mon, 07 Nov 2016 20:28:56 -0500 Original-Received: from nautilus.championbroadband.com (216-165-246-244.championbroadband.com [216.165.246.244]) (Authenticated sender: mwette@alumni.caltech.edu) by mail.alumni.caltech.edu (Postfix) with ESMTPSA id 0F5E91200C2 for <24862@debbugs.gnu.org>; Mon, 7 Nov 2016 17:28:48 -0800 (PST) X-DKIM: Sendmail DKIM Filter v2.8.3 mail.alumni.caltech.edu 0F5E91200C2 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alumni.caltech.edu; s=enforce; t=1478568528; bh=O0+dQC4+A1DBq1udWdUhiOK/6x+DwURcLIlCwwgZQJc=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=irqlJhPezP+HZ81KGpA4qT+j0RnFswo443kKpbyNUGQJTMQ6nyYTRcdnQJawFuxN/ rjrw+gxs0JAHky70XRFh5Ta2KTWISnQXrm9P2JR+KjZEYTbuDsGDMTN4HHVP1nLxeW oJTfytOloHQzudvpwApIssZUH/t/rQTb4fmE2GLQ= X-Mailer: Apple Mail (2.3251) X-MailScanner-Information-Alumni: X-Alumni-MailScanner-ID: 0F5E91200C2.A5113 X-MailScanner-Alumni: No Virii found X-MailScanner-From: mwette@alumni.caltech.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8456 Archived-At: --Apple-Mail=_302D1F0F-5E8C-4A9D-AA39-DE0B215372FF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I am trying to work this. I have a MacBook Pro running Sierra (Mac OS = 10.12.1). =20 I have macports installed, and was able to get guile 2.0.12 installed in = the macports tree (/opt/local) using a custom macports file. Note: Sierra seems to have issues running gdb. Apparently the SIP needs = to be turned off. Instead I have been using the Xcode lldb debugger. Note: Sierra has an issue with DYLD_LIBRARY_PATH. Namely, it will not = copy that env variable to sub-shells: mwette$ export DYLD_LIBRARY_PATH=3Dabc mwette$ DYLD_LIBRARY_PATH=3Ddef echo $DYLD_LIBRARY_PATH abc I downloaded guile-2.0.13 and applied the macports sierra.patch = (attached). I used CC=3Dgcc-mp-6 CFLAGS=3D-g LDFLAGS=3D-g ./configure --prefix=3D/opt/local = --enable-guile-debug --disable-shared Build when trying to compile eval.scm =3D> eval.go. I set up the = associated environment in my shell and found that executing in build-env = or not makes a difference. =20 mwette$ env | grep GUILE GUILE=3D/Users/mwette/proj/scheme/guile/guile-2.0.13/libguile/guile = GUILE_LOAD_PATH=3D/Users/mwette/proj/scheme/guile/guile-2.0.13/module:/Use= rs/mwette/proj/scheme/guile/guile-2.0.13/guile-readline:/Users/mwette/proj= /scheme/guile/guile-2.0.13 = GUILE_LOAD_COMPILED_PATH=3D/Users/mwette/proj/scheme/guile/guile-2.0.13/mo= dule:/Users/mwette/proj/scheme/guile/guile-2.0.13/guile-readline GUILE_WARN_DEPRECATED=3Ddetailed GUILE_INSTALL_LOCALE=3D1 GUILE_SYSTEM_PATH=3D GUILE_AUTO_COMPILE=3D0 GUILE_SYSTEM_EXTENSIONS_PATH=3D Within build-env it takes 12 seconds to crash. Without build-env it = returns immediately. I don=E2=80=99t know if that means it is working = or not: it does create a eval.go file. mwette$ time build-env guild compile = --target=3D"x86_64-apple-darwin16.1.0" -Wunbound-variable = -Warity-mismatch -Wformat -L = "/Users/mwette/proj/scheme/guile/guile-2.0.13/module" -L = /Users/mwette/proj/scheme/guile/guile-2.0.13/module/ -L = /Users/mwette/proj/scheme/guile/guile-2.0.13/guile-readline/ -o = "ice-9/eval.go" "ice-9/eval.scm"=20 Backtrace: In unknown file: ?: 3 [apply-smob/1 # #t ...] ?: 2 [apply-smob/1 #] ?: 1 [primitive-eval ((@ # %) (begin # # #))] ?: 0 [mkstemp! "ice-9/eval.go.XXXXXX" "wb"] ERROR:=20 real 0m12.227s user 0m12.598s sys 0m0.098s mwette$ time guild compile --target=3D"x86_64-apple-darwin16.1.0" = -Wunbound-variable -Warity-mismatch -Wformat -L = "/Users/mwette/proj/scheme/guile/guile-2.0.13/module" -L = /Users/mwette/proj/scheme/guile/guile-2.0.13/module/ -L = /Users/mwette/proj/scheme/guile/guile-2.0.13/guile-readline/ -o = "ice-9/eval.go" "ice-9/eval.scm"=20 ;;; note: source file = /Users/mwette/proj/scheme/guile/guile-2.0.13/module/system/base/target.scm= ;;; newer than compiled = /opt/local/lib/guile/2.0/ccache/system/base/target.go wrote `ice-9/eval.go' real 0m0.420s user 0m0.353s sys 0m0.036s --Apple-Mail=_302D1F0F-5E8C-4A9D-AA39-DE0B215372FF Content-Type: multipart/mixed; boundary="Apple-Mail=_2131BB9A-C7B2-4D25-BF33-EDFF8BE170E4" --Apple-Mail=_2131BB9A-C7B2-4D25-BF33-EDFF8BE170E4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
I am trying to work this.   I have a = MacBook Pro running Sierra (Mac OS 10.12.1).  

I have macports = installed, and was able to get guile 2.0.12 installed in the macports = tree (/opt/local) using a custom macports file.

Note: Sierra seems to have issues = running gdb.  Apparently the SIP needs to be turned off. =  Instead I have been using the Xcode lldb debugger.

Note: Sierra has an = issue with DYLD_LIBRARY_PATH.  Namely, it will not copy that env = variable to sub-shells:

mwette$ export DYLD_LIBRARY_PATH=3Dabc
mwette$ = DYLD_LIBRARY_PATH=3Ddef echo $DYLD_LIBRARY_PATH
abc

I downloaded guile-2.0.13 and applied the macports = sierra.patch (attached).  I used

CC=3Dgcc-mp-6 CFLAGS=3D-g LDFLAGS=3D-g = ./configure --prefix=3D/opt/local --enable-guile-debug = --disable-shared

Build = when trying to compile eval.scm =3D> eval.go.  I set up the = associated environment in my shell and found that executing in build-env = or not makes a difference.  

mwette$ env | grep GUILE
GUILE=3D/Users/mwette/proj/scheme/guile/guile-2.0.13/libguile/g= uile
GUILE_LOAD_PATH=3D/Users/mwette/proj/scheme/guile/guile-2.0.13/= module:/Users/mwette/proj/scheme/guile/guile-2.0.13/guile-readline:/Users/= mwette/proj/scheme/guile/guile-2.0.13
GUILE_LOAD_COMPILED_PATH=3D/Users/mwette/proj/scheme/guile/guil= e-2.0.13/module:/Users/mwette/proj/scheme/guile/guile-2.0.13/guile-readlin= e
GUILE_WARN_DEPRECATED=3Ddetailed
GUILE_INSTALL_LOCALE=3D1
GUILE_SYSTEM_PATH=3D
GUILE_AUTO_COMPILE=3D0
GUILE_SYSTEM_EXTENSIONS_PATH=3D

Within build-env it takes 12 seconds to = crash.  Without build-env it returns immediately.  I don=E2=80=99= t know if that means it is working or not: it does create a eval.go = file.

mwette$ time build-env guild compile = --target=3D"x86_64-apple-darwin16.1.0" -Wunbound-variable = -Warity-mismatch -Wformat  -L = "/Users/mwette/proj/scheme/guile/guile-2.0.13/module" -L = /Users/mwette/proj/scheme/guile/guile-2.0.13/module/  -L = /Users/mwette/proj/scheme/guile/guile-2.0.13/guile-readline/  -o = "ice-9/eval.go" "ice-9/eval.scm" 
Backtrace:
In unknown file:
   ?: 3 [apply-smob/1 #<boot-closure 106933000 = (_ _ _)> #t ...]
   ?: 2 [apply-smob/1 = #<catch-closure 107017ce0>]
   ?: 1 [primitive-eval ((@ # %) (begin # # = #))]
   ?: 0 [mkstemp! = "ice-9/eval.go.XXXXXX" "wb"]

ERROR: 
real = 0m12.227s
user 0m12.598s
sys = 0m0.098s


mwette$ = time guild compile --target=3D"x86_64-apple-darwin16.1.0" = -Wunbound-variable -Warity-mismatch -Wformat  -L = "/Users/mwette/proj/scheme/guile/guile-2.0.13/module" -L = /Users/mwette/proj/scheme/guile/guile-2.0.13/module/  -L = /Users/mwette/proj/scheme/guile/guile-2.0.13/guile-readline/  -o = "ice-9/eval.go" "ice-9/eval.scm" 
;;; = note: source file = /Users/mwette/proj/scheme/guile/guile-2.0.13/module/system/base/target.scm=
;;;       newer than compiled = /opt/local/lib/guile/2.0/ccache/system/base/target.go
wrote = `ice-9/eval.go'

real = 0m0.420s
user 0m0.353s
sys = 0m0.036s


= --Apple-Mail=_2131BB9A-C7B2-4D25-BF33-EDFF8BE170E4 Content-Disposition: attachment; filename=sierra.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="sierra.patch" Content-Transfer-Encoding: 7bit --- libguile/stime.c +++ libguile/stime.c @@ -834,6 +834,10 @@ scm_init_stime() #ifdef HAVE_POSIX_CPUTIME { +#ifdef __APPLE__ + if (clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &posix_run_time_base) == 0) + get_internal_run_time = get_internal_run_time_posix_timer; +#else clockid_t dummy; /* Only use the _POSIX_CPUTIME clock if it's going to work across @@ -843,6 +847,7 @@ scm_init_stime() get_internal_run_time = get_internal_run_time_posix_timer; else errno = 0; +#endif } #endif /* HAVE_POSIX_CPUTIME */ #endif /* HAVE_CLOCKTIME */ --Apple-Mail=_2131BB9A-C7B2-4D25-BF33-EDFF8BE170E4 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
--Apple-Mail=_2131BB9A-C7B2-4D25-BF33-EDFF8BE170E4-- --Apple-Mail=_302D1F0F-5E8C-4A9D-AA39-DE0B215372FF--