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.bugs Subject: bug#12887: Broken pipe while generating guile-procedures.texi Date: Fri, 07 Dec 2012 22:59:55 +0100 Message-ID: <877goto750.fsf@gnu.org> References: <50A3F496.4030604@rbose.org> <87fw4baigx.fsf@gnu.org> <50C2279A.7050600@rbose.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 1354917650 17896 80.91.229.3 (7 Dec 2012 22:00:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2012 22:00:50 +0000 (UTC) Cc: 12887@debbugs.gnu.org To: DNS Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Dec 07 23:01:02 2012 Return-path: Envelope-to: guile-bugs@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 1Th5yd-0001tN-DD for guile-bugs@m.gmane.org; Fri, 07 Dec 2012 23:00:59 +0100 Original-Received: from localhost ([::1]:40297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th5yR-0006Xe-A0 for guile-bugs@m.gmane.org; Fri, 07 Dec 2012 17:00:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th5yO-0006XY-5R for bug-guile@gnu.org; Fri, 07 Dec 2012 17:00:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Th5yM-0008CA-E3 for bug-guile@gnu.org; Fri, 07 Dec 2012 17:00:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th5yM-0008C6-AN for bug-guile@gnu.org; Fri, 07 Dec 2012 17:00:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Th5yf-0005l6-SD for bug-guile@gnu.org; Fri, 07 Dec 2012 17:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 07 Dec 2012 22:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12887 X-GNU-PR-Package: guile X-GNU-PR-Keywords: unreproducible moreinfo Original-Received: via spool by 12887-submit@debbugs.gnu.org id=B12887.135491762122091 (code B ref 12887); Fri, 07 Dec 2012 22:01:01 +0000 Original-Received: (at 12887) by debbugs.gnu.org; 7 Dec 2012 22:00:21 +0000 Original-Received: from localhost ([127.0.0.1]:59475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Th5y0-0005kD-H5 for submit@debbugs.gnu.org; Fri, 07 Dec 2012 17:00:20 -0500 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:31884) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Th5xy-0005k4-Cn for 12887@debbugs.gnu.org; Fri, 07 Dec 2012 17:00:19 -0500 X-IronPort-AV: E=Sophos;i="4.84,240,1355094000"; d="scan'208";a="185179873" Original-Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 07 Dec 2012 22:59:55 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 Frimaire 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: <50C2279A.7050600@rbose.org> (dns@rbose.org's message of "Fri, 07 Dec 2012 18:30:02 +0100") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6656 Archived-At: Hi, Thanks for your feedback! DNS skribis: > sorry for my late reply, and thx a lot for your help. > i was compiling 2.0.7 and had the same issue, then i was finally lookin > at the log and figured out that it is because of a "umlaut" char in the > parent directory-name where i tried to build guile. > The directory was called "Arbeitsfl=C3=A4che" ("desktop" in german) and in > the log i saw the files could not be found because the dir-name was not > correctly converted (into UTF-8 i guess). The dir name was shown as > "Arbeitsf??che"... Ooh, I see. This is related to commit ed4c3739 (see ). What happens is that the directory name may be correctly decoded when passed as an argument: --8<---------------cut here---------------start------------->8--- [ludo@pluto:~/tmp/Court=C3=A8s]$ strace -f -o ,,s ~/src/guile/meta/guile -L= $PWD -c '(set-port-encoding! (current-output-port) "UTF-8")(pk %load-path)' ;;; (("/home/ludo/tmp/Court=C3=A8s" ...)) --8<---------------cut here---------------end--------------->8--- But then =E2=80=98scm_stat=E2=80=99 calls =E2=80=98scm_to_locale_string=E2= =80=99, which uses the wrong encoding at this point, leading to this: --8<---------------cut here---------------start------------->8--- [ludo@pluto:~/tmp/Court=C3=A8s]$ strace -f -o ,,s ~/src/guile/meta/guile -L= $PWD -c '(use-modules (t))' [...] ERROR: In procedure scm-error: ERROR: no code for module (t) [ludo@pluto:~/tmp/Court=C3=A8s]$ grep Court ,,s | head -10 24237 execve("/home/ludo/src/guile/meta/guile", ["/home/ludo/src/guile/meta= /guile", "-L", "/home/ludo/tmp/Court\303\250s", "-c", "(use-modules (t))"],= [/* 74 vars */]) =3D 0 24237 stat("/home/ludo/tmp/Court\303\250s", {st_mode=3DS_IFDIR|0755, st_siz= e=3D4096, ...}) =3D 0 24237 execve("/home/ludo/src/guile/meta/uninstalled-env", ["/home/ludo/src/= guile/meta/uninst"..., "/home/ludo/src/guile/libguile/gu"..., "-L", "/home/= ludo/tmp/Court\303\250s", "-c", "(use-modules (t))"], [/* 73 vars */]) =3D 0 24237 stat("/home/ludo/tmp/Court\303\250s", {st_mode=3DS_IFDIR|0755, st_siz= e=3D4096, ...}) =3D 0 24237 execve("/home/ludo/src/guile/libguile/guile", ["/home/ludo/src/guile/= libguile/gu"..., "-L", "/home/ludo/tmp/Court\303\250s", "-c", "(use-modules= (t))"], [/* 78 vars */]) =3D 0 24237 stat("/home/ludo/tmp/Court\303\250s", {st_mode=3DS_IFDIR|0755, st_siz= e=3D4096, ...}) =3D 0 24256 read(3, "ludo\0x\0Ludovic Courtes\0/home/lud"..., 70) =3D 70 24237 execve("/home/ludo/src/guile/libguile/.libs/guile", ["/home/ludo/src/= guile/libguile/.l"..., "-L", "/home/ludo/tmp/Court\303\250s", "-c", "(use-m= odules (t))"], [/* 80 vars */]) =3D 0 24237 stat("/home/ludo/tmp/Court?s/t.scm", 0x7fff16fda150) =3D -1 ENOENT (N= o such file or directory) 24237 stat("/home/ludo/tmp/Court?s/t", 0x7fff16fda150) =3D -1 ENOENT (No su= ch file or directory) --8<---------------cut here---------------end--------------->8--- The problem is even worse when the directory is passed through an environment variable, because in that case even the input decoding is broken: --8<---------------cut here---------------start------------->8--- [ludo@pluto:~/tmp/Court=C3=A8s]$ GUILE_LOAD_PATH=3D$PWD:... ~/src/guile/met= a/guile -c '(set-port-encoding! (current-output-port) "UTF-8")(pk %load-pat= h)' ;;; (("/home/ludo/src/guile/guile-readline" "/home/ludo/src/guile/module" "= /home/ludo/tmp/Court??s")) --8<---------------cut here---------------end--------------->8--- Ouch! So, as mentioned in the thread above, 2.2 will not have this problem. But for 2.0, I can=E2=80=99t even imagine an ugly hack that would help. Thoughts? Ludo=E2=80=99.