another problem building maxima on cygwin

35 views
Skip to first unread message

Dima Pasechnik

unread,
Nov 27, 2011, 2:46:02 PM11/27/11
to sage-...@googlegroups.com, sage-w...@googlegroups.com
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

----------------------------
the command responsible for this seems to be

(asdf:make-build :maxima :type :fasl :move-here ".")

invoked from spkg-install.

and it certainly works anywhere else. 
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) ?






Dima Pasechnik

unread,
Nov 28, 2011, 1:37:40 AM11/28/11
to sage-...@googlegroups.com, sage-w...@googlegroups.com
by running ecl stand-alone on the maxima spkg, I can confirm that the error comes from 
(asdf:make-build :maxima :type :fasl :move-here ".")

Unfortunately I cannot find any information on how to use the ecl's debugger.
Any pointers much appreciated.

By the way,
In maxima.asd I see plenty of :pathname "", and the error is

;;; 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).

So somehow it might be that due to some LF/CR weirdness, "" cannot be an argument to pathname
(*** my pure speculation***)

Dima


Dima Pasechnik

unread,
Nov 28, 2011, 2:59:16 AM11/28/11
to sage-...@googlegroups.com, sage-w...@googlegroups.com
I just checked, and saw that under Sage's ECL lisp (i.e. sage -lisp),
(pathname "")
produces an error (illegal seek) on Cygwin,
while on MacOSX and Linux it's perfectly OK.

kcrisman

unread,
Nov 28, 2011, 11:11:24 AM11/28/11
to sage-windows
I got this same error trying out some more recent Maxima packages as
well.
Reply all
Reply to author
Forward
0 new messages