Skip to content

Compiler error reading file in MacOS

When running the ASDF test test-run-program.script with the compiler on Mac OS Catalina, I get an extra right parenthesis error loading that file. If I run it without the compiler loaded (i.e., without (require 'cmp)), then that test file runs fine.

To replicate, check out or download a copy of ASDF, then do make and then cd to the test/ subdirectory. Then do the following:

rlwrap ecl -norc -load sys:cmp

Paste the following into the REPL:

'(#.(load "script-support.lisp") #.(asdf-test::da) #.(load-asdf) #.(frob-packages) #.(load "test-run-program.script"))

Describe expected result and what provide the output you got.

Provide details regarding ECL version (or preferably commit), operating system and if revelant the build options and versions of the build tools.

(format t "~&~@{~12@A ~S~%~}"
        :version (lisp-implementation-version)
        :vcs-id (ext:lisp-implementation-vcs-id)
        :os (software-type)
        :os-version (software-version)
        :machine-type (machine-type)
        :features *features*)
     VERSION "20.4.24"
      VCS-ID "UNKNOWN"
          OS "Darwin"
  OS-VERSION "19.5.0"
MACHINE-TYPE "x86_64"
    FEATURES (:WALKER :CDR-1 :CDR-5 :DARWIN :FORMATTER :CDR-7 :ECL-WEAK-HASH
              :LITTLE-ENDIAN :ECL-READ-WRITE-LOCK :LONG-LONG :UINT64-T
              :UINT32-T :UINT16-T :COMPLEX-FLOAT :LONG-FLOAT :UNICODE :DFFI
              :CLOS-STREAMS :CMU-FORMAT :UNIX :ECL-PDE :DLOPEN :CLOS :THREADS
              :BOEHM-GC :ANSI-CL :COMMON-LISP :FLOATING-POINT-EXCEPTIONS
              :IEEE-FLOATING-POINT :PACKAGE-LOCAL-NICKNAMES :CDR-14
              :PREFIXED-API :FFI :X86_64 :COMMON :ECL)

The error is:

Reader error in file #<input stream #P"/Users/rpg/lisp/asdf/test/test-run-program.script" 0x103b6ec80>, position 12148:
Unmatched right parenthesis, #\)