[CMake] Issue with non-system gcc path

Mahmood Naderan nt_mahmood at yahoo.com
Sat Nov 2 09:35:52 EDT 2019


Hi,
May I know what is wrong with the specifying a non-system gcc path?

$ cmake .. -DCMAKE_C_COMPILER=/storage/users/mnaderan/tools/gcc-6.1.0/bin/gcc -DCMAKE_CXX_COMPILER=/storage/users/mnaderan/tools/gcc-6.1.0/bin/g++                                   -- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /storage/users/mnaderan/tools/gcc-6.1.0/bin/gcc
-- Check for working C compiler: /storage/users/mnaderan/tools/gcc-6.1.0/bin/gcc -- broken
CMake Error at /storage/users/mnaderan/tools/cmake-3.15.4/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/storage/users/mnaderan/tools/gcc-6.1.0/bin/gcc"

  is not able to compile a simple test program.

  It fails with the following output:




Regards,
Mahmood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20191102/27e87071/attachment.html>


More information about the CMake mailing list