From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Arun Isaac Newsgroups: gmane.lisp.guile.bugs Subject: bug#32160: auto compile fails to recompile when included source files change Date: Sun, 15 Jul 2018 07:49:58 +0530 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531623009 18036 195.159.176.226 (15 Jul 2018 02:50:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2018 02:50:09 +0000 (UTC) To: 32160@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jul 15 04:50:05 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feX6r-0004ay-CD for guile-bugs@m.gmane.org; Sun, 15 Jul 2018 04:50:05 +0200 Original-Received: from localhost ([::1]:44092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feX8w-0001pg-Ln for guile-bugs@m.gmane.org; Sat, 14 Jul 2018 22:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feX8n-0001pZ-GM for bug-guile@gnu.org; Sat, 14 Jul 2018 22:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feX8k-00020i-Dk for bug-guile@gnu.org; Sat, 14 Jul 2018 22:52:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52500) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1feX8k-00020Z-9P for bug-guile@gnu.org; Sat, 14 Jul 2018 22:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1feX8j-0000Lr-Vs for bug-guile@gnu.org; Sat, 14 Jul 2018 22:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 15 Jul 2018 02:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32160 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.15316231121335 (code B ref -1); Sun, 15 Jul 2018 02:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jul 2018 02:51:52 +0000 Original-Received: from localhost ([127.0.0.1]:60397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feX8Z-0000LS-FV for submit@debbugs.gnu.org; Sat, 14 Jul 2018 22:51:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feX8X-0000LG-Fl for submit@debbugs.gnu.org; Sat, 14 Jul 2018 22:51:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feX8R-0001pH-Lb for submit@debbugs.gnu.org; Sat, 14 Jul 2018 22:51:44 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1feX8R-0001pB-Hu for submit@debbugs.gnu.org; Sat, 14 Jul 2018 22:51:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feX8Q-0001pG-Dz for bug-guile@gnu.org; Sat, 14 Jul 2018 22:51:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feX8N-0001le-7y for bug-guile@gnu.org; Sat, 14 Jul 2018 22:51:42 -0400 Original-Received: from [2001:19f0:5:274f:351:616f:fec3:2694] (port=46354 helo=vultr.systemreboot.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1feX8M-0001je-Ow for bug-guile@gnu.org; Sat, 14 Jul 2018 22:51:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5oeQdJs38zteWFzQttS+7KcVnEUck+D5/uugbhfEOw4=; b=Z7tgdTCUmAlWSVEUORQTe53P7E TSfaEBBSFUwthudUIqO/pTQVxNPBn7NwVcchGa8Uw2FJLq48WeOd6A4MH+okCbsW7VJm83CWZKNB3 IPuYwT7VcDQH3t/vSuywqNAyUa1g04WiHa2IkUQUFNq28NBFw0Xr0U4BwMVXHrR3IbNo=; Original-Received: from [124.40.246.228] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1feWaV-0001AW-CK for bug-guile@gnu.org; Sun, 15 Jul 2018 07:46:39 +0530 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.lisp.guile.bugs:9091 Archived-At: Guile's auto compile fails to recompile when included source files change. For example, I have two source files -- foo.scm and bar.scm. foo.scm includes bar.scm using `include'. When I run foo.scm for the first time, it is auto compiled and run correctly. But, if I modify bar.scm and run foo.scm again, foo.scm is not rebuilt and the old version is run. Here is a concrete example of what I mean. $ cat foo.scm (include "bar.scm") $ cat bar.scm (display "old") (newline) $ guile -s foo.scm ;;; note: source file /tmp/test/foo.scm ;;; newer than compiled /home/arun/.cache/guile/ccache/2.2-LE-8-3.A/tmp/test/foo.scm.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /tmp/test/foo.scm ;;; compiled /home/arun/.cache/guile/ccache/2.2-LE-8-3.A/tmp/test/foo.scm.go old $ sed -i 's/old/new/' bar.scm $ cat bar.scm (display "new") (newline) $ guile -s foo.scm old In the last step, guile still printed "old" without recompiling. It should have recompiled and printed "new".