0
Linux用のWindowsサブシステム(Windows 10ビルド10.0.14342)を使用してLLVMをコンパイルしようとしていますが、CakeのエラーについてはCC++コンパイラ。これはbashの中からapt-getを使ってgcc、g ++、build-essentialsを持っているにもかかわらずです。次のように私のコマンドは次のとおりです。WindowsサブスクリプションでLinuxのC&C++コンパイラが見つからない
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86" ../llvm-3.8
私はCMakeの
からエラーの束を取得CMake Error: Parse error in cache file /home/andrew-wsl/llvm/build/CMakeCache.txt. Offending entry: Debug Info builds. CMake Error: Parse error in cache file /home/andrew-wsl/llvm/build/CMakeCache.txt. Offending entry: CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED -- The C compiler identification is unknown CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:186 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:54 (project) -- The CXX compiler identification is unknown CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:185 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:54 (project) -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:47 (try_compile): Unknown extension ".c" for file /home/andrew-wsl/llvm/build/CMakeFiles/CMakeTmp/testCCompiler.c try_compile() works only for enabled languages. Currently these are: ASM C CXX See project() command to enable other languages. Call Stack (most recent call first): CMakeLists.txt:54 (project) -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:54 (project) -- Configuring incomplete, errors occurred! See also "/home/andrew-wsl/llvm/build/CMakeFiles/CMakeOutput.log". See also "/home/andrew-wsl/llvm/build/CMakeFiles/CMakeError.log". [email protected]:~/llvm/build$
CMakeError.logがここで見つけることができます:http://pastebin.com/7rWYFGu5
CMakeOutput.logがここで見つけることができます:http://pastebin.com/2BaEFTvR
gccとg ++でhelloworldプログラムを正常にコンパイルできたため、何が起こっているのか分かりません。
のよう固定していますあなたは同じバイナリ出力ディレクトリ内コンパイラ/ツールチェーンを切り替えるましたか?バイナリの出力ディレクトリを完全に削除してから、最初からやり直してみてください。説明したシナリオでは、キャッシュエラーが一般的です。 – Florian
@Florianあなたが作成したMakefileが出力されるフォルダについて、あなたは話していますか?そうなら、はい。私はそれを完全に削除しましたが、その後も同じCMakeエラーがありました。 – Andrew
'(configure_file): configure_fileファイルの設定に問題があります.'というのは非常に奇妙です。ファイルアクセスの問題(ディスク領域不足、アクセス許可など)に似ています。 'CMakeFiles/CMakeError.log'も見てください。 – Florian