Hi folks,

As a shot in the dark, I tried compiling in 64-bit mode on OS X each
of David Kirkby's updated ECL packages at

http://sage.math.washington.edu/home/kirkby/Solaris-fixes/ecl-9.8.4.p0-2nd-attempt/
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/ecl-9.8.4.p0-3rd-attempt/
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/ecl-9.8.4.p0-4th-attempt/
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/ecl-9.8.4.p0-5th-attempt/

For "ecl-9.8.4.p0-2nd-attempt" I set the LDFLAGS in the file
spkg-install as follows:

# Compile for 64-bit if SAGE64 is set to 'yes' or '1'
if [ "x$SAGE64" = "xyes" ] || [ "x$SAGE64" = "x1" ]  ; then
   echo "Building a 64-bit version of Sage"
   CFLAGS="$CFLAGS -m64 "
   CXXFLAGS="$CXXFLAGS -m64 "
   FFLAGS="$FFLAGS -m64 "
   FCFLAGS="$FCFLAGS -m64 "
   F77FLAGS="$F77FLAGS -m64 "
   if [ `uname` = "Darwin" ]; then
      LDFLAGS="$LDFLAGS -m64"
   fi
fi

For "ecl-9.8.4.p0-3rd-attempt" I set the LDFLAGS in the file
spkg-install as follows:

# Compile for 64-bit if SAGE64 is set to 'yes' or '1'
if [ "x$SAGE64" = "xyes" ] || [ "x$SAGE64" = "x1" ]  ; then
   echo "Building a 64-bit version of Sage"
   CFLAGS="$CFLAGS -m64 "
   CXXFLAGS="$CXXFLAGS -m64 "
   FFLAGS="$FFLAGS -m64 "
   FCFLAGS="$FCFLAGS -m64 "
   F77FLAGS="$F77FLAGS -m64 "
   if [ `uname` = "Darwin" ]; then
      LDFLAGS="$LDFLAGS -m64"
   fi
fi

For "ecl-9.8.4.p0-4th-attempt":

# Compile for 64-bit if SAGE64 is set to 'yes' or '1'
if [ "x$SAGE64" = "xyes" ] || [ "x$SAGE64" = "x1" ]  ; then
   echo "Building a 64-bit version of Sage"
   if [ `uname` = "Darwin" ]; then
      ABI=64
      export ABI
      LDFLAGS="$LDFLAGS -m64"
   else
      CFLAGS="$CFLAGS -m64 "
      CXXFLAGS="$CXXFLAGS -m64 "
      FCFLAGS="$FCFLAGS -m64 "
      F77FLAGS="$F77FLAGS -m64 "
   fi
fi

For "ecl-9.8.4.p0-5th-attempt":

# Compile for 64-bit if SAGE64 is set to 'yes' or '1'
if [ "x$SAGE64" = "xyes" ] || [ "x$SAGE64" = "x1" ]  ; then
   echo "Building a 64-bit version of Sage"
   if [ `uname` = "Darwin" ]; then
      ABI=longlong
      export ABI
      LDFLAGS="$LDFLAGS -m64"
   else
      CFLAGS="$CFLAGS -m64 "
      CXXFLAGS="$CXXFLAGS -m64 "
      FCFLAGS="$FCFLAGS -m64 "
      F77FLAGS="$F77FLAGS -m64 "
   fi
fi

With the LDFLAGS variable set as above, compilation failed in all
cases. An interesting thing is that they fail in different ways. For
"ecl-9.8.4.p0-2nd-attempt", the compilation aborted with the error
message:

if [ -f CROSS-COMPILER ]; then \
                ./CROSS-COMPILER compile; \
        else \
                ECLDIR=`pwd`/ ./ecl_min compile; \
        fi
;*** Lisp core booted ****
ECL (Embeddable Common Lisp)

Internal or unrecoverable error in:

Lisp initialization error.

  [2: No such file or directory]
/bin/sh: line 1: 79376 Abort trap              ECLDIR=`pwd`/ ./ecl_min compile
make[3]: *** [bin/ecl] Error 134
make[2]: *** [all] Error 2

For "ecl-9.8.4.p0-3rd-attempt", "ecl-9.8.4.p0-4th-attempt", and
"ecl-9.8.4.p0-5th-attempt" the compilation aborted with the error
message:

if [ -f CROSS-COMPILER ]; then \
                touch ecl_min; \
        else \
                gcc -L/scratch/mvngu/sandbox-64/sage-4.1.2.alpha1/local/lib -m6\
4 -lffi  -o ecl_min cinit.o c/all_symbols.o -L./ libeclmin.a -leclgc  -lgmp -lm\
 ;\
        fi
ld warning: in cinit.o, file is not of required architecture
ld warning: in c/all_symbols.o, file is not of required architecture
ld warning: in libeclmin.a, file is not of required architecture
ld warning: in .//libeclgc.a, file is not of required architecture
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [ecl_min] Error 1
make[2]: *** [all] Error 2

The full log is up at

http://sage.math.washington.edu/home/mvngu/doc/install/install-4.1.2.alpha1-bsd64-kirkby-ecl.log

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to