Hello!
I have recently installed the ClickHouse from here: (How to Build ClickHouse on Mac OS X - ClickHouse Documentation).
Successfully I have download the Clickhouse but when I run this command from documentation:
“cmake … -DCMAKE_CXX_COMPILER=which g++-8 -DCMAKE_C_COMPILER=which gcc-8” then it returns me errors like:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: /path/to/clang
I’ve tried a lot of solutions but all in vain. I don’t know in mac how can I make my cmake to get the C, CXX or ASM compiler.
Seeking Help!
I guess you have a different g++ version installed or none at all.
Try the which g++-8 call directly to see if it is found.
Try to look for the version-less binary which g++
Claus-iMac:agent++-4.5.1 clausklein$ head GNUmakefile
BUILD_TYPE?=Debug
export CXX=g++-12
export CC=gcc-12
export CMAKE_BUILD_TYPE=$(BUILD_TYPE)
export CPM_USE_LOCAL_PACKAGES=0
export CPM_SOURCE_CACHE=${HOME}/.cache/CPM
MACHINE:=$(shell uname -m)
Claus-iMac:agent++-4.5.1 clausklein$ make build
mkdir -p ../build-agent++-4.5.1-x86_64-Debug
cmake -B ../build-agent++-4.5.1-x86_64-Debug -S . -G Ninja -D BUILD_SHARED_LIBS=YES
-- The CXX compiler identification is GNU 12.2.0
-- The C compiler identification is GNU 12.2.0
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/g++-12 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc-12 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
I have installed the NASM using brew.
And replaced ASM with NASM in CMakeLists file. But still I’m getting this:
Getting this error again:
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_NASM_COMPILER could be found.
Tell CMake where to find the compiler by setting the CMake cache entry
CMAKE_NASM_COMPILER to the full path to the compiler, or to the compiler
name if it is in the PATH.