If ecl is compiled using bytecode (with the configure option "--with-cmp=no"), Maxima can not build with ecl, it fails with:
;;; Loading "/home/dauti/Software/maxima-code/src/../lisp-utils/defsystem.lisp" An error occurred during initialization: Filesystem error with pathname #P"SYS:CMP.NEWEST". Either 1) the file does not exist, or 2) we are not allowed to access the file, or 3) the pathname points to a broken symbolic link..
Creating a shell script with instructs ECL to prefer the Bytecode compiler, e.g.
1 2 | #!/bin/sh /path/to/ecl -eval "(ext::install-bytecodes-compiler)" "$@" |
does not help, it produces another error.
;;; Loading "/home/dauti/Software/maxima-code/src/../lisp-utils/defsystem.lisp" ;;; Loading "/home/dauti/Software/maxima-code/src/../lisp-utils/make-depends.lisp" ;;; Loading "/home/dauti/Software/maxima-code/src/maxima.system" An error occurred during initialization: Cannot find the external symbol BUILD-FASL in #<"C" package>..
It seems, that bug #2208 has the same reason, e.g. the issue is not cygwin, but Ecl with a bytecode compiler (in my case the issue occurs on Linux).