[gambit-list] problems with clang

Whimse thewhimer at gmail.com
Tue Apr 5 10:42:47 EDT 2016


With
$ ./configure --enable-single-host CC=clang; make -j8
Just running ./gsi/gsi would segfault.

But after adding `-—enable-debug', segfault goes away, even `make check' completes with success.

Maybe some new clang optimization technique is breaking some low level ABI presumption by Gambit.

> 在 2016年4月5日,下午9:16,Marc Feeley <feeley at iro.umontreal.ca> 写道:
> 
> 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
> 
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list




More information about the Gambit-list mailing list