<div dir="ltr">That wasn't me on irc, but, yes - compiling under Xcode 5.0 causes the clang compiler to crash.  For now, I've gone back to 4.6.3 hoping that it'll get fixed in the next 5.0 update.  I should have some time this weekend to make up a simplish test case.  In fact, it's so bad, that while Xcode 5 is indexing, the entire Xcode app crashes.  If I remove the gsc generated c files from the project, it can index without crashing.<br>
<br><div class="gmail_extra"><br>CompileC DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/Objects-normal/x86_64/init_.o /Users/aking/alphacore/oasis/src/scm/init_.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler<br>
    cd /Users/aking/alphacore/oasis/builds/xcode/oasis<br>    setenv LANG en_US.US-ASCII<br>    /Applications/Xcode-5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wno-bool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -D___LIBRARY -DDEBUG=1 -isysroot /Applications/Xcode-5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wno-sign-conversion -iquote /Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/oasis-osx-generated-files.hmap -I/Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/oasis-osx-own-target-headers.hmap -I/Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/oasis-osx-all-target-headers.hmap -iquote /Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/oasis-osx-project-headers.hmap -iquote../../../lib/protobuf-2.5.0 -iquote../../.. -I/Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Products/Debug/include -I../../../lib -I../../../lib/bullet -I../../../lib/gambit -I../../../lib/Gameplay -I../../../lib/JavaScriptCore -I../../../lib/libpng -I../../../lib/libs -I../../../lib/libwebsockets -I../../../lib/lua -I../../../lib/oggvorbis -I../../../lib/Parse -I../../../lib/protobuf-2.5.0 -I../../../lib/sector -I../../../lib/SocketRocket -I../../../lib/bullet/include -I../../../lib/gambit/include -I../../../lib/Gameplay/arm -I../../../lib/Gameplay/i386 -I../../../lib/Gameplay/includes -I../../../lib/libpng/include -I../../../lib/libs/ios -I../../../lib/libs/osx -I../../../lib/lua/include -I../../../lib/oggvorbis/include -I../../../lib/Parse/iOS -I../../../lib/Parse/OSX -I../../../lib/protobuf-2.5.0/google -I../../../lib/bullet/include/BulletCollision -I../../../lib/bullet/include/BulletDynamics -I../../../lib/bullet/include/LinearMath -I../../../lib/libs/ios/armv7 -I../../../lib/libs/ios/armv7s -I../../../lib/libs/ios/i386 -I../../../lib/libs/osx/i386 -I../../../lib/libs/osx/x86_64 -I../../../lib/oggvorbis/include/ogg -I../../../lib/oggvorbis/include/vorbis -I../../../lib/protobuf-2.5.0/google/protobuf -I../../../lib/bullet/include/BulletCollision/BroadphaseCollision -I../../../lib/bullet/include/BulletCollision/CollisionDispatch -I../../../lib/bullet/include/BulletCollision/CollisionShapes -I../../../lib/bullet/include/BulletCollision/Gimpact -I../../../lib/bullet/include/BulletCollision/NarrowPhaseCollision -I../../../lib/bullet/include/BulletDynamics/Character -I../../../lib/bullet/include/BulletDynamics/ConstraintSolver -I../../../lib/bullet/include/BulletDynamics/Dynamics -I../../../lib/bullet/include/BulletDynamics/Vehicle -I../../../lib/protobuf-2.5.0/google/protobuf/io -I../../../lib/protobuf-2.5.0/google/protobuf/stubs -I../../../lib/protobuf-2.5.0/google/protobuf/testing -I../../../lib/libpng/include -I/Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/DerivedSources/x86_64 -I/Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/DerivedSources -F/Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Products/Debug -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/aking/alphacore/oasis/builds/xcode/oasis/../../../lib/Parse/OSX -F/Users/aking/alphacore/oasis/builds/xcode/oasis/oasis-osx -include /Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/PrecompiledHeaders/oasis-osx-Prefix-djfrwbbzjfxaedgofchdkeqbbcby/oasis-osx-Prefix.pch -MMD -MT dependencies -MF /Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/Objects-normal/x86_64/init_.d --serialize-diagnostics /Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/Objects-normal/x86_64/init_.dia -c /Users/aking/alphacore/oasis/src/scm/init_.c -o /Users/aking/alphacore/oasis/builds/xcode/oasis/DerivedData/oasis/Build/Intermediates/oasis.build/Debug/oasis-osx.build/Objects-normal/x86_64/init_.o<br>
<br>clang: error: unable to execute command: Segmentation fault: 11<br>clang: error: clang frontend command failed due to signal (use -v to see invocation)<br>Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)<br>
Target: x86_64-apple-darwin12.5.0<br>Thread model: posix<br>clang: note: diagnostic msg: PLEASE submit a bug report to <a href="http://developer.apple.com/bugreporter/">http://developer.apple.com/bugreporter/</a> and include the crash backtrace, preprocessed source, and associated run script.<br>
clang: error: unable to execute command: Segmentation fault: 11<br>clang: note: diagnostic msg: Error generating preprocessed source(s).<br>Command /Applications/Xcode-5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254<br>
<br><br><div class="gmail_quote">On Tue, Oct 1, 2013 at 12:21 PM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On #gambit someone reported an issue when compiling Gambit on the newly released Xcode 5.  When I try building Gambit with Xcode 5, with and without --enable-single-host, the system builds fine.  Has anyone encountered issues compiling with Xcode 5?<br>

<br>
For your information, I also tried compiling Gambit with GNU gcc 4.8.0.  With gcc the compilation and execution times are much better (with --enable-single-host a "make -j8" takes 20 seconds versus 400 seconds for Xcode 5, and the interpreter is about 2x faster).  To install GNU gcc on OS X, just use the script misc/install-gnu-gcc-osx .  I highly recommend it!<br>

<br>
Marc<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</blockquote></div><br></div></div>