Subject: add-to-load-path compilation fails with compile-cps error

From: tantalum <[email-masked]>
Date: Sun, 4 Oct 2015 16:43:13 +0000

hi,

i am getting a compilation error which seems odd to me, with guile version 2.1.0.455-73f61, compiled from the commit from 2015-09-18.

here are several scenarios i tried:

# code in a file

## file contents

   (add-to-load-path "test")

## compilation

guile t.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /tmp/t.scm
;;; WARNING: compilation of /tmp/t.scm failed:
;;; ERROR: Wrong number of arguments to #<procedure 1ad6500 at language/tree-il/compile-cps.scm:463:7 (val)>

# from the command-line

guile -c "(add-to-load-path \"test\")"

(just exits)

# from the repl

scheme@(guile-user)> (add-to-load-path "test")
While compiling expression:
ERROR: Wrong number of arguments to #<procedure 1877c00 at language/tree-il/compile-cps.scm:463:7 (val)>
scheme@(guile-user)>