[Ecls-list] ECL and Snow Leopard (10.6)

Kamil Shakirov kamils80 at gmail.com
Sun Sep 6 05:48:22 UTC 2009


Hi,

Has anyone tried to build ECL on Snow Leopard OS (Xcode installed with  
10.4 support)?

I used the following configure options.

./configure --prefix=$HOME/local/lisp/ecl --enable-slow-config -- 
enable-threads --enable-unicode

The build fails on compiling GC because ucontext routines are  
deprecated in Snow Leopard. After adding the missing flag to configure  
script GC builds without errors.

diff --git a/src/configure b/src/configure
index 9d37c98..ac9e3f3 100755
--- a/src/configure
+++ b/src/configure
@@ -4482,6 +4482,7 @@ case "${host_os}" in
                  # The Boehm-Weiser GC library shipped with Fink does  
not work
                  # well with our signal handler.
                  enable_boehm=included
+                CFLAGS="-D_XOPEN_SOURCE ${CFLAGS}"
                 # ECL, due to some of the libraries, does not build on
                 # 64 bit mode on OSX. We prevent GMP using that mode.
                 SONAME="${SHAREDPREFIX}ecl.SOVERSION.${SHAREDEXT}"



But ECL still fails to compile when it starts ecl_min:

...
echo "#" `uname -a` > BUILD-STAMP
head -8 config.log | tail -6 >> BUILD-STAMP
cp /Users/kamil/temp/ecl/src/../contrib/unicode/ucd.dat .
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: 88394 Abort trap              ECLDIR=`pwd`/ ./ecl_min  
compile
make[1]: *** [bin/ecl] Error 134
make: *** [all] Error 2



Here is GDB output:

macbook% ECLDIR=`pwd`/ gdb ./ecl_min
GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul  3 01:19:56  
UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for  
shared libraries ... done

Breakpoint 1 at 0x100063d2b: file num_sfun.d, line 571.
Breakpoint 2 at 0x100049bab: file error.d, line 313.
Breakpoint 3 at 0x100049186: file error.d, line 64.
Breakpoint 4 at 0x100049298: file error.d, line 52.
Breakpoint 5 at 0x100049e04: file error.d, line 172.
Breakpoint 6 at 0x100049dd4: file error.d, line 178.
Breakpoint 7 at 0x100049f4b: file error.d, line 251.
Breakpoint 8 at 0x100049f0b: file error.d, line 222.
Breakpoint 9 at 0x100049e37: file error.d, line 166.
warning: Multiple breakpoints were set.
Use the "delete" command to delete unwanted breakpoints.
Breakpoint 10 at 0x100049f04: file error.d, line 222.
Function "error" not defined.
(gdb) set args compile
(gdb) run
Reading symbols for shared libraries ++. done
;*** Lisp core booted ****
ECL (Embeddable Common Lisp)

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000003000000010
0x000000010007c7e6 in type_of [inlined] () at /Users/kamil/temp/ecl/ 
build/ecl/object.h:438
438		if (type_of(source) != t_pathname && type_of(source) !=  
t_base_string) {
(gdb)



--wbr.





More information about the ecl-devel mailing list