From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#21613: Include messes up when compiling file in load path Date: Sun, 04 Oct 2015 16:36:21 +0200 Message-ID: <8737xqaefu.fsf@T420.taylan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443969446 20965 80.91.229.3 (4 Oct 2015 14:37:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2015 14:37:26 +0000 (UTC) To: 21613@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Oct 04 16:37:15 2015 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 1ZikPY-0007Is-H6 for guile-bugs@m.gmane.org; Sun, 04 Oct 2015 16:37:12 +0200 Original-Received: from localhost ([::1]:42722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZikPX-00082g-NB for guile-bugs@m.gmane.org; Sun, 04 Oct 2015 10:37:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZikPU-00082X-2J for bug-guile@gnu.org; Sun, 04 Oct 2015 10:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZikPO-0006UZ-Ve for bug-guile@gnu.org; Sun, 04 Oct 2015 10:37:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZikPO-0006UV-SE for bug-guile@gnu.org; Sun, 04 Oct 2015 10:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZikPO-0006aE-PM for bug-guile@gnu.org; Sun, 04 Oct 2015 10:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 04 Oct 2015 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21613 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144396939425269 (code B ref -1); Sun, 04 Oct 2015 14:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Oct 2015 14:36:34 +0000 Original-Received: from localhost ([127.0.0.1]:54468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZikOw-0006ZV-AB for submit@debbugs.gnu.org; Sun, 04 Oct 2015 10:36:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49329) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZikOt-0006ZM-Qg for submit@debbugs.gnu.org; Sun, 04 Oct 2015 10:36:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZikOs-0006TD-Ji for submit@debbugs.gnu.org; Sun, 04 Oct 2015 10:36:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZikOs-0006T9-H9 for submit@debbugs.gnu.org; Sun, 04 Oct 2015 10:36:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZikOr-0007tR-L8 for bug-guile@gnu.org; Sun, 04 Oct 2015 10:36:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZikOm-0006RN-Lw for bug-guile@gnu.org; Sun, 04 Oct 2015 10:36:29 -0400 Original-Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:38508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZikOm-0006RH-G9 for bug-guile@gnu.org; Sun, 04 Oct 2015 10:36:24 -0400 Original-Received: by wiclk2 with SMTP id lk2so83451396wic.1 for ; Sun, 04 Oct 2015 07:36:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=sLPZ8BJqjOHe1dVnUQf2lrkf9oJUQsUaDnKjHaAe9lw=; b=HP70YlZmuDA6Z1uKhJjnkhsXtUxG0hqVaCkNwtVne1S2o8s83Tzgdrz5nud58QGIz5 i7OwvQ1e+eOc9pXC34WA3BBC3OwENhrlBfCRqdURZ2z17Betq0WnRCct3IJDiez6tpmA Vc791U4mK+82q1kSgrYDHH4Bop7BOVL4DHkVXwZwGagyGvCsod8O1S7igsVmtjwcObEV 5pwpdjPsjr8UwIO+wowvhI79Q2LNpuLYMSB0D3Fg2jG5rNhCmsxvtOx94gvh5SXhgZYs 47HDx/bzmwBklO3FrDJ6D7GBXET0OiLEBq9CAFaDEU4FR7Q5LBn1Jri6adyNPYMYJqf0 iXng== X-Received: by 10.180.184.134 with SMTP id eu6mr7323262wic.77.1443969383647; Sun, 04 Oct 2015 07:36:23 -0700 (PDT) Original-Received: from T420.taylan (aftr-37-24-151-116.unity-media.net. [37.24.151.116]) by smtp.gmail.com with ESMTPSA id jd7sm62648wjb.19.2015.10.04.07.36.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Oct 2015 07:36:22 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:7858 Archived-At: When a file to be compiled, A.scm, contains (include "B.scm"), the compiler fails to find B.scm if the directory containing A and B are in Guile's load path. Here's a shell transcript showcasing the bug: --- snip --- $ mkdir test $ echo '(include "test2.scm")' > test/test1.scm $ echo '(display "foo\n")' > test/test2.scm $ pwd /home/taylan $ export GUILE_LOAD_PATH=/home/taylan/test $ unset GUILE_LOAD_COMPILED_PATH $ guile -q GNU Guile 2.0.11 Copyright (C) 1995-2014 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)> (compile-file "/home/taylan/test/test1.scm") ice-9/boot-9.scm:106:20: In procedure #: ice-9/boot-9.scm:106:20: In procedure open-file: No such file or directory: "./test2.scm" Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(#{ g269}#) [1]> --- snip --- This seems to be related to 'compile-file' setting '%file-port-name-canonicalization' to 'relative', but I don't know what the correct fix is. Taylan