{"action":"created","issue":{"url":"https://api.github.com/repos/topmonks/libclang-ios/issues/2","labels_url":"https://api.github.com/repos/topmonks/libclang-ios/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/topmonks/libclang-ios/issues/2/comments","events_url":"https://api.github.com/repos/topmonks/libclang-ios/issues/2/events","html_url":"https://github.com/topmonks/libclang-ios/issues/2","id":113242997,"number":2,"title":"Failed to build","user":{"login":"4ntoine","id":846671,"avatar_url":"https://avatars.githubusercontent.com/u/846671?v=3","gravatar_id":"","url":"https://api.github.com/users/4ntoine","html_url":"https://github.com/4ntoine","followers_url":"https://api.github.com/users/4ntoine/followers","following_url":"https://api.github.com/users/4ntoine/following{/other_user}","gists_url":"https://api.github.com/users/4ntoine/gists{/gist_id}","starred_url":"https://api.github.com/users/4ntoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4ntoine/subscriptions","organizations_url":"https://api.github.com/users/4ntoine/orgs","repos_url":"https://api.github.com/users/4ntoine/repos","events_url":"https://api.github.com/users/4ntoine/events{/privacy}","received_events_url":"https://api.github.com/users/4ntoine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-25T18:46:19Z","updated_at":"2015-10-25T19:45:11Z","closed_at":null,"body":"C compiler cannot create executables\r\n\r\n```\r\nMBA-Anton:libclang-ios asmirnov$ ./llvm-ios/scripts/magic.sh \r\n Cloning the necessary projects... \r\nCloning into '/Volumes/Transcend/dev/src/libclang-ios/llvm-ios/scripts/../source/llvm'...\r\nremote: Counting objects: 16290, done.\r\nremote: Compressing objects: 100% (15034/15034), done.\r\nremote: Total 16290 (delta 1982), reused 12796 (delta 1130)\r\nReceiving objects: 100% (16290/16290), 20.37 MiB | 1.45 MiB/s, done.\r\nResolving deltas: 100% (1982/1982), done.\r\nChecking connectivity... done\r\nChecking out files: 100% (15818/15818), done.\r\nCloning into '/Volumes/Transcend/dev/src/libclang-ios/llvm-ios/scripts/../source/llvm/tools/clang'...\r\nremote: Counting objects: 10131, done.\r\nremote: Compressing objects: 100% (9205/9205), done.\r\nremote: Total 10131 (delta 524), reused 8723 (delta 281)\r\nReceiving objects: 100% (10131/10131), 12.75 MiB | 1.44 MiB/s, done.\r\nResolving deltas: 100% (524/524), done.\r\nChecking connectivity... done\r\nChecking out files: 100% (10241/10241), done.\r\nCloning into '/Volumes/Transcend/dev/src/libclang-ios/llvm-ios/scripts/../source/llvm/projects/compiler-rt'...\r\nremote: Counting objects: 1774, done.\r\nremote: Compressing objects: 100% (1423/1423), done.\r\nremote: Total 1774 (delta 507), reused 1211 (delta 325)\r\nReceiving objects: 100% (1774/1774), 2.29 MiB | 754.00 KiB/s, done.\r\nResolving deltas: 100% (507/507), done.\r\nChecking connectivity... done\r\nChecking out files: 100% (1692/1692), done.\r\n Applyig the needed patches... \r\npatching file llvm/utils/unittest/googletest/src/gtest-death-test.cc\r\npatching file llvm/lib/LineEditor/LineEditor.cpp\r\npatching file llvm/unittests/Support/ProgramTest.cpp\r\npatching file llvm/lib/Support/Unix/Program.inc\r\n Building libclang... \r\n/Volumes/Transcend/dev/src/libclang-ios/llvm-ios/build\r\nconfigure: WARNING: If you wanted to set the --build type, don't use --host.\r\n    If a cross compiler is detected then cross compile mode will be used.\r\nchecking for arm-apple-darwin11-clang... clang -arch armv7 -mios-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -stdlib=libc++ -Os\r\nchecking for C compiler default output file name... a.out\r\nchecking whether the C compiler works... yes\r\nchecking whether we are cross compiling... yes\r\nchecking for suffix of executables... \r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether clang -arch armv7 -mios-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -stdlib=libc++ -Os accepts -g... yes\r\nchecking for clang -arch armv7 -mios-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -stdlib=libc++ -Os option to accept ISO C89... none needed\r\nchecking whether we are using the GNU C++ compiler... yes\r\nchecking whether clang++ -arch armv7 -mios-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -stdlib=libc++ -Os accepts -g... yes\r\nchecking how to run the C preprocessor... clang -arch armv7 -mios-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -stdlib=libc++ -Os -E\r\nchecking whether GCC or Clang is our host compiler... clang\r\nchecking build system type... i386-apple-darwin14.5.0\r\nchecking host system type... arm-apple-darwin11\r\nchecking target system type... arm-apple-darwin11\r\nchecking type of operating system we're going to host on... Darwin\r\nchecking type of operating system we're going to target... Darwin\r\nchecking target architecture... ARM\r\nchecking for executable suffix on build platform... checking for -gcc... no\r\nchecking for gcc... gcc\r\nblank\r\nchecking for -g++... no\r\nchecking for g++... g++\r\nchecking whether Clang is new enough... yes\r\nchecking whether Clang will select a modern C++ standard library... no\r\nconfigure: error:\r\nWe detected a missing feature in the standard C++ library that was known to be\r\nmissing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous\r\nC++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older\r\nthan 4.7. You will need to update your system and ensure Clang uses the newer\r\nstandard library.\r\n\r\nIf this error is incorrect or you need to force things to work, you may pass\r\n'--disable-compiler-version-checks' to configure to bypass this test.\r\nmake: *** No targets specified and no makefile found.  Stop.\r\nmake: *** No rule to make target `install'.  Stop.\r\n/Volumes/Transcend/dev/src/libclang-ios/llvm-ios/build\r\nconfigure: WARNING: If you wanted to set the --build type, don't use --host.\r\n    If a cross compiler is detected then cross compile mode will be used.\r\nchecking for arm-apple-darwin11-clang... clang -arch arm64 -mios-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -stdlib=libc++ -Os\r\nchecking for C compiler default output file name... configure: error: C compiler cannot create executables\r\nSee `config.log' for more details.\r\nmake: *** No targets specified and no makefile found.  Stop.\r\nmake: *** No rule to make target `install'.  Stop.\r\n```"},"comment":{"url":"https://api.github.com/repos/topmonks/libclang-ios/issues/comments/150962788","html_url":"https://github.com/topmonks/libclang-ios/issues/2#issuecomment-150962788","issue_url":"https://api.github.com/repos/topmonks/libclang-ios/issues/2","id":150962788,"user":{"login":"4ntoine","id":846671,"avatar_url":"https://avatars.githubusercontent.com/u/846671?v=3","gravatar_id":"","url":"https://api.github.com/users/4ntoine","html_url":"https://github.com/4ntoine","followers_url":"https://api.github.com/users/4ntoine/followers","following_url":"https://api.github.com/users/4ntoine/following{/other_user}","gists_url":"https://api.github.com/users/4ntoine/gists{/gist_id}","starred_url":"https://api.github.com/users/4ntoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4ntoine/subscriptions","organizations_url":"https://api.github.com/users/4ntoine/orgs","repos_url":"https://api.github.com/users/4ntoine/repos","events_url":"https://api.github.com/users/4ntoine/events{/privacy}","received_events_url":"https://api.github.com/users/4ntoine/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T19:45:11Z","updated_at":"2015-10-25T19:45:11Z","body":"i've changed `CC=clang ...` to `CC=\"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  ...` and in similar way for CXX and i was able to go further. But then i've got:\r\n```\r\nllvm[2]: Compiling not.cpp for Release build\r\nllvm[2]: Linking Release executable not (without symbols)\r\nllvm[2]: ======= Finished Linking Release Executable not (without symbols)\r\nllvm[2]: Installing Release /Volumes/Transcend/dev/src/libclang-ios/llvm-ios/scripts/../install/armv7/bin/not\r\nllvm[3]: Compiling src/gtest-all.cc for Release build\r\nllvm[3]: Building Release Archive Library libgtest.a\r\nllvm[3]: Install circumvented with NO_INSTALL\r\nllvm[3]: Compiling TestMain.cpp for Release build\r\nllvm[3]: Building Release Archive Library libgtest_main.a\r\nllvm[3]: Install circumvented with NO_INSTALL\r\nmake[1]: *** No rule to make target `/Volumes/Transcend/dev/src/libclang-ios/llvm-ios/build/BuildTools/Release/bin/llvm-tblgen', needed by `/Volumes/Transcend/dev/src/libclang-ios/llvm-ios/build/lib/IR/Release/Intrinsics.gen.tmp'.  Stop.\r\nmake: *** [install] Error 1\r\n\r\n```"}}