Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

make-share.sh get error #17

Open
namnguyen2091 opened this issue Nov 10, 2020 · 1 comment
Open

make-share.sh get error #17

namnguyen2091 opened this issue Nov 10, 2020 · 1 comment

Comments

@namnguyen2091
Copy link

namnguyen2091 commented Nov 10, 2020

sudo ../make-share.sh

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/may/Downloads/keystone/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_73578/fast"
    /usr/bin/make -f CMakeFiles/cmTC_73578.dir/build.make CMakeFiles/cmTC_73578.dir/build
    make[1]: Entering directory '/home/may/Downloads/keystone/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_73578.dir/testCCompiler.c.o
    /usr/bin/cc    -o CMakeFiles/cmTC_73578.dir/testCCompiler.c.o   -c /home/may/Downloads/keystone/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_73578
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_73578.dir/link.txt --verbose=1
    /usr/bin/cc      -rdynamic CMakeFiles/cmTC_73578.dir/testCCompiler.c.o  -o cmTC_73578 
    /usr/bin/ld: cannot find Scrt1.o: No such file or directory
    /usr/bin/ld: cannot find crti.o: No such file or directory
    collect2: error: ld returned 1 exit status
    CMakeFiles/cmTC_73578.dir/build.make:97: recipe for target 'cmTC_73578' failed
    make[1]: *** [cmTC_73578] Error 1
    make[1]: Leaving directory '/home/may/Downloads/keystone/build/CMakeFiles/CMakeTmp'
    Makefile:126: recipe for target 'cmTC_73578/fast' failed
    make: *** [cmTC_73578/fast] Error 2
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:5 (project)


CMake Error at CMakeLists.txt:5 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/may/Downloads/keystone/build/CMakeFiles/CMakeOutput.log".
See also "/home/may/Downloads/keystone/build/CMakeFiles/CMakeError.log".

I run follow those steps but in this step I get error, how do I fix it?
I run sudo apt-get install cmake before and get no error.

@GeneratorEVil
Copy link

-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:5 (project):
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/home/evil/Downloads/keystone/build/CMakeFiles/CMakeOutput.log".
See also "/home/evil/Downloads/keystone/build/CMakeFiles/CMakeError.log".

echo $CMAKE_CXX_COMPILER
/usr/bin/cmake

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants