From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: guile-2.0 on mingw: the sequel Date: Thu, 22 Aug 2013 22:25:02 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd6b65ab607c904e48f15cd X-Trace: ger.gmane.org 1377203317 21170 80.91.229.3 (22 Aug 2013 20:28:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2013 20:28:37 +0000 (UTC) To: "guile-user@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Aug 22 22:28:40 2013 Return-path: Envelope-to: guile-user@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 1VCbUl-0006Ft-1n for guile-user@m.gmane.org; Thu, 22 Aug 2013 22:28:39 +0200 Original-Received: from localhost ([::1]:33636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCbUk-0000MK-JC for guile-user@m.gmane.org; Thu, 22 Aug 2013 16:28:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCbRJ-0004O6-Fb for guile-user@gnu.org; Thu, 22 Aug 2013 16:25:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCbRH-0000p3-FH for guile-user@gnu.org; Thu, 22 Aug 2013 16:25:05 -0400 Original-Received: from mail-vc0-x235.google.com ([2607:f8b0:400c:c03::235]:53918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCbRH-0000nV-87 for guile-user@gnu.org; Thu, 22 Aug 2013 16:25:03 -0400 Original-Received: by mail-vc0-f181.google.com with SMTP id hz10so1345632vcb.40 for ; Thu, 22 Aug 2013 13:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1tVYgrU/cuSN4XYzbHqCXHIpK/ui9G4QizCZSm5UBbw=; b=EkvwYmENSNrpHKZDgPnO4muPGMm+KIgBAgwPyxmW6iM4lTICj9oZTxGax+G1c494f2 RpPG1hyuk6To9DHxMKDjxMYfw4+Wjg11ieOTGxNWE2BugcEqFWP9YV0KEOonEuXKfrOi 0ky6Xjhfgv8UgBuVo8y7wBkmk/aOQfcYbDZTY7MeN2CPp/fAwPMsrD2PD1472W0KOxS4 F/OJswq5tJHnAX1gdqrg0ddNSmA8W2iPgCKbSXywwHKpa4I/S7hvm63xN7M0Kn4SFmIc FzLWwaIJyUSf07PrDkmFJntFmdP2ZOhdag0K04yUBSYOdHW6YuIoTOMRgXK7a/YdC4n+ o6AQ== X-Received: by 10.58.211.227 with SMTP id nf3mr13171868vec.20.1377203102490; Thu, 22 Aug 2013 13:25:02 -0700 (PDT) Original-Received: by 10.221.45.135 with HTTP; Thu, 22 Aug 2013 13:25:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::235 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10671 Archived-At: --047d7bd6b65ab607c904e48f15cd Content-Type: text/plain; charset=ISO-8859-1 Recently I've had a little more time to experiment with guile-2.0 on mingw32. Following the advice of Eli Zaretskii from http://lists.gnu.org/archive/html/guile-user/2013-06/msg00028.html, I compiled guile-2.0.9 without thread support, and modified my demos so they no longer use theads explicitly (they only use SDL timers). I managed to go through the compilation process, and (after modifying meta/Makefile.am according to Eli's patch) to make install. When I ran guile-2.0, I got the following message: === Throw without catch before boot: Throw to key misc-error with args ("primitive-load-path" "Unable to find file ~S in load path" ("ice-9/boot-9") #f)Aborting. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Cannot exit gracefully when init is in progress; aborting. === Supplying GUILE_LOAD_PATH=/usr/share/guile/2.0 explicitly helped a little, but only during the first run -- it compiled some files from that directory and proceeded to the prompt. When I tired later, I got a lot of messages like === ;;; compiling C:/MinGW/share/guile/2.0\ice-9\vlist.scm ;;; it seems C:/MinGW/share/guile/2.0\ice-9\vlist.scm ;;; is part of the compiler; skipping auto-compilation === and a single instance of the following message === ;;; WARNING: compilation of C:/MinGW/share/guile/2.0\system\vm\vm.scm failed: ;;; ERROR: no code for module (system vm vm) === and it even displayed the welcome message, but when I tried to (+ 2 3), I got: === While compiling expression: ERROR: In procedure module-lookup: Unbound variable: compile === What turned out the most painful, however, was that I wasn't able to run a program linked to libguile, not even the simplest one, like === #include int main() { scm_init_guile(); return 0; } === which caused an abort with the following message: === Throw without catch before boot: Throw to key stack-overflow with args (#f "Stack overflow" #f #f)Aborting. This application has requested [...] === When I tried a similar piece of code, but with scm_with_guile instead, I had the second part of the message ("The application has requested ...") in a "Microsoft Visual C++ Runtime Library" popup. Exporting GUILE_LOAD_PATH didn't help at all The Windows environment doesn't seem to be particularly developer-friendly (or maybe I just don't know the right tools), but I'd truly appreciate some help. (My goal is to provide a binary distribution of the SLAYER framework that I've presented before; it would allow programmers to develop portable multimedia applications in Guile Scheme. The development version of SLAYER is available at https://puszcza.gnu.org.ua/projects/slayer ) Also, it would be helpful if someone could point to the git revision which is known to build under windows. Thanks in advance, M. --047d7bd6b65ab607c904e48f15cd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Recently I've had a little more time to experimen= t
with guile-2.0 on mingw32. Following the advice of
Eli Zaretskii from=A0
I compiled guile-2.0.9 without thread support,=A0
and modifi= ed my demos so they no longer use theads
explicitly (they only us= e SDL timers).

I managed to go through the compila= tion process,
and (after modifying meta/Makefile.am according to Eli's
patch) to make install.

When I ran guile-2.0, I g= ot the following message:
=3D=3D=3D
Throw without catch= before boot:
Throw to key misc-error with args ("primitive-load-path" &qu= ot;Unable to find file ~S in load path" ("ice-9/boot-9") #f)= Aborting.

This application has requested the Runti= me to terminate it in an unusual way.
Please contact the application's support team for more information= .
Cannot exit gracefully when init is in progress; aborting.
=3D=3D=3D

Supplying GUILE_LOAD_PATH=3D/usr/s= hare/guile/2.0 explicitly=A0
helped a little, but only during the first run -- it=A0
comp= iled some files from that directory and proceeded to=A0
the promp= t.=A0
When I tired later, I got a lot of messages like
= =3D=3D=3D
;;; compiling C:/MinGW/share/guile/2.0\ice-9\vlist.scm
;;; i= t seems C:/MinGW/share/guile/2.0\ice-9\vlist.scm
;;; is part of t= he compiler; skipping auto-compilation
=3D=3D=3D

and a single instance of the following message
=3D=3D=3D
;;; WARNING: compilation of C:/MinGW/share/guile/2.0\system\vm\vm.sc= m failed:
;;; ERROR: no code for module (system vm vm)
= =3D=3D=3D

and it even displayed the welcome message, but when I t= ried
to (+ 2 3), I got:
=3D=3D=3D
While compi= ling expression:
ERROR: In procedure module-lookup: Unbound varia= ble: compile
=3D=3D=3D

What turned out the most painful, h= owever, was that I wasn't
able to run a program linked to lib= guile, not even the simplest
one, like
=3D=3D=3D
<= div>#include <stdio.h>

int main() {
=A0 scm_init_guile();
= =A0 return 0;
}
=3D=3D=3D

whic= h caused an abort with the following message:
=3D=3D=3D
Throw without catch before boot:
Throw to key stack-overflow with args (#f "Stack overflow" #= f #f)Aborting.

This application has requested [...= ]
=3D=3D=3D

When I tried a similar piece= of code, but with
scm_with_guile instead, I had the second part of
the message= ("The application has requested ...")
in a "Micro= soft Visual C++ Runtime Library" popup.

Expor= ting GUILE_LOAD_PATH didn't help at all

The Windows environment doesn't seem to be particul= arly
developer-friendly (or maybe I just don't know the right=
tools), but I'd truly appreciate some help. (My goal is
to provide a binary distribution of the SLAYER framework
tha= t I've presented before; it would allow programmers
to develo= p portable multimedia applications in Guile
Scheme. The developme= nt version of SLAYER is available

Also, it woul= d be helpful if someone could point
to the git revision which is = known to build under
windows.

Thanks in advance,
M.
--047d7bd6b65ab607c904e48f15cd--