Having another go at building Sage on Cygwin, I get, somewhere very near the end of building Maxima spkg, the following:
.......
building Maxima as an ecl library
;;; Loading #P"/home/Dima/sage-4.7.2/local/lib/ecl/asdf.fas"
;;; Loading #P"/home/Dima/sage-4.7.2/local/lib/ecl/cmp.fas"
;;; Loading "/home/Dima/sage-4.7.2/spkg/build/maxima-5.23.2.p0/src/src/maxima-build.lisp"
;;; Loading "/home/Dima/sage-4.7.2/spkg/build/maxima-5.23.2.p0/src/src/../lisp-utils/defsystem.lisp"
;;; Loading "/home/Dima/sage-4.7.2/spkg/build/maxima-5.23.2.p0/src/src/maxima-package.lisp"
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;;
;;; End of Pass 1.
;;; Note:
;;; Invoking external command:
;;; gcc -I. -I/home/dima/sage-4.7.2/local/include/ -I/home/dima/sage-4.7.2/local/include -g -O2 -Dcygwin -O2 -w -c /tmp/ecl001K7CyZk.c -o /tmp/ecl001K7CyZk.o
;;; Note:
;;; Invoking external command:
;;; gcc -o /tmp/ecl001K7CyZk.fas -L/home/dima/sage-4.7.2/local/lib/ /tmp/ecl001K7CyZk.o -shared -L/home/dima/sage-4.7.2/local/lib -L/home/dima/sage-4.7.2/local/lib -lecl -lgmp -lgc -lm
; Loading system definition from
; /home/Dima/sage-4.7.2/spkg/build/maxima-5.23.2.p0/src/src/maxima.asd into
; #<ASDF0 package>
;;; Loading "/home/Dima/sage-4.7.2/spkg/build/maxima-5.23.2.p0/src/src/maxima.asd"
; Registering #<system :MAXIMA> as MAXIMA
An error occurred during initialization:
In function PATHNAME, the value of the only argument is
NIL
which is not of the expected type (OR FILE-STREAM STRING PATHNAME).
installing Maxima library as /home/Dima/sage-4.7.2/local/lib/ecl//maxima.fas
cp: cannot stat `maxima.fasb': No such file or directory
***********************************************************
Failed to install maxima.fasb as a library
invoked from spkg-install.
The parameter 'move-here' does not seem to be documented anywhere...
Is it due to usual Cygwin/windows misnaming (I see in src/binary-ecl/ file maxima.exe) ?