From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matthew Keeter Newsgroups: gmane.lisp.guile.devel Subject: Re: Guile 2.2 on MSYS2 + MinGW Date: Thu, 25 Jan 2018 09:54:40 -0500 Message-ID: References: <07B6825B-EB62-47B1-957C-2ACB69671AD8@gmail.com> <83inc0wkf4.fsf@gnu.org> <86AF0A8E-4553-45B0-A0A7-66AF13C2B80E@gmail.com> <83wp0fuul5.fsf@gnu.org> <83k1wfupgy.fsf@gnu.org> <7F0BBE99-7D9F-4E29-9909-D6221FC40D0C@gmail.com> <83y3knm6dn.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_CB9E595C-9D70-4DFA-8FB7-D046397E6732" X-Trace: blaine.gmane.org 1516891988 31271 195.159.176.226 (25 Jan 2018 14:53:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Jan 2018 14:53:08 +0000 (UTC) Cc: guile-devel@gnu.org To: Eli Zaretskii Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jan 25 15:53:04 2018 Return-path: Envelope-to: guile-devel@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 1eeitZ-0007Gc-Vu for guile-devel@m.gmane.org; Thu, 25 Jan 2018 15:52:54 +0100 Original-Received: from localhost ([::1]:45054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeiva-0004E7-6w for guile-devel@m.gmane.org; Thu, 25 Jan 2018 09:54:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeivR-0004De-QW for guile-devel@gnu.org; Thu, 25 Jan 2018 09:54:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeivQ-0000yU-Hq for guile-devel@gnu.org; Thu, 25 Jan 2018 09:54:49 -0500 Original-Received: from mail-qt0-x233.google.com ([2607:f8b0:400d:c0d::233]:38574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eeivL-0000u5-SK; Thu, 25 Jan 2018 09:54:43 -0500 Original-Received: by mail-qt0-x233.google.com with SMTP id z10so19814107qti.5; Thu, 25 Jan 2018 06:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=S9SP8MAkH+xa0DiRgkz0wHrOKn00HnRk3R/Yoy59MyQ=; b=gmGxWCUt12GpGocrmvRiDhksiUjfALVBx0vPVe+lI9R1+fDJ6g9+ogGxUb3dQaAzjm 6X5FXCR+i71yPYnDoqSRHkzmqPc4qnNgSQjqsKwl02g3FLNqLw3Y4nGljoSBtbNWgfsV LCuwlyvrmh7xHjf7ae4+HBiuyMb+QbTuA2zAuQ3dvSniUKNG3wxx2l9rvDd5M88wM67u hxHppEJTXNgbTj4657aVumOzI3b8Q15K7Jj6hEjYutFIERMKuoD+1WcVypMmJDEEbHkH V+TrpTacoRm4l8ogUUWD/YOH6BYUXI/ulLXSLLMxR2/t4cIQol9PiwiqJCccKtGzUZki +zvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=S9SP8MAkH+xa0DiRgkz0wHrOKn00HnRk3R/Yoy59MyQ=; b=lPMq4mmuIsyn48rid8uSE6LwsJgb0C1y1qSmSPuf6pH/DJMXrhCGGOisT0l4wtxZ2D 9HqT7plFr4nv4zVgiMyRK98Ei9bQnRqw36O2wKmQ7I53wDDpUdj6ZlbC6V+6eBARaP/T 0LEyP89vlyzooOzugfvwZA2aLJXoIGA3GflIdzGyAQoiZOKZT/GWB+dN3tssAODUEPKO rWhzeWuS50puet/18QX8uEdmzk78jS0cfswif4zEeWF8FLpYNrscN21P8YtqB+CX0J/5 o6LMlXMqy+K1hrrMRMSdpziRQpo3RVsAvr0/BTnSFQ6rSi17OAOzWuGhMXDnTNiXDUbi v3dg== X-Gm-Message-State: AKwxyteREfCKSD1GlK7EUw+Fh/kMgN3qzE+ARtclnjcQRW/PKNpuYc28 TiDvBksK58hYPK8623jwUwc99n2g X-Google-Smtp-Source: AH8x224ptzWTAKx8bdwCQT/mUs6vYG5QL8Hgfu00/xNQwfCedP0qgIMSNrEnQAxOVOVMpN64+ntJLA== X-Received: by 10.200.112.10 with SMTP id x10mr17692989qtm.295.1516892082570; Thu, 25 Jan 2018 06:54:42 -0800 (PST) Original-Received: from [10.0.7.112] ([209.6.175.242]) by smtp.gmail.com with ESMTPSA id t22sm4013320qtj.15.2018.01.25.06.54.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 06:54:41 -0800 (PST) In-Reply-To: <83y3knm6dn.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.5.20) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::233 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.devel:19489 Archived-At: --Apple-Mail=_CB9E595C-9D70-4DFA-8FB7-D046397E6732 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 24, 2018, at 1:57 PM, Eli Zaretskii wrote: >=20 >> From: Matthew Keeter >> Date: Tue, 23 Jan 2018 21:18:17 -0500 >> Cc: guile-devel@gnu.org >>=20 >> BOOTSTRAP GUILEC ice-9/eval.go >> ;;; note: source file = C:/msys64/home/mkeeter/guile/src/guile-2.2.3/module/ice-9/boot-9.scm >> ;;; newer than compiled >> = C:/msys64/home/mkeeter/guile/src/guile-2.2.3/prebuilt/32-bit-little-endian= /ice-9/boot-9.go >> Backtrace: >> 8 (apply-smob/1 #) >> In ice-9/eval.scm: >> 657:36 7 (_ _) >> 619:8 6 (_ #(#(#))) >> 155:9 5 (_ _) >> 619:8 4 (_ #(#(#(#(#(#(#(#(#(#(#(#) =E2=96=92) =E2=96=92) =E2=96=92= ) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) = =E2=96=92)) >> 159:9 3 (_ #(#(#(#(#(#(#(#(#(#(#(#) =E2=96=92) =E2=96=92) =E2=96=92= ) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) = =E2=96=92)) >> 223:20 2 (proc #(#(#(#(#(#(#(#(#(#(# =E2=96=92) =E2=96=92) =E2=96=92= ) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) = =E2=96=92)) >> In unknown file: >> 1 (%resolve-variable (7 . SIGINT) #) >> 0 (_ # = #<=E2=96=92> =E2=96=92) >>=20 >> ERROR: Unbound variable: SIGINT >>=20 >> If I boot up the interpreter, it too does not know about SIGINT: >>=20 >> mkeeter@MATTHEWKEETA8AA MINGW32 ~/guile/src/build-i686-w64-mingw32 >> $ GUILE_AUTO_COMPILE=3D0 = GUILE_LOAD_PATH=3D/home/mkeeter/guile/src/guile-2.2.3/module >> ./meta/build-env guile >> GNU Guile 2.2.3 >> Copyright (C) 1995-2017 Free Software Foundation, Inc. >>=20 >> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. >> This program is free software, and you are welcome to redistribute it >> under certain conditions; type `,show c' for details. >>=20 >> Enter `,help' for help. >> scheme@(guile-user)> SIGINT >> ice-9/eval.scm:619:8: In procedure module-lookup: Unbound variable: = SIGINT >>=20 >> On my Mac, the variable is defined (and has a value of 2). >=20 > You should grep the libguile directory for "SIGINT" and make sure the > file(s) involved in defining that variable are compiled in your build. > (The MinGW port of Guile 2.0.11 I have here does know about SIGINT, > FWIW.) >=20 >> I believe the odd printing is a quirk of the MinGW terminal =E2=80=93 = it certainly doesn=E2=80=99t help in >> debugging, but I think the fundamental issue here is Guile not = knowing about SIGINT. >=20 > Yes, but you should also look into the printing issue, as that > shouldn't happen. It's a problem of some sort, perhaps Guile thinks > your terminal is UTF-8 capable or something. Well, that was an obvious problem: I had configured the build with = --without-posix, which I guess is no longer supported. Unfortunately, the rebuild is now back to having trouble with building = the documentation, with the same error as before: ERROR: In procedure primitive-load-path: In procedure primitive-load-path: Unable to find file = "C:/msys64/home/mkeeter/guile/src/build-i686-w64-mingw32/libguile/C:/msys6= 4/home/mkeeter/guile/src/build-i686-w64-mingw32/meta/guild" in load path Time to strap a bunch of instrumentation onto load.c and see where this = is coming from=E2=80=A6 -Matt= --Apple-Mail=_CB9E595C-9D70-4DFA-8FB7-D046397E6732 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Jan 24, 2018, at 1:57 PM, Eli Zaretskii <eliz@gnu.org> wrote:

From: Matthew Keeter = <matt.j.keeter@gmail.com>
Date: Tue, 23 = Jan 2018 21:18:17 -0500
Cc: guile-devel@gnu.org

 BOOTSTRAP GUILEC ice-9/eval.go
;;; note: source file = C:/msys64/home/mkeeter/guile/src/guile-2.2.3/module/ice-9/boot-9.scm
;;;       newer than = compiled
C:/msys64/home/mkeeter/guile/src/guile-2.2.3/prebuilt/32-bit-li= ttle-endian/ice-9/boot-9.go
Backtrace:
=           8 = (apply-smob/1 #<catch-closure 4fba0e0>)
In = ice-9/eval.scm:
  657:36  7 (_ _)
   619:8  6 (_ #(#(#<directory = (guile-user) 4fdcb40>)))
   155:9 =  5 (_ _)
   619:8  4 (_ = #(#(#(#(#(#(#(#(#(#(#(#) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) = =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92))
   159:9  3 (_ #(#(#(#(#(#(#(#(#(#(#(#) = =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92= ) =E2=96=92) =E2=96=92) =E2=96=92))
  223:20 =  2 (proc #(#(#(#(#(#(#(#(#(#(# =E2=96=92) =E2=96=92) =E2=96=92) = =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) =E2=96=92) = =E2=96=92))
In unknown file:
=           1 = (%resolve-variable (7 . SIGINT) #<directory (scripts co=E2=96=92>) =           0 (_ = #<procedure 62ef720 at ice-9/eval.scm:330:13 ()> #<=E2=96=92> = =E2=96=92)

ERROR: Unbound variable: = SIGINT

If I boot up the interpreter, it too = does not know about SIGINT:

mkeeter@MATTHEWKEETA8AA MINGW32 = ~/guile/src/build-i686-w64-mingw32
$ GUILE_AUTO_COMPILE=3D0 = GUILE_LOAD_PATH=3D/home/mkeeter/guile/src/guile-2.2.3/module
./meta/build-env guile
GNU Guile 2.2.3
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for = details type `,show w'.
This program is free software, and = you are welcome to redistribute it
under certain = conditions; type `,show c' for details.

Enter= `,help' for help.
scheme@(guile-user)> SIGINT
ice-9/eval.scm:619:8: In procedure module-lookup: Unbound = variable: SIGINT

On my Mac, the variable is = defined (and has a value of 2).

You should grep the libguile directory for "SIGINT" and make = sure the
file(s) involved in defining that variable are = compiled in your build.
(The MinGW port of Guile 2.0.11 I = have here does know about SIGINT,
FWIW.)

I believe the odd = printing is a quirk of the MinGW terminal =E2=80=93 it certainly = doesn=E2=80=99t help in
debugging, but I think the = fundamental issue here is Guile not knowing about SIGINT.

Yes, but you should also look = into the printing issue, as that
shouldn't happen. =  It's a problem of some sort, perhaps Guile thinks
your= terminal is UTF-8 capable or something.

Well, that was an obvious problem: =  I had configured the build with --without-posix, which I guess is = no longer supported.

Unfortunately, the rebuild is now back to having trouble with = building the documentation, with the same error as before:

ERROR: In procedure = primitive-load-path:
In procedure primitive-load-path: Unable to = find file = "C:/msys64/home/mkeeter/guile/src/build-i686-w64-mingw32/libguile/C:/msys6= 4/home/mkeeter/guile/src/build-i686-w64-mingw32/meta/guild" in load = path

Time = to strap a bunch of instrumentation onto load.c and see where this is = coming from=E2=80=A6

-Matt
= --Apple-Mail=_CB9E595C-9D70-4DFA-8FB7-D046397E6732--