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.


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
    cd /Users/aking/alphacore/oasis/builds/xcode/oasis
    setenv LANG en_US.US-ASCII
    /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

clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
Command /Applications/Xcode-5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254


On Tue, Oct 1, 2013 at 12:21 PM, Marc Feeley <feeley@iro.umontreal.ca> wrote:
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?

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!

Marc

_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list