[gambit-list] A couple of random questions
mikel evins
mevins at me.com
Sun Jul 31 01:59:19 EDT 2011
A little more info about my failing attempts to build Gambit.
I tried a few variations (devel and non-devel) on downloading and configuring and updating; all failed to make it through a make check without a crash.
I can install the prebuilt Gambit 4.6.1 binaries, and in some quick, superficial testing, they appear to work correctly, but I can't build certain projects (including iOS projects), because I don't have the associated Gambit sources.
I'm using Lion (version 10.7) on an early 2008 24-inch iMac, with the developer tools provided through the App Store (XCode version 4.1, build 4B110).
Has anyone built Gambit using this build environment or something close to it? At this point, I'm sort of wondering whether I need to wipe the machine and do a clean reinstall of everything.
In case anyone wants more details, there's a lot more below:
If I download
http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_1-devel.tgz
then unpack it, run configure --enable-single-host, and do a make, it builds, but if I then attempt a make check, gsi crashes. It prints the following messages in the Terminal window:
making all in include
major=`echo v4.6.1 | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
minor=`echo v4.6.1 | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
revision=`echo v4.6.1 | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
version_num=`eval expr "\( 100000 \\* $major \) + \( 1000 \\* $minor \) + $revision"`; \
echo "#error \"The version indicated in ___VERSION is not supported by gambit.h\"" > gambit-not$version_num.h; \
echo "#error \"You are probably compiling C code generated by a Gambit compiler earlier or later than v4.6.1\"" >> gambit-not$version_num.h; \
echo "#error \"___VERSION will be set to $version_num to reduce other errors\"" >> gambit-not$version_num.h; \
echo "#undef ___VERSION" >> gambit-not$version_num.h; \
echo "#define ___VERSION $version_num" >> gambit-not$version_num.h; \
echo "#include \"gambit.h\"" >> gambit-not$version_num.h
making all in lib
making all in gsi
making all in gsc
making all in bin
making all in misc
making all in doc
making all in tests
making all in examples
making all in distr-comp
making all in pi
making all in ring
making all in web-repl
making all in web-server
making all in tcltk
making all in Xlib-simple
making all in pthread
making all in misc
making all in iOS
making all in prebuilt
making all in macosx
making all in windows
test -f "gsc-comp" || cp gsc/gsc gsc-comp
cd tests && make prefix=/usr/local/Gambit-C exec_prefix=/usr/local/Gambit-C includedir=/usr/local/Gambit-C/include libdir=/usr/local/Gambit-C/lib bindir=/usr/local/Gambit-C/bin docdir=/usr/local/Gambit-C/doc infodir=/usr/local/Gambit-C/info emacsdir=/usr/local/Gambit-C/share/emacs/site-lisp check
------------ TEST 1 (debugging support)
../gsi/gsi -:~~bin=../bin,~~lib=../lib,~~include=../include -f debug.scm > test1.out
/bin/sh: line 1: 93373 Segmentation fault: 11 ../gsi/gsi -:~~bin=../bin,~~lib=../lib,~~include=../include -f debug.scm > test1.out
make[1]: *** [test1] Error 139
make: *** [check] Error 2
I tried a quick make clean followed by make update; I got:
cairagor:gambc-v4_6_1-devel mikel$ make update
From http://www.iro.umontreal.ca/~gambit/repo/gambit
431c27a..53a9aa9 master -> origin/master
Updating f91139f..53a9aa9
error: The following untracked working tree files would be overwritten by merge:
examples/iOS/Prefix.pch
Please move or remove them before you can merge.
Aborting
Okay; how about we try starting over; I'll try unpacking, configuring, then doing make update (make update and then configure doesn't work, because there is no target for update at that point).
Whoops! Same result as before:
cairagor:gambc-v4_6_1-devel mikel$ make update
From http://www.iro.umontreal.ca/~gambit/repo/gambit
431c27a..53a9aa9 master -> origin/master
Updating f91139f..53a9aa9
error: The following untracked working tree files would be overwritten by merge:
examples/iOS/Prefix.pch
Please move or remove them before you can merge.
Aborting
Okay, how about we unpack, configure, remove the offending pch file, and then try make update?
No dice. Here's the tail end:
CONFIG_FILES=makefile CONFIG_HEADERS= ./config.status
config.status: creating makefile
making all in include
cd .. && CONFIG_FILES=include/makefile CONFIG_HEADERS= ./config.status
config.status: creating include/makefile
cd .. && CONFIG_FILES=include/gambit.h CONFIG_HEADERS= ./config.status
config.status: creating include/gambit.h
major=`echo v4.6.1 | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
minor=`echo v4.6.1 | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
revision=`echo v4.6.1 | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
version_num=`eval expr "\( 100000 \\* $major \) + \( 1000 \\* $minor \) + $revision"`; \
echo "#error \"The version indicated in ___VERSION is not supported by gambit.h\"" > gambit-not$version_num.h; \
echo "#error \"You are probably compiling C code generated by a Gambit compiler earlier or later than v4.6.1\"" >> gambit-not$version_num.h; \
echo "#error \"___VERSION will be set to $version_num to reduce other errors\"" >> gambit-not$version_num.h; \
echo "#undef ___VERSION" >> gambit-not$version_num.h; \
echo "#define ___VERSION $version_num" >> gambit-not$version_num.h; \
echo "#include \"gambit.h\"" >> gambit-not$version_num.h
making all in lib
cd .. && CONFIG_FILES=lib/makefile CONFIG_HEADERS= ./config.status
config.status: creating lib/makefile
../gsc-comp -:~~bin=../bin,~~lib=../lib,~~include=../include -f -c -check _io.scm
/bin/sh: ../gsc-comp: No such file or directory
make[2]: *** [_io.c] Error 127
make[1]: *** [all-recursive] Error 1
make: *** [update] Error 2
Okay; how about I use gambc-v4_6_1.tgz (not the devel sources)? I download, untar, do configure --enable-single-host and make…
As before; the build worked, but gsi crashed in make check. The message in the Terminal was:
making all in include
major=`echo v4.6.1 | sed -e "s/v//g" -e "s/\.[^.]*\.[^.]*//g"`; \
minor=`echo v4.6.1 | sed -e "s/v[^.]*\.//g" -e "s/\.[^.]*//g"`; \
revision=`echo v4.6.1 | sed -e "s/v[^.]*\.[^.]*\.//g" -e "s///g"`; \
version_num=`eval expr "\( 100000 \\* $major \) + \( 1000 \\* $minor \) + $revision"`; \
echo "#error \"The version indicated in ___VERSION is not supported by gambit.h\"" > gambit-not$version_num.h; \
echo "#error \"You are probably compiling C code generated by a Gambit compiler earlier or later than v4.6.1\"" >> gambit-not$version_num.h; \
echo "#error \"___VERSION will be set to $version_num to reduce other errors\"" >> gambit-not$version_num.h; \
echo "#undef ___VERSION" >> gambit-not$version_num.h; \
echo "#define ___VERSION $version_num" >> gambit-not$version_num.h; \
echo "#include \"gambit.h\"" >> gambit-not$version_num.h
making all in lib
making all in gsi
making all in gsc
making all in bin
making all in misc
making all in doc
making all in tests
making all in examples
making all in distr-comp
making all in pi
making all in ring
making all in web-repl
making all in web-server
making all in tcltk
making all in Xlib-simple
making all in pthread
making all in misc
making all in iOS
making all in prebuilt
making all in macosx
making all in windows
test -f "gsc-comp" || cp gsc/gsc gsc-comp
cd tests && make prefix=/usr/local/Gambit-C exec_prefix=/usr/local/Gambit-C includedir=/usr/local/Gambit-C/include libdir=/usr/local/Gambit-C/lib bindir=/usr/local/Gambit-C/bin docdir=/usr/local/Gambit-C/doc infodir=/usr/local/Gambit-C/info emacsdir=/usr/local/Gambit-C/share/emacs/site-lisp check
------------ TEST 1 (debugging support)
../gsi/gsi -:~~bin=../bin,~~lib=../lib,~~include=../include -f debug.scm > test1.out
/bin/sh: line 1: 12569 Segmentation fault: 11 ../gsi/gsi -:~~bin=../bin,~~lib=../lib,~~include=../include -f debug.scm > test1.out
make[1]: *** [test1] Error 139
make: *** [check] Error 2
The crash log says:
Process: gsi [12569]
Path: /Users/USER/*/gsi
Identifier: gsi
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: sh [12568]
Date/Time: 2011-07-31 00:45:24.604 -0500
OS Version: Mac OS X 10.7 (11A511)
Report Version: 9
Interval Since Last Report: 704720 sec
Crashes Since Last Report: 5
Per-App Crashes Since Last Report: 4
Anonymous UUID: 64C04072-CF8C-41B5-852A-4FCB2282064E
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000001
VM Regions Near 0x1:
-->
__TEXT 0000000108f70000-00000001091dc000 [ 2480K] r-x/rwx SM=COW /Users/USER/*
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x0000000000000001 0 + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000109253ca1 rbx: 0x00000001092c0c41 rcx: 0x000000010967ff48 rdx: 0x0000000109600428
rdi: 0x00000001093b2ea0 rsi: 0x0000000109253ca1 rbp: 0x00000001092c2f61 rsp: 0x00007fff68b6e708
r8: 0xfffffffffffffffe r9: 0x0000000000000010 r10: 0x0000000000000028 r11: 0x00000001092c2f61
r12: 0x0000000000000010 r13: 0x0000000000000010 r14: 0x00000001092c84c1 r15: 0x00000001092c0de1
rip: 0x0000000000000001 rfl: 0x0000000000010203 cr2: 0x0000000000000001
Logical CPU: 1
Binary Images:
0x108f70000 - 0x1091dbff7 +gsi (??? - ???) <B1D46EDE-BF92-3DB2-9314-0402FCB2A525> /Users/USER/*/gsi
0x7fff68b70000 - 0x7fff68ba4ac7 dyld (195.5 - ???) <4A6E2B28-C7A2-3528-ADB7-4076B9836041> /usr/lib/dyld
0x7fff8a3d1000 - 0x7fff8a413ff7 libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB> /usr/lib/system/libcommonCrypto.dylib
0x7fff8ba34000 - 0x7fff8ba3afff libmacho.dylib (800.0.0 - compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC> /usr/lib/system/libmacho.dylib
0x7fff8d757000 - 0x7fff8d758fff libsystem_sandbox.dylib (??? - ???) <8D14139B-B671-35F4-9E5A-023B4C523C38> /usr/lib/system/libsystem_sandbox.dylib
0x7fff8e935000 - 0x7fff8e936fff libunc.dylib (24.0.0 - compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC> /usr/lib/system/libunc.dylib
0x7fff8e95d000 - 0x7fff8e95efff libdnsinfo.dylib (395.6.0 - compatibility 1.0.0) <718A135F-6349-354A-85D5-430B128EFD57> /usr/lib/system/libdnsinfo.dylib
0x7fff8ea66000 - 0x7fff8ea86fff libsystem_kernel.dylib (1699.22.73 - compatibility 1.0.0) <69F2F501-72D8-3B3B-8357-F4418B3E1348> /usr/lib/system/libsystem_kernel.dylib
0x7fff8ec55000 - 0x7fff8ec5aff7 libsystem_network.dylib (??? - ???) <4ABCEEF3-A3F9-3E06-9682-CE00F17138B7> /usr/lib/system/libsystem_network.dylib
0x7fff8ec90000 - 0x7fff8ec91ff7 libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
0x7fff8fe9a000 - 0x7fff8fe9afff libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
0x7fff90022000 - 0x7fff9004ffe7 libSystem.B.dylib (159.0.0 - compatibility 1.0.0) <7B4D685D-939C-3ABE-8780-77A1889E0DE9> /usr/lib/libSystem.B.dylib
0x7fff90050000 - 0x7fff90056ff7 libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
0x7fff9019f000 - 0x7fff901a4fff libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib
0x7fff912a2000 - 0x7fff912abfff libnotify.dylib (80.0.0 - compatibility 1.0.0) <BD08553D-8088-38A8-8007-CF5C0B8F0404> /usr/lib/system/libnotify.dylib
0x7fff914a1000 - 0x7fff914affff libdispatch.dylib (187.5.0 - compatibility 1.0.0) <698F8EFB-7075-3111-94E3-891156C88172> /usr/lib/system/libdispatch.dylib
0x7fff9202c000 - 0x7fff92068fff libsystem_info.dylib (??? - ???) <BC49C624-1DAB-3A37-890F-6EFD46538424> /usr/lib/system/libsystem_info.dylib
0x7fff92b67000 - 0x7fff92b6efff libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399> /usr/lib/system/libcopyfile.dylib
0x7fff92b8e000 - 0x7fff92babff7 libxpc.dylib (77.16.0 - compatibility 1.0.0) <0A4B4775-29A9-30D6-956B-3BE1DBF98090> /usr/lib/system/libxpc.dylib
0x7fff92c29000 - 0x7fff92c31fff libsystem_dnssd.dylib (??? - ???) <7749128E-D0C5-3832-861C-BC9913F774FA> /usr/lib/system/libsystem_dnssd.dylib
0x7fff92e6f000 - 0x7fff92e73fff libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
0x7fff9301a000 - 0x7fff930f7fef libsystem_c.dylib (763.11.0 - compatibility 1.0.0) <1D61CA57-3C6D-30F7-89CB-CC6F0787B1DC> /usr/lib/system/libsystem_c.dylib
0x7fff9312d000 - 0x7fff9312ffff libquarantine.dylib (36.0.0 - compatibility 1.0.0) <4C3BFBC7-E592-3939-B376-1C2E2D7C5389> /usr/lib/system/libquarantine.dylib
0x7fff93158000 - 0x7fff9315dfff libcache.dylib (47.0.0 - compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527> /usr/lib/system/libcache.dylib
0x7fff94486000 - 0x7fff94487ff7 libremovefile.dylib (21.0.0 - compatibility 1.0.0) <C6C49FB7-1892-32E4-86B5-25AD165131AA> /usr/lib/system/libremovefile.dylib
0x7fff94f18000 - 0x7fff94f22ff7 liblaunch.dylib (392.18.0 - compatibility 1.0.0) <39EF04F2-7F0C-3435-B785-BF283727FFBD> /usr/lib/system/liblaunch.dylib
0x7fff952f9000 - 0x7fff952fdfff libdyld.dylib (195.5.0 - compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5> /usr/lib/system/libdyld.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 9892
thread_create: 0
thread_set_state: 78
VM Region Summary:
ReadOnly portion of Libraries: Total=52.8M resident=18.1M(34%) swapped_out_or_unallocated=34.6M(66%)
Writable regions: Total=74.4M written=116K(0%) resident=172K(0%) swapped_out=0K(0%) unallocated=74.3M(100%)
REGION TYPE VIRTUAL
=========== =======
MALLOC 10.2M
MALLOC guard page 16K
STACK GUARD 4K
Stack 64.0M
__DATA 2372K
__LINKEDIT 47.9M
__TEXT 4964K
shared memory 12K
=========== =======
TOTAL 129.3M
Model: iMac8,1, BootROM IM81.00C1.B00, 2 processors, Intel Core 2 Duo, 2.8 GHz, 4 GB, SMC 1.30f1
Graphics: ATI Radeon HD 2600 Pro, ATI Radeon HD 2600 Pro, PCIe, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR2 SDRAM, 667 MHz, 0x7F7F7F7F7F9B0000, 0x000000000000000000000000000000000000
Memory Module: BANK 1/DIMM1, 2 GB, DDR2 SDRAM, 667 MHz, 0x7F7F7F7F7F9B0000, 0x4C49464554494D454D454D4F52592E434F4D
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8C), Broadcom BCM43xx 1.0 (5.10.131.36.11)
Bluetooth: Version 2.5.0f17, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HDP725032GLA380, 320.07 GB
Parallel ATA Device: OPTIARC DVD RW AD-5630A
USB Device: hub_device, apple_vendor_id, 0x911c, 0xfa400000 / 3
USB Device: CanoScan, 0x04a9 (Canon Inc.), 0x2220, 0xfa430000 / 6
USB Device: CTE-650, 0x056a (WACOM Co., Ltd.), 0x0018, 0xfa410000 / 5
USB Device: Apple Cinema HD Display, apple_vendor_id, 0x921c, 0xfa420000 / 4
USB Device: iPhone, apple_vendor_id, 0x1294, 0xfa200000 / 2
USB Device: Built-in iSight, apple_vendor_id, 0x8502, 0xfd400000 / 3
USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfd100000 / 2
USB Device: Razer 1600dpi Mouse, 0x1532, 0x0001, 0xfd110000 / 5
USB Device: Apple Keyboard, apple_vendor_id, 0x0220, 0xfd120000 / 4
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x1a100000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x820f, 0x1a110000 / 5
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x5d100000 / 2
FireWire Device: d2 quadra (button), LaCie, 800mbit_speed
FireWire Device: unknown_device, unknown_speed
More information about the Gambit-list
mailing list