OK. The OS is centos-6.9 which is pretty old. I think I may hit other errors later.I will try to find another way. Thank you.
Regards, Mahmood On Saturday, November 2, 2019, 5:24:05 PM GMT+3:30, Rainer Poisel <rainer.poi...@gmail.com> wrote: Hi Mahmood, I think there is a problem with your toolchain. Maybe there is an environment variable (hot guess: LD_LIBRARY_PATH or something similar) missing. Have a look into the following files in your build directory: * CMakeFiles/CMakeOutput.log and * CMakeFiles/CMakeError.log Maybe there is some helpful information there? Best regards, Rainer On Sat, Nov 2, 2019 at 2:36 PM Mahmood Naderan via CMake <cmake@cmake.org> wrote: > > 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 > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake