Building 0.6.7 on OS X
Norman Gray <[email protected]> Tue, 19 Jan 2010 14:30:47 +0000
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <[email protected]> |
Greetings.
I'm having difficulty building scsh 0.6.7 on OS X (10.6.2 on an Intel =
box) The build fails at a point which is clearly magical enough that I =
don't think I'm going to have much luck debugging it on my own. The =
build fails with:
% echo $PATH
/usr/bin:/bin:/usr/sbin
% ./configure
[...blah...]
% make
[...blah...]
./build/build-usual-image . "./scheme" 'scsh.image' './scshvm' \
'./build/initial.image'
./build/build-usual-image: line 34: 91305 Segmentation fault (core =
dumped) ./$vm -o ./$vm -i $initial batch <<EOF
,load $srcdir/scheme/env/init-defpackage.scm
((*structure-ref filenames 'set-translation!)
"=3Dscheme48/" "$srcdir/scheme/")
,load =3Dscheme48/more-interfaces.scm =3Dscheme48/sort/interfaces.scm
,load =3Dscheme48/link-packages.scm
,load =3Dscheme48/more-packages.scm
(ensure-loaded command-processor)
(ensure-loaded usual-commands)
,go ((*structure-ref command 'command-processor)
(structure-package usual-commands)
(list "batch"))
(ensure-loaded usual-features)
,structure more-structures more-structures-interface
,in debuginfo (read-debug-info "$srcdir/build/initial.debug")
,keep maps source files
,translate =3Dscheme48/ $lib/
,build ((*structure-ref package-commands-internal
'new-command-processor)
"(made by $USER on $date)"
usual-commands
built-in-structures more-structures) $image
EOF
make: *** [scsh.image] Error 139
%
Running that script by itself (that is, not running it from make) =
produces the same result. The stack trace is below, in case it's =
illuminating.
% gdb ./scshvm /cores/core.91305
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
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
#0 0x00000001000028c0 in Hlookup2142 ()
(gdb) where
#0 0x00000001000028c0 in Hlookup2142 ()
#1 0x0000000100002a05 in s48_get_imported_binding ()
#2 0x00000001000146ec in s48_initialize_external ()
#3 0x0000000100020fe9 in s48_initialize_external_modules ()
#4 0x00000001000010ab in internal_s48_main ()
#5 0x0000000100000d34 in main ()
(gdb)=20
% sw_vers =20
ProductName: Mac OS X
ProductVersion: 10.6.2
BuildVersion: 10C540
% gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is =
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR =
PURPOSE.
%
The only thing that looks at all odd about the ./configure output is =
that the build/host sytem type is identified as i686-apple-darwin10.2.0. =
Is that perhaps a little old? I tried (might as well) forcing it to be =
i686-apple-darwin10.6.0, but that didn't do anything.
I've build scsh without any difficulty at all on earlier versions of OS =
X. I confess to being a bit stumped here, though.
Can anyone suggest any next steps?
All the best,
Norman
--=20
Norman Gray : http://nxg.me.uk