[Ecls-list] How can I build 64-bit OS X ?

Dr. David Kirkby david.kirkby at onetel.net
Fri Sep 4 22:54:40 UTC 2009


I'm trying to build ecl (as part of Sage) on

$ uname -a
Darwin bsd.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 
PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 i386 MacPro1,1 Darwin


The compiler is gcc. These variables were set:


Using CC=gcc
Using CXX=g++
Using CFLAGS= -O2  -m64  -g  -Wall
Using CXXFLAGS= -O2  -m64  -g  -Wall
Using CPPFLAGS= -I/Users/kirkby/64/sage-4.1.2.alpha0/local/include
Using LDFLAGS= -L/Users/kirkby/64/sage-4.1.2.alpha0/local/lib

then it was configured with:

./configure --prefix=$SAGE_LOCAL --with-system-gmp --enable-boehm=system

but it fails as below:


rm -f ../libeclmin.a
ar cr ../libeclmin.a main.o symbol.o package.o list.o apply.o eval.o 
interpreter.o compiler.o disassembler.o instance.o gfun.o reference.o 
character.o file.o read.o print.o error.o string.o cfun.o typespec.o 
assignment.o predicate.o number.o num_pred.o num_comp.o num_arith.o 
num_sfun.o num_co.o num_log.o num_rand.o array.o sequence.o cmpaux.o 
macros.o backq.o stacks.o time.o unixint.o mapfun.o multival.o hash.o 
format.o pathname.o structure.o load.o unixfsys.o unixsys.o ffi.o 
alloc_2.o ffi_x86.o tcp.o big.o
ranlib: file: ../libeclmin.a(ffi_x86.o) has no symbols
ranlib ../libeclmin.a
ranlib: file: ../libeclmin.a(ffi_x86.o) has no symbols
if test -f ../CROSS-DPP ; then ../CROSS-DPP 
/Users/kirkby/64/sage-4.1.2.alpha0/spkg/build/ecl-9.8.4.p0/src/src/c/cinit.d 
cinit.c ; else ./dpp 
/Users/kirkby/64/sage-4.1.2.alpha0/spkg/build/ecl-9.8.4.p0/src/src/c/cinit.d 
cinit.c ; fi
dpp: 
/Users/kirkby/64/sage-4.1.2.alpha0/spkg/build/ecl-9.8.4.p0/src/src/c/cinit.d 
-> cinit.c
gcc -I. 
-I/Users/kirkby/64/sage-4.1.2.alpha0/spkg/build/ecl-9.8.4.p0/src/build 
-I/Users/kirkby/64/sage-4.1.2.alpha0/spkg/build/ecl-9.8.4.p0/src/src/c 
-I../ecl/gc -DECL_API -I/Users/kirkby/64/sage-4.1.2.alpha0/local/include 
  -O2  -m64  -g  -Wall  -fPIC -fno-common  -Ddarwin -c  -I./ cinit.c -o 
../cinit.o
rm array.c symbol.c num_sfun.c cmpaux.c list.c unixsys.c num_arith.c 
load.c string.c stacks.c hash.c main.c predicate.c num_log.c unixint.c 
instance.c compiler.c character.c multival.c gfun.c structure.c 
sequence.c ffi.c unixfsys.c tcp.c reference.c time.c big.c print.c 
backq.c format.c typespec.c num_co.c num_pred.c macros.c alloc_2.c 
read.c error.c num_comp.c number.c num_rand.c pathname.c file.c cfun.c 
disassembler.c interpreter.c assignment.c mapfun.c package.c eval.c
if [ -f CROSS-COMPILER ]; then \
                 touch ecl_min; \
         else \
                 gcc -L/Users/kirkby/64/sage-4.1.2.alpha0/local/lib 
-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
ld warning: in 
/Users/kirkby/64/sage-4.1.2.alpha0/local/lib/libgmp.dylib, file is not 
of required architecture
Undefined symbols:
   "_main", referenced from:
       start in crt1.10.5.o
ld: symbol(s) not fo


Any ideas?





More information about the ecl-devel mailing list