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: Re: guile-2.0 on mingw: the sequel Date: Fri, 23 Aug 2013 11:29:27 +0200 Message-ID: References: <83vc2wj4hz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113378d8070b0c04e49a0b6a X-Trace: ger.gmane.org 1377250177 11887 80.91.229.3 (23 Aug 2013 09:29:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2013 09:29:37 +0000 (UTC) Cc: "guile-user@gnu.org" To: Eli Zaretskii Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 23 11:29:41 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 1VCnga-00048C-4D for guile-user@m.gmane.org; Fri, 23 Aug 2013 11:29:40 +0200 Original-Received: from localhost ([::1]:35984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCngZ-000191-OQ for guile-user@m.gmane.org; Fri, 23 Aug 2013 05:29:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCngQ-00017j-JE for guile-user@gnu.org; Fri, 23 Aug 2013 05:29:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCngO-0008SF-O2 for guile-user@gnu.org; Fri, 23 Aug 2013 05:29:30 -0400 Original-Received: from mail-vc0-x231.google.com ([2607:f8b0:400c:c03::231]:43980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCngO-0008S9-Hz; Fri, 23 Aug 2013 05:29:28 -0400 Original-Received: by mail-vc0-f177.google.com with SMTP id gf12so252037vcb.36 for ; Fri, 23 Aug 2013 02:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bU/y+jeYHrdQRmDJMEoUnQ72j4TFU+8Dh+VO1l9YFYU=; b=JUovjuQ32BEZiQ6ow3VU1pm6pFziUOofaO3sW9f7SWBIsLek7Hro+v0nswUQbjinV8 f0tU+NUYQSLOWCDtWU5GT4N8SffBpo2foiio4Fh3N5uaxfJ+tfWnQWUAsR/1WL580Pla 8sovpmFts5wt67obMxEmNehjIG1qskEPBTtUkLXlWfkRWPTS0nEtZCUCxUp6LinSGQwV xAWbEe2FkGTTHTsPhdNWAhpUjV68dWaFsukNSvyTEth0aM51DxbZ2XiCIx6YnIH4tCpG k1Jlo5iJfnM7HsmwckONTDE0swhgfHWRxbyZo8INY35aRhMugKDhMfekCKiLpkEzcIi4 IpQw== X-Received: by 10.221.44.136 with SMTP id ug8mr15701935vcb.13.1377250167948; Fri, 23 Aug 2013 02:29:27 -0700 (PDT) Original-Received: by 10.221.45.135 with HTTP; Fri, 23 Aug 2013 02:29:27 -0700 (PDT) In-Reply-To: <83vc2wj4hz.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::231 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:10673 Archived-At: --001a113378d8070b0c04e49a0b6a Content-Type: text/plain; charset=ISO-8859-1 2013/8/23 Eli Zaretskii > > > I managed to go through the compilation process, > > and (after modifying meta/Makefile.am according to Eli's > > patch) to make install. > > This compilation process includes compiling all the Scheme files that > come with Guile. Since you say it succeeded, I don't understand what > you say later, see below. Do you see a lot of *.go files in the > directory where you built Guile? > When I enter the build directory and type $ find ./ -name '*.go' it seems that every .scm file from `modules' directory has its .go counterpart, > > 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 seems to say that Guile cannot find its Scheme files. > > > Supplying GUILE_LOAD_PATH=/usr/share/guile/2.0 explicitly > > helped a little > > If that helped to avoid the failure to load, you probably didn't > specify a correct --prefix at configure time, or your "make install" > somehow didn't DTRT. > > I ./configured with --prefix=/usr (which is at the same mount point as / on my mingw configuration). When it comes to make install, I don't know what TRT would be > > but only during the first run -- it compiled some files from that > > directory and proceeded to the prompt. > > This is what I don't understand: which files it needed to compile, and > why? The compilation of Scheme files is part of the build process, > which you say you ran successfully to completion. What am I missing? > > I don't know either. > > but I'd truly appreciate some help. > > Let's start with the basics. Please describe: > > . Which build of what version of the GC library did you use, and > where did you get the Windows build of that library? Likewise for > other build dependencies, like libunistring, libiconv, etc. -- > please tell where you got each one of them. > > gc-7.2d compiled from the source from Hans Boehm's web site (I don't remember whether I finally configured it with pthreads or with windows threads, but I tried both for sure), gmp-5.2.1 from the source (I think it is shared version), libffi-3.0.13 from the source libunistring-0.9.3 from the source libiconv-1.14 and a few others bundled with mingw Everything built from the source was configured with --prefix=/usr . How did you configure Guile? If you used any --prefix argument, > please tell to which Windows directory does that prefix map on your > system? > Both / and /usr point to C:\MinGW\ Additionally, guile has been compiled with --program-suffix=-2.0 > . Did you see any warning or error messages during the build, and if > so, please show them. > > I can try to run the compilation for the second time, but surely there were no errors that would stop make from carrying on > . Did you see all the Scheme files being byte-compiled? > > Yes > . What command(s) did you use to install the built Guile? > > ./configure --without-threads --prefix=/usr make make install > . How do you run Guile after installing it? In particular, do you > run it from the MSYS Bash or from the Windows cmd window? > > So far I've been running it only in msys bash IOW, you didn't tell enough details about the build and the usage to > be able to guess what possible problems could be in your way. > > I'm eager to tell whatever is needed, if it could eventually help to get the process right. FWIW, I've successfully ran Guile from the Windows prompt after > building it, and successfully built GNU Make with Guile support. So > it's definitely possible to do that with MinGW. > > And would it be possible to distribute the binary release somehow? (in particular, the libguile.dll + scm/go modules that would be loaded from current directory) --001a113378d8070b0c04e49a0b6a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2013/8/23 Eli Zaretskii=A0<eliz@gnu.org>

> I managed to go through the compilation process,=
> and (after modifying meta/Makefile.am according to Eli's
&g= t; patch) to make install.

This compilation process includes c= ompiling all the Scheme files that
come with Guile. =A0Since you say it succeeded, I don't understand what=
you say later, see below. =A0Do you see a lot of *.go files in the
d= irectory where you built Guile?

When I = enter the build directory and type
$ find ./ -name '*.go'
it seems that every .scm file= from `modules' directory has its .go counterpart,

=

> When I ran guile-2.0, I got the following messag= e:
> =3D=3D=3D
> 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 seems to say that Guile cannot find its Scheme files.

> Supplying GUILE_LOAD_PATH=3D/usr/share/guile/2.0 ex= plicitly
> helped a little

If that helped to avoid the failure to lo= ad, you probably didn't
specify a correct --prefix at configure time= , or your "make install"
somehow didn't DTRT.


I ./configured with --prefix=3D/= usr (which is at the same mount point
as / on my mingw configurat= ion). When it comes to make install,
I don't know what TRT wo= uld be
=A0
> but only during the f= irst run -- it compiled some files from that
> directory and proceeded to the prompt.

This is what I don= 't understand: which files it needed to compile, and
why? =A0The com= pilation of Scheme files is part of the build process,
which you say you= ran successfully to completion. =A0What am I missing?

I don't know either.

=A0
> but I'd truly appreciate some help.

Let's start with the basics. =A0Please describe:

=A0. Which bui= ld of what version of the GC library did you use, and
=A0 =A0where did y= ou get the Windows build of that library? =A0Likewise for
=A0 =A0other build dependencies, like libunistring, libiconv, etc. --
= =A0 =A0please tell where you got each one of them.


gc-7.2d compiled from the source from Hans Boehm's web = site
(I don't remember whether I finally configured it with pthreads
or with windows threads, but I tried both for sure),
gmp-= 5.2.1 from the source (I think it is shared version),
libffi-3.0.= 13 from the source
libunistring-0.9.3 from the source
libiconv-1.14 and a few o= thers bundled with mingw
Everything built from the source was con= figured with --prefix=3D/usr

=A0. How did you configure Guile? =A0If you used any --prefix argument,
= =A0 =A0please tell to which Windows directory does that prefix map on your<= br>=A0 =A0system?

Both / and /usr point= to C:\MinGW\
Additionally, guile has been compiled with --program-suffix=3D-2.0
=A0
=A0. Did you see any warning or error messages during the build, and if
= =A0 =A0so, please show them.


I can = try to run the compilation for the second time, but
surely there = were no errors that would stop make from
carrying on
=A0
=A0. Did you see all t= he Scheme files being byte-compiled?

Yes
=A0
=A0. What com= mand(s) did you use to install the built Guile?


./configure --without-threads --prefix= =3D/usr
make
make install
=A0
=A0. How do you run Guile after installing it? =A0In particular, do you
= =A0 =A0run it from the MSYS Bash or from the Windows cmd window?

So far I've been running it only in msys bash
=
IOW, you didn't tell enough details about the bu= ild and the usage to
be able to guess what possible problems could be in your way.

I'm eager to tell whatever is needed, if it could eventuall= y
help to get the process right.

FWIW, I've successfully ran Guile from the Windows prompt after
buil= ding it, and successfully built GNU Make with Guile support. =A0So
it= 9;s definitely possible to do that with MinGW.

=A0=
And would it be possible to distribute the binary release someho= w?
(in particular, the libguile.dll + scm/go modules that would b= e loaded
from current directory)

--001a113378d8070b0c04e49a0b6a--