2016-09-19 22 views
1

xcode 8にアップデートした後に次のエラーが発生しましたが、修正方法がわかりません。xcode 8にアップデートした後にClionとCMakeが失敗する

Error:The C compiler "/usr/bin/cc" is not able to compile a simple test program. 
It fails with the following output: 
Change Dir: /Users/username/Library/Caches/CLion2016.2/cmake/generated/CacheBack-27c25a9c/27c25a9c/__default__/CMakeFiles/CMakeTmp 
Run Build Command:"/usr/bin/make" "cmTC_e91e5/fast" 
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e91e5.dir/build.make CMakeFiles/cmTC_e91e5.dir/build 
Building C object CMakeFiles/cmTC_e91e5.dir/testCCompiler.c.o 
/usr/bin/cc -o CMakeFiles/cmTC_e91e5.dir/testCCompiler.c.o -c /Users/username/Library/Caches/CLion2016.2/cmake/generated/CacheBack-27c25a9c/27c25a9c/__default__/CMakeFiles/CMakeTmp/testCCompiler.c 
cc: error: unable to find utility "clang", not a developer tool or in PATH 
make[1]: *** [CMakeFiles/cmTC_e91e5.dir/testCCompiler.c.o] Error 72 
make: *** [cmTC_e91e5/fast] Error 2 
CMake will not be able to correctly generate this project. 
+0

コンパイラが更新されました。ビルドディレクトリを削除し、CMakeを再実行します。 – usr1234567

+0

OS Xを再起動すると問題が解決したようですね! – mattwallace

答えて

1

xcode-select -pチェックそれはXcodeの8のインストールを指していることを確認し、その後xcode-select --installを実行してください。

0

アップデートされたコンポーネントを入手するためにXcodeを起動した後、ライセンスダイアログを受け入れる必要がありました。その後、私はClionを再起動して動作しました。

関連する問題