CMake in CLion fails, cannot find 'cc1obj', works fine outside of CLion
I'm just testing CLion out, but it fails right from the start. The CMake run cannot configure, since it cannot find 'cc1obj'.
I checked and reinstalled all my build essentials and even explicity re-installed gobjc++
External CMake can generate build files without problems.
I'm running gcc on Ubuntu 16.04.
Here is the CMake output ( I removed the long include paths and substituted them with '......' )
/home/david/Software/clion/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/david/Repos/mesh_toolbox
-- The C compiler identification is GNU 6.4.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/david/Repos/mesh_toolbox/cmake-build-debug
Cannot get compiler information:
Compiler exited with error code 1: /usr/bin/cc -xobjective-c -I/home/...........libigl/tutorial -imultiarch x86_64-linux-gnu -D ___CIDR_DEFINITIONS_END /tmp/compiler-file -mtune=generic -march=x86-64 -fpch-preprocess -g -fworking-directory -fstack-protector-strong -Wformat -Wformat-security -dD
cc: error trying to exec 'cc1obj': execvp: No such file or directory
请先登录再写评论。
Hi!
Could you please specify the following details:
1. Does it fail on the simple "Hello, world" project?
2. Do you have any Objective-C (.m) files in your project?
3. Are you able to build your project outside of CLion?