[gambit-list] problems with clang

Marc Feeley feeley at iro.umontreal.ca
Tue Apr 5 09:16:26 EDT 2016


I’m having problems compiling Gambit with clang and --enable-single-host on OS X :

$ ./configure --enable-single-host CC=clang; make -j8
…
$ make check
------------ TEST 1 (debugging support)
../gsi/gsi -:~~bin=../bin,~~lib=../lib,~~include=../include -f debug.scm > test1.out
/bin/sh: line 1: 91157 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
$ clang -v
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

With the same configure command but using GNU gcc, there is no problem.

I’m wondering if this is a code generation bug in clang introduced in the latest Xcode.  Does someone have an older version of clang to check if this problem existed before?

Marc




More information about the Gambit-list mailing list