From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: guile 2.0.9 build on mingw Date: Wed, 12 Jun 2013 00:11:46 +0200 Message-ID: <87txl4mh5p.fsf@gnu.org> References: <83sj1hv2ml.fsf@gnu.org> <874ndx9y7h.fsf@pobox.com> <83ip2bt4qk.fsf@gnu.org> <8761xqhyyt.fsf@gnu.org> <83li6mt18y.fsf@gnu.org> <83wqq3mcq9.fsf@gnu.org> <87k3m3kor5.fsf@gnu.org> <83ehcalysu.fsf@gnu.org> <87sj0pvl4a.fsf@tines.lan> <837gi1n3v5.fsf@gnu.org> <87k3m1vg8b.fsf@tines.lan> <83txl4lhby.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370989046 27929 80.91.229.3 (11 Jun 2013 22:17:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Jun 2013 22:17:26 +0000 (UTC) Cc: guile-user@gnu.org To: Eli Zaretskii Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jun 12 00:17:26 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 1UmWsY-00062a-7H for guile-user@m.gmane.org; Wed, 12 Jun 2013 00:17:26 +0200 Original-Received: from localhost ([::1]:50204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmWsX-0007ZZ-NM for guile-user@m.gmane.org; Tue, 11 Jun 2013 18:17:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmWsL-0007Yo-P2 for guile-user@gnu.org; Tue, 11 Jun 2013 18:17:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmWsH-0005g9-20 for guile-user@gnu.org; Tue, 11 Jun 2013 18:17:13 -0400 Original-Received: from hera.aquilenet.fr ([141.255.128.1]:33247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmWsB-0005Uc-IQ; Tue, 11 Jun 2013 18:17:03 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CF670D01; Wed, 12 Jun 2013 00:11:57 +0200 (CEST) Original-Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i7PLrbYeI8hu; Wed, 12 Jun 2013 00:11:57 +0200 (CEST) Original-Received: from pluto (3-254.197-178.cust.bluewin.ch [178.197.254.3]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9200FC13; Wed, 12 Jun 2013 00:11:55 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Prairial an 221 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <83txl4lhby.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Jun 2013 19:53:21 +0300") User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 141.255.128.1 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:10427 Archived-At: Eli Zaretskii skribis: >> From: Mark H Weaver >> Cc: ludo@gnu.org, guile-user@gnu.org >> Date: Mon, 10 Jun 2013 16:54:44 -0400 >>=20 >> There are some remaining problems revealed by the test suite, but the >> two people I spoke to reported that Guile 2.0.9 mostly works on mingw, >> if configured with --disable-posix. >>=20 >> >> Are you configuring Guile with --disable-posix? >> > >> > No. Should I? >>=20 >> Yes. Ideally our configure script would --disable-posix by default on >> mingw, but for now it has to be specified manually. > > Thanks. I tried that, but it didn't help. I see the same problems as > without --disable-posix. > > What eventually did the trick was configuring --with-threads=3Dno. Once > I did that, the build ran successfully and almost 100% cleanly to > completion. (I will report the details about "almost" later.) > > I will try to compare the two builds and find what breaks the one with > threads. Since my knowledge about pthreads in general and on Windows > in particular is strictly zero, I'm not sure I'll know where to look. > So perhaps the following observation will help someone here to come up > with ideas or hints about where to look: Guile gets stuck when it is > about to exit. That is, it processes its input completely (e.g., > compiles the .scm file), writes out the corresponding output (e.g., > the .go file), announces that the output was written, and then gets > stuck. So this suggests something related to some bookkeeping done at > exit; any ideas what that could be? The backtrace you reported before suggests that it=E2=80=99s stuck waiting = for a signal delivery thread mutex, right? I have no idea how this would happen, though. > If no ideas are brought up, I guess the conclusion is that Guile on > Windows cannot be built with pthreads, at least not with their binary > package distributed by mingw.org, which is what I used. [...] FWIW, Guile cross-builds fine to MinGW with pthread-w32 and pthread support, but that runs none of the C code since it uses the native Guile to compile the .scm files. > Another set of disabled features is the network related functions -- > for some reason, the build process insists on h_errno being available, > although h_errno is an obsolete facility that AFAIK no one is treating > seriously anymore. Why not use errno instead? I don=E2=80=99t know. It=E2=80=99s used only in net_db.c, and only if =E2= =80=98h_errno=E2=80=99 is available. Is there any harm in using it when it=E2=80=99s available? Could it be that older-but-not-too-old MinGW versions required use of =E2=80=98h_errno=E2=80=99? Thanks, Ludo=E2=80=99.