I'm trying to build and run llvm 3.8 together with the clang and clang-tools-extra.
The steps I followed are the ones on LLVM with the difference that I'm using this git mirror to check what I need.
So, shortly, I have:
LLVM 3.8
Clang 3.8 in llvm/tools
Clang-tools-extra 3.8 in llvm/tools
I can execute:
cmake -G Xcode ../llvm to generate the build files in my 'build' folder, but when I start building llvm with
xcodebuild the build fails because in /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
"clang/Basic/Diagnostic.h"
"clang/Basic/SourceManager.h"
"clang/Tooling/Refactoring.h"
cannot be found
The building phase stops at
=== BUILD TARGET clangTidyCERTModule OF PROJECT LLVM WITH THE DEFAULT CONFIGURATION (Debug) ===
CompileC /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.o tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/carlodidomenico/Thesis/git/LLVM/llvm
export LANG=en_US.US-ASCII
/Applications/Xcode7.3/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wnon-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DGTEST_HAS_RTTI=0 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -isysroot /Applications/Xcode7.3/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/Debug/lib/include -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert -I/Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/include -I/Users/carlodidomenico/Thesis/git/LLVM/llvm/include -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/DerivedSources/x86_64 -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/Debug/lib -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -fno-exceptions -fno-rtti -MMD -MT dependencies -MF /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.d --serialize-diagnostics /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.dia -c /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp -o /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.o
In file included from /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp:10:
In file included from /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/../ClangTidy.h:13:
/Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/../ClangTidyDiagnosticConsumer.h:14:10: fatal error:
'clang/Basic/Diagnostic.h' file not found
#include "clang/Basic/Diagnostic.h"
Am I doing something wrong or what. It seems such a straightforward sequences of steps to be followed, but something is going wrong.
Initially I thought the problem was with just the "clang/Basic/Diagnostic.h" so I've opened the "LLVM.xcodeproj" with Xcode itself and noticed that "clang/Basic/SourceManager.h" file is not found and "clang/Tooling/Refactoring.h" too.
It seems like all the #include "clan/*" are giving problems
In order to use clang-tools-extra you'd also need to have clang sources. It seems that you prepared your combined source tree improperly. Please consider following the instructions at http://clang.llvm.org/get_started.html
Related
I have an old project which compiles well on my iPhone 4, but when I try to compile for my iPhone 6 I encounter this starcan't specifiy -Q with -arch arm64
what does it mean? does any one have any idea?
here a shot of my project setting:
the second one is my project subModule meeting shot:
CompileC /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.o AVAnimator/maxvid_decode_arm.s normal arm64 assembler-with-cpp com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/hashem/Desktop/Xcode Projects/Gulestan"
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x assembler-with-cpp -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wmissing-prototypes -Wunreachable-code -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-generated-files.hmap -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-own-target-headers.hmap -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-all-target-headers.hmap -iquote /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/iGolestan-project-headers.hmap -iquote../OHAttributedLabel -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/DerivedSources/arm64 -I/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/DerivedSources -F/Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Products/Debug-iphoneos -no-integrated-as -MMD -MT dependencies -MF /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.d --serialize-diagnostics /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.dia -c /Users/hashem/Desktop/Xcode\ Projects/Gulestan/AVAnimator/maxvid_decode_arm.s -o /Users/hashem/Library/Developer/Xcode/DerivedData/iGolestanWorkSpace-adtgzikxceksufgpstzqxkjvkepa/Build/Intermediates/iGolestan.build/Debug-iphoneos/iGolestan.build/Objects-normal/arm64/maxvid_decode_arm.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as: can't specifiy -Q with -arch arm64
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
You are attempting to compile AVAnimator/maxvid_decode_arm.s which is 32 bit ARM asm code under the ARM64 built target. You will need to update the version of the AVAnimator library that you have embedded into your app to the github HEAD in order to compiler for ARM64.
This question already has answers here:
xcode LLVM 5.1 clang error
(5 answers)
Closed 8 years ago.
So I tried to run my app on iPhone 7, and ASIHttp didn't work. After some search I saw that people are migrating to AFNetworking, so I decided to do the same. Here's what I did:
Updated Xcode to version 5.1
Followed the instructions here
(setup cocoapods, installed afnetworking, changed project)
and tried to run. The first build failed with this message:
clang: error: unknown argument: '-fno-obj-arc' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
The only 2 reports I found about this are here and here
and they tell me to add some flag while doing the pod download:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
Did that and tried again, to no avail. Now I can't even go back to the other project. Has anyone dealt with this problem so far? The option is in the command line, but I can't find anywhere to remove it. I don't think I should anyway.
Here's the command line, you can see the argument right after AFNetworking:
ProcessPCH /Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/PrecompiledHeaders/SPCMobile-Prefix-bbhdqojfrkhfytgpvixlnglajmxy/SPCMobile-Prefix.pch.pch SPCMobile/SPCMobile-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/cesarc/Desktop/projetos/SPCMobile
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-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 -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.1 -I/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/SPCMobile.build/Release-iphonesimulator/SPCMobile.build/SPCMobile.hmap -I/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Products/Release-iphonesimulator/include -I/Users/cesarc/Desktop/projetos/SPCMobile/Pods/Headers -I/Users/cesarc/Desktop/projetos/SPCMobile/Pods/Headers/AFNetworking -I/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/SPCMobile.build/Release-iphonesimulator/SPCMobile.build/DerivedSources/i386 -I/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/SPCMobile.build/Release-iphonesimulator/SPCMobile.build/DerivedSources -F/Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Products/Release-iphonesimulator -DNS_BLOCK_ASSERTIONS=1 -isystem /Users/cesarc/Desktop/projetos/SPCMobile/Pods/Headers -isystem /Users/cesarc/Desktop/projetos/SPCMobile/Pods/Headers/AFNetworking -fno-obj-arc --serialize-diagnostics /Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/PrecompiledHeaders/SPCMobile-Prefix-bbhdqojfrkhfytgpvixlnglajmxy/SPCMobile-Prefix.pch.dia -MMD -MT dependencies -MF /Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/PrecompiledHeaders/SPCMobile-Prefix-bbhdqojfrkhfytgpvixlnglajmxy/SPCMobile-Prefix.pch.d -c /Users/cesarc/Desktop/projetos/SPCMobile/SPCMobile/SPCMobile-Prefix.pch -o /Users/cesarc/Library/Developer/Xcode/DerivedData/SPCMobile-aaaxjlqvwxhxfbhebqibusfjonip/Build/Intermediates/PrecompiledHeaders/SPCMobile-Prefix-bbhdqojfrkhfytgpvixlnglajmxy/SPCMobile-Prefix.pch.pch
Check the Build Phases section for the Compile Sources, you should have the No Arc flag (-fno-objc-arc) there, just make sure the spelling is correct.
Im Trying to build/run a iOS app on the iPhone 6.1 Simulator, however im getting this error.
Ive looked around and tried evertything ive found but nothing has helped.
This will build on other computers, but not this one.
Im completley new to iOS development so I dont know where to start.
Any help is apreciated, here is the error message:
CompileC /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o CorsageCreations/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations"
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare" "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.." -F/Users/GuestUser/Desktop -include /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch -MMD -MT dependencies -MF /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d --serialize-diagnostics /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -c "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m" -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o
0 clang 0x0000000100c57bb2 main + 12932498
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple i386-apple-ios5.0.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name AppDelegate.m -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 136 -g -coverage-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/4.2 -dependency-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -include-pch /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch.pth -D DEBUG=1 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.. -F/Users/GuestUser/Desktop -fmodule-cache-path /var/folders/_z/1x7mbrnx6f310pngnn97l5_00000gn/T/clang-module-cache -O0 -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -std=gnu99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=ios-5.0.0 -fobjc-default-synthesize-properties -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fasm-blocks -serialize-diagnostic-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -x objective-c /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m
1. /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/ArrayObject.h:46:33: current parser token ':'
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 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: i386-apple-darwin12.3.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.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254
I've experienced the same issue. It turned out that the host's folders shared by VMWare were read-only (even though that the read-only attribute from VM settings was unchecked).
Have you tried running sample xcode projects or copying code you're referencing to the VM?
I ended up sharing my folders using regular file sharing built in Windows 8.
I got the same error. I was running my Example project keeping it in VMWare Shared Folder's sub folder. And that was the reason, which made the above issue.
I copied my example project which I wanted to compile and Run (or even build which gave the above error) and pasted it into the Mac OS X(Mavericks) Desktop which was running on the VMWare Workstation 9.0. Then tried running it and it worked!
Hope this answer would be helpful to someone else out there!
Good Luck!!!
You made clang (the compiler) segfault (Segmentation fault: 11). Nothing you can do about it (unless you want to patch clang), you could however investigate the issue by passing the -v option when compiling.
I'm not absolutely sure, but I would say it is because your are developing inside a virtual machine. As far as I know OS X is only supported as a guest OS in VMWare Fusion 5+, and even then it is rather unstable.
I had this same problem with OS X, not iOS, so it seems not platform dependent.
Specifically, the compiler did not create the .o file and did not report any syntax errors.
The problem was caused by a property with a void type:
#property(readonly) void reset;
Removing the property fixed the problem.
This creates a similar problem, and shows a possible cause. Try putting this into a .m file and compiling it:
typedef struct{
int workAroundAsStructCannotBeOtherwiseEmpty;
float points [];
} arrayOfFloats;
#property arrayOfFloats someArrayOfFloats;
Interestingly, won't compile without the "workaround" line. If you change it to float points [10] it compiles fine.
I don't know what happened; All of a sudden I started getting this error. I tried re-moving and re-adding Core Plot, but it didn't seem to change anything. Core plot was originally not giving me any errors, but now I'm getting the following:
clang: error: -Z-reserved-lib-stdc++: 'linker' input unused when '-c' is present
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I've seen similar questions on stackoverflow but a) they didn't help me and b) This is a newer version of XCode (4.5.1), so maybe that's part of the problem?
Thanks for your help.
EDIT: In the meantime I switched to a static library install, which seemed to work. I don't really know the differences/advantages of one over the other, except maybe it's easier to update the dependent project install? (sorry for my noobnesss)
More detail:
CompileC /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.o Source/CPTPlot.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/username/Developer/appname/CorePlot_1.0/Source/framework
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Werror -Wmissing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -mios-simulator-version-min=3.1.3 -iquote /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-generated-files.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-own-target-headers.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-all-target-headers.hmap -iquote /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-project-headers.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources/i386 -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources -F/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Products/Debug-iphonesimulator -lstdc++ -falign-loops=16 -MMD -MT dependencies -MF /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.d --serialize-diagnostics /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.dia -c /Users/username/Developer/appname/CorePlot_1.0/Source/framework/Source/CPTPlot.m -o /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.o
I just had this problem after upgrading my xcode version. I found that although xcode was installed, it was still installing some libraries in the background while I was getting this error, once those processes finished, the error went away.
I have a iOS peoject. it run on my iPhone & iPad as well. Now I want build the project in terminal with xcodebuild. But i get errors, it likes that:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wmissing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-conversion -Wno-sign-conversion -mthumb "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=3.2 -I/Users/zhangyangjing/Desktop/556/Tabster/build/Tabster.build/Release-iphoneos/Tabster.build/Tabster.hmap -I/Users/zhangyangjing/Desktop/556/Tabster/build/Release-iphoneos/include -I/Users/zhangyangjing/Desktop/556/Tabster/build/Tabster.build/Release-iphoneos/Tabster.build/DerivedSources/armv7 -I/Users/zhangyangjing/Desktop/556/Tabster/build/Tabster.build/Release-iphoneos/Tabster.build/DerivedSources -F/Users/zhangyangjing/Desktop/556/Tabster/build/Release-iphoneos --serialize-diagnostics /var/folders/34/1khlf2gx2t5bkm3llcs1mhmr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-dnpnglnqyykokvgarilsbxpvuaap/Prefix.pch.dia -c /Users/zhangyangjing/Desktop/556/Tabster/Prefix.pch -o /var/folders/34/1khlf2gx2t5bkm3llcs1mhmr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-dnpnglnqyykokvgarilsbxpvuaap/Prefix.pch.pth -MMD -MT dependencies -MF /var/folders/34/1khlf2gx2t5bkm3llcs1mhmr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-dnpnglnqyykokvgarilsbxpvuaap/Prefix.pch.d
In file included from /Users/zhangyangjing/Desktop/556/Tabster/Prefix.pch:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:108:16: fatal error: 'CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h' file not found
#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
** BUILD FAILED **
The following build commands failed:
ProcessPCH /var/folders/34/1khlf2gx2t5bkm3llcs1mhmr0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-dnpnglnqyykokvgarilsbxpvuaap/Prefix.pch.pth Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I have tried demo project from Apple, they got errors as same. I am crazying, who can help me?
i resolve it.
just do:
cd /usr/bin
rm xcodebuild
ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild xcodebuild