Maxima fails to build with ECL on Cygwin

13 views
Skip to first unread message

Mike Hansen

unread,
Oct 28, 2009, 2:27:51 PM10/28/09
to sage-devel, juanjose.g...@googlemail.com, Robert Dodier
Hello,

Currently when I try to build Maxima with ECL on Cygwin, I get the
following error:

...
Summary:
ECL enabled. Executable name: "ecl"
default lisp: ecl
wish executable name: "wish"
Making all in src
make[1]: Entering directory
`/home/mhansen/sage-4.2/spkg/build/maxima-5.19.1.p0/src/src'
test -d binary-ecl || mkdir binary-ecl
ecl -norc -eval '(progn (load "../lisp-utils/defsystem.lisp") (load
"../lisp-utils/make-depends.lisp") (funcall (intern
"CREATE-DEPENDENCY-FILE" :mk) "binary-ecl/maxima" "ecl-depends.mk")
(quit))'
;;; Loading "/home/mhansen/sage-4.2/spkg/build/maxima-5.19.1.p0/src/src/../lisp-utils/defsystem.lisp"
;;; Loading #P"/home/mhansen/sage-4.2/local/lib/ecl/cmp.fas"
An error occurred during initialization:
LOAD: Could not load file
#P"/home/mhansen/sage-4.2/local/lib/ecl-9.8.4/cmp.fas" (Error: "No
error").
make[1]: *** [ecl-depends.mk] Error 1
make[1]: Leaving directory
`/home/mhansen/sage-4.2/spkg/build/maxima-5.19.1.p0/src/src'
make: *** [all-recursive] Error 1

It seems like this should be a relatively easy thing to track down,
but I'm not sure where to start. It looks to be more on the ECL side
of things.

Thanks,
--Mike

William Stein

unread,
Oct 28, 2009, 2:46:43 PM10/28/09
to sage-...@googlegroups.com, juanjose.g...@googlemail.com, Robert Dodier
(And, as usual Juan Jose or Robert Dodier -- if either you would like
easy ssh access to a Cygwin Windows box to debug this, I can make you
accounts.)
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

Martin Rubey

unread,
Oct 28, 2009, 2:52:42 PM10/28/09
to sage-...@googlegroups.com, ecls-list
Mike Hansen <mha...@gmail.com> writes:

> Hello,
>
> Currently when I try to build Maxima with ECL on Cygwin, I get the
> following error:

it is the same error with FriCAS. ECL cannot compile-file on cygwin :-(

would be nice indeed.

Martin

Dr. David Kirkby

unread,
Oct 28, 2009, 3:30:11 PM10/28/09
to sage-...@googlegroups.com, ecls-list


FWIW, there is a problem building ECL on HP-UX. The error might give just give
some clue to the Cygwin issue, though I admit is is unlikely.

http://trac.sagemath.org/sage_trac/ticket/7167

Juan Jose Garcia-Ripoll

unread,
Oct 28, 2009, 3:38:57 PM10/28/09
to Dr. David Kirkby, sage-...@googlegroups.com, ecls-list
This problem is trivial and does not have to do with cygwin. Just edit
the file src/c/Makefile.in and remove the lines beginning with # Seems
HP-UX is not really POSIX compatible.

Juanjo

> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Ecls-list mailing list
> Ecls...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com

Juan Jose Garcia-Ripoll

unread,
Oct 28, 2009, 5:29:26 PM10/28/09
to Dr. David Kirkby, sage-...@googlegroups.com, ecls-list
The fix for this particular problem with HP-UX make is in the
repository (GIT/CVS).

Juanjo

Mike Hansen

unread,
Oct 29, 2009, 12:08:28 AM10/29/09
to sage-...@googlegroups.com, ecls-list
Hello,

On Thu, Oct 29, 2009 at 4:29 AM, Juan Jose Garcia-Ripoll
<juanjose.g...@googlemail.com> wrote:
>
> The fix for this particular problem with HP-UX make is in the
> repository (GIT/CVS).

Any thoughts on the original

LOAD: Could not load file
#P"/home/mhansen/sage-4.2/local/lib/ecl-9.8.4/cmp.fas" (Error: "No
error").

problem?

Thanks,
Mike

Juanjo

unread,
Oct 29, 2009, 3:44:36 AM10/29/09
to sage-devel
One thing: I am not subscribed to sage-devel. Answers or questions
which are not cc to me may get lost.

Second, as I already told people in the ecls mailing list, I believe
that Cygwin's dlopen is broken, but I have not had time to debug it. I
already maintain two other windows ports: mingw and msvc, so cygwin
has never been on my priority list.

Juanjo

On Oct 29, 5:08 am, Mike Hansen <mhan...@gmail.com> wrote:
> Hello,
>
> On Thu, Oct 29, 2009 at 4:29 AM, Juan Jose Garcia-Ripoll
>

Juan Jose Garcia-Ripoll

unread,
Oct 29, 2009, 9:34:48 AM10/29/09
to Martin Rubey, sage-...@googlegroups.com, ecls-list
I have found out that the function that acts as entry point in FASLs
(compiled lisp files) was not exported by cygwin. That prevents LOAD
from working. A quick fix has been uploaded, but I still do not know
whether there are other issues left.

Juanjo

Martin Rubey

unread,
Nov 2, 2009, 8:53:09 AM11/2/09
to sage-...@googlegroups.com, juanjose.g...@googlemail.com, Robert Dodier
I would like to "announce" that thanks to Juanjo, FriCAS now builds "out
of the box" with ecl under cygwin, so I suspect that maxima should do
so, too.

Martin

William

unread,
Feb 15, 2010, 4:38:38 PM2/15/10
to Juan Jose Garcia-Ripoll, sage-devel, Mike Hansen

On Oct 29 2009, 5:34 am, Juan Jose Garcia-Ripoll


<juanjose.garciarip...@googlemail.com> wrote:
> I have found out that the function that acts as entry point in FASLs
> (compiled lisp files) was not exported by cygwin. That prevents LOAD
> from working. A quick fix has been uploaded, but I still do not know
> whether there are other issues left.
>
> Juanjo
>

It gets farther, but still fails with:

;;; gcc -o "/home/wstein/build/sage-4.3.3.alpha0/spkg/build/
maxima-5.20.1/src/src/binary-ecl/init-cl.fas" -L"/home/wstein/build/
sage-4.3.3.alpha0/local/lib/" "/cygdrive/c/WINDOWS/TEMP/
ECLINITzVlCF0.o" "/home/wstein/build/sage-4.3.3.alpha0/spkg/build/
maxima-5.20.1/src/src/binary-ecl/init-cl.o" -shared -L/home/wstein/
build/sage-4.3.3.alpha0/local/lib -L/home/wstein/build/
sage-4.3.3.alpha0/local/lib -lecl -lgmp -lgc -lm
; - Loading binary file "binary-ecl/init-cl.fas"
;;; Loading "/home/wstein/build/sage-4.3.3.alpha0/spkg/build/
maxima-5.20.1/src/src/binary-ecl/init-cl.fas"
; - Providing system maxima


An error occurred during initialization:

C::BUILDER does not accept a file "binary-ecl/init-cl.fas" of
kind :FASL.
make[1]: *** [binary-ecl/maxima] Error 1
make[1]: Leaving directory `/home/wstein/build/sage-4.3.3.alpha0/spkg/
build/maxima-5.20.1/src/src'


make: *** [all-recursive] Error 1

---

I'm tracking this here: http://trac.sagemath.org/sage_trac/ticket/8269

Reply all
Reply to author
Forward
0 new messages