Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clickhouse build failed on MacOS 10.14 #4953

Closed
yedy99 opened this issue Apr 10, 2019 · 6 comments
Closed

clickhouse build failed on MacOS 10.14 #4953

yedy99 opened this issue Apr 10, 2019 · 6 comments
Assignees
Labels
build comp-darwin Darwin-related builds and cross-builds

Comments

@yedy99
Copy link

yedy99 commented Apr 10, 2019

Follow instructions at https://clickhouse.yandex/docs/en/development/build_osx/
but it stopped at the step of

cmake .. -DCMAKE_CXX_COMPILER=which g++-8 -DCMAKE_C_COMPILER=which gcc-8

Operating system
macOS Mojave, version 10.14.3

Cmake version
3.14.1

Ninja version
1.9.0

Compiler name and version
g++-8, gcc-8

Full cmake and/or ninja output
The system is: Darwin - 18.2.0 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/local/bin/gcc-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe
Id flags:

The output was:
0

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/Users/YeDongyan/ClickHouse/build/CMakeFiles/3.14.1/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/local/bin/g++-8
Build flags:
Id flags:

The output was:
0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/Users/YeDongyan/ClickHouse/build/CMakeFiles/3.14.1/CompilerIdCXX/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_3a08c
[1/2] Building C object CMakeFiles/cmTC_3a08c.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_3a08c

Detecting C compiler ABI info compiled with the following output:
Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_a5821
[1/2] Building C object CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o
Using built-in specs.
COLLECT_GCC=/usr/local/bin/gcc-8
Target: x86_64-apple-darwin18.2.0
Configured with: ../configure --build=x86_64-apple-darwin18.2.0 --prefix=/usr/local/Cellar/gcc/8.3.0 --libdir=/usr/local/Cellar/gcc/8.3.0/lib/gcc/8 --disable-nls --enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-8 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew GCC 8.3.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Thread model: posix
gcc version 8.3.0 (Homebrew GCC 8.3.0)
COLLECT_GCC_OPTIONS='-march=core2' '-mtune=haswell' '-mssse3' '-ftree-vectorize' '-fPIE' '-fstack-protector-strong' '-O2' '-pipe' '-isysroot' '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' '-v' '-o' 'CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o' '-c' '-mmacosx-version-min=10.14.0'
/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/cc1 -quiet -v -D__DYNAMIC__ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk /usr/local/Cellar/cmake/3.14.1/share/cmake/Modules/CMakeCCompilerABI.c -fPIC -quiet -dumpbase CMakeCCompilerABI.c -march=core2 -mtune=haswell -mssse3 -mmacosx-version-min=10.14.0 -auxbase-strip CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o -O2 -version -ftree-vectorize -fPIE -fstack-protector-strong -o - |
as -arch x86_64 -v -force_cpusubtype_ALL -mmacosx-version-min=10.14 -o CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o
GNU C17 (Homebrew GCC 8.3.0) version 8.3.0 (x86_64-apple-darwin18.2.0)
compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.20-GMP

warning: MPFR header version 4.0.1 differs from library version 4.0.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/local/include"
ignoring nonexistent directory "/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../../../../../x86_64-apple-darwin18.2.0/include"
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include
/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include-fixed
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks
End of search list.
GNU C17 (Homebrew GCC 8.3.0) version 8.3.0 (x86_64-apple-darwin18.2.0)
compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.20-GMP

warning: MPFR header version 4.0.1 differs from library version 4.0.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 194eb47e2157ab941f281b63d24bc153
Apple LLVM version 10.0.1 (clang-1001.0.46.3)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Found CUDA installation: /usr/local/cuda, version 8.0
"/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as -triple x86_64-apple-macosx10.14.0 -filetype obj -main-file-name - -target-cpu penryn -fdebug-compilation-dir /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp -dwarf-debug-producer Apple LLVM version 10.0.1 (clang-1001.0.46.3) -dwarf-version=4 -mrelocation-model pic -o CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o -
COMPILER_PATH=/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/
LIBRARY_PATH=/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../../
COLLECT_GCC_OPTIONS='-march=core2' '-mtune=haswell' '-mssse3' '-ftree-vectorize' '-fPIE' '-fstack-protector-strong' '-O2' '-pipe' '-isysroot' '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' '-v' '-o' 'CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o' '-c' '-mmacosx-version-min=10.14.0'
[2/2] Linking C executable cmTC_a5821
Using built-in specs.
COLLECT_GCC=/usr/local/bin/gcc-8
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/lto-wrapper
Target: x86_64-apple-darwin18.2.0
Configured with: ../configure --build=x86_64-apple-darwin18.2.0 --prefix=/usr/local/Cellar/gcc/8.3.0 --libdir=/usr/local/Cellar/gcc/8.3.0/lib/gcc/8 --disable-nls --enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-8 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew GCC 8.3.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Thread model: posix
gcc version 8.3.0 (Homebrew GCC 8.3.0)
COMPILER_PATH=/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/
LIBRARY_PATH=/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../../
COLLECT_GCC_OPTIONS='-march=core2' '-mtune=haswell' '-mssse3' '-ftree-vectorize' '-fPIE' '-fstack-protector-strong' '-O2' '-pipe' '-isysroot' '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' '-v' '-o' 'cmTC_a5821' '-mmacosx-version-min=10.14.0' '-asm_macosx_version_min=10.14'
/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.14.0 -pie -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -weak_reference_mismatches non-weak -o cmTC_a5821 -L/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0 -L/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../.. -search_paths_first -headerpad_max_install_names -pie -headerpad_max_install_names -dead_strip_dylibs -v CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 8.3.0
/usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.14.0 -pie -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -weak_reference_mismatches non-weak -o cmTC_a5821 -L/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0 -L/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../.. -search_paths_first -headerpad_max_install_names -pie -headerpad_max_install_names -dead_strip_dylibs -v CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld PROJECT:ld64-450.3
BUILD 18:01:43 Mar 13 2019
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
@(#)PROGRAM:ld PROJECT:ld64-450.3
BUILD 18:01:43 Mar 13 2019
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
Library search paths:
/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0
/usr/local/Cellar/gcc/8.3.0/lib/gcc/8
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib
Framework search paths:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/
/usr/bin/nm -n CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o

Parsed C implicit include dir info from above output: rv=done
found start of include info
found start of implicit include info
add: [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include]
add: [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include-fixed]
add: [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include]
add: [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks]
end of search list found
collapse include dir [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include] ==> [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include]
collapse include dir [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include-fixed] ==> [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include-fixed]
collapse include dir [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include]
collapse include dir [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks]
implicit include dirs: [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include;/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include-fixed;/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include;/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks]

Parsed C implicit link information from above output:
link line regex: [^( |.[/])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command(s):/usr/local/bin/ninja cmTC_a5821 ]
ignore line: [[1/2] Building C object CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/local/bin/gcc-8]
ignore line: [Target: x86_64-apple-darwin18.2.0]
ignore line: [Configured with: ../configure --build=x86_64-apple-darwin18.2.0 --prefix=/usr/local/Cellar/gcc/8.3.0 --libdir=/usr/local/Cellar/gcc/8.3.0/lib/gcc/8 --disable-nls --enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-8 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew GCC 8.3.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk]
ignore line: [Thread model: posix]
ignore line: [gcc version 8.3.0 (Homebrew GCC 8.3.0) ]
ignore line: [COLLECT_GCC_OPTIONS='-march=core2' '-mtune=haswell' '-mssse3' '-ftree-vectorize' '-fPIE' '-fstack-protector-strong' '-O2' '-pipe' '-isysroot' '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' '-v' '-o' 'CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o' '-c' '-mmacosx-version-min=10.14.0' ]
ignore line: [ /usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/cc1 -quiet -v -D__DYNAMIC__ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk /usr/local/Cellar/cmake/3.14.1/share/cmake/Modules/CMakeCCompilerABI.c -fPIC -quiet -dumpbase CMakeCCompilerABI.c -march=core2 -mtune=haswell -mssse3 -mmacosx-version-min=10.14.0 -auxbase-strip CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o -O2 -version -ftree-vectorize -fPIE -fstack-protector-strong -o - |]
ignore line: [ as -arch x86_64 -v -force_cpusubtype_ALL -mmacosx-version-min=10.14 -o CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o]
ignore line: [GNU C17 (Homebrew GCC 8.3.0) version 8.3.0 (x86_64-apple-darwin18.2.0)]
ignore line: [ compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.20-GMP]
ignore line: []
ignore line: [warning: MPFR header version 4.0.1 differs from library version 4.0.2.]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/local/include"]
ignore line: [ignoring nonexistent directory "/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../../../../../x86_64-apple-darwin18.2.0/include"]
ignore line: [ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/Library/Frameworks"]
ignore line: [#include "..." search starts here:]
ignore line: [#include <...> search starts here:]
ignore line: [ /usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include]
ignore line: [ /usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/include-fixed]
ignore line: [ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include]
ignore line: [ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks]
ignore line: [End of search list.]
ignore line: [GNU C17 (Homebrew GCC 8.3.0) version 8.3.0 (x86_64-apple-darwin18.2.0)]
ignore line: [ compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.20-GMP]
ignore line: []
ignore line: [warning: MPFR header version 4.0.1 differs from library version 4.0.2.]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: 194eb47e2157ab941f281b63d24bc153]
ignore line: [Apple LLVM version 10.0.1 (clang-1001.0.46.3)]
ignore line: [Target: x86_64-apple-darwin18.2.0]
ignore line: [Thread model: posix]
ignore line: [InstalledDir: /Library/Developer/CommandLineTools/usr/bin]
ignore line: [Found CUDA installation: /usr/local/cuda, version 8.0]
ignore line: [ "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as -triple x86_64-apple-macosx10.14.0 -filetype obj -main-file-name - -target-cpu penryn -fdebug-compilation-dir /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp -dwarf-debug-producer Apple LLVM version 10.0.1 (clang-1001.0.46.3) -dwarf-version=4 -mrelocation-model pic -o CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o -]
ignore line: [COMPILER_PATH=/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/]
ignore line: [LIBRARY_PATH=/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../../]
ignore line: [COLLECT_GCC_OPTIONS='-march=core2' '-mtune=haswell' '-mssse3' '-ftree-vectorize' '-fPIE' '-fstack-protector-strong' '-O2' '-pipe' '-isysroot' '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' '-v' '-o' 'CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o' '-c' '-mmacosx-version-min=10.14.0' ]
ignore line: [[2/2] Linking C executable cmTC_a5821]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/local/bin/gcc-8]
ignore line: [COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/lto-wrapper]
ignore line: [Target: x86_64-apple-darwin18.2.0]
ignore line: [Configured with: ../configure --build=x86_64-apple-darwin18.2.0 --prefix=/usr/local/Cellar/gcc/8.3.0 --libdir=/usr/local/Cellar/gcc/8.3.0/lib/gcc/8 --disable-nls --enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-8 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew GCC 8.3.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk]
ignore line: [Thread model: posix]
ignore line: [gcc version 8.3.0 (Homebrew GCC 8.3.0) ]
ignore line: [COMPILER_PATH=/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/]
ignore line: [LIBRARY_PATH=/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/:/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../../]
ignore line: [COLLECT_GCC_OPTIONS='-march=core2' '-mtune=haswell' '-mssse3' '-ftree-vectorize' '-fPIE' '-fstack-protector-strong' '-O2' '-pipe' '-isysroot' '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' '-v' '-o' 'cmTC_a5821' '-mmacosx-version-min=10.14.0' '-asm_macosx_version_min=10.14']
link line: [ /usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.14.0 -pie -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -weak_reference_mismatches non-weak -o cmTC_a5821 -L/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0 -L/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../.. -search_paths_first -headerpad_max_install_names -pie -headerpad_max_install_names -dead_strip_dylibs -v CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v]
arg [/usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/collect2] ==> ignore
arg [-dynamic] ==> ignore
arg [-arch] ==> ignore
arg [x86_64] ==> ignore
arg [-macosx_version_min] ==> ignore
arg [10.14.0] ==> ignore
arg [-pie] ==> ignore
arg [-syslibroot] ==> ignore
arg [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk] ==> ignore
arg [-weak_reference_mismatches] ==> ignore
arg [non-weak] ==> ignore
arg [-o] ==> ignore
arg [cmTC_a5821] ==> ignore
arg [-L/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0] ==> dir [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0]
arg [-L/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../..] ==> dir [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../..]
arg [-search_paths_first] ==> ignore
arg [-headerpad_max_install_names] ==> ignore
arg [-pie] ==> ignore
arg [-headerpad_max_install_names] ==> ignore
arg [-dead_strip_dylibs] ==> ignore
arg [-v] ==> ignore
arg [CMakeFiles/cmTC_a5821.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [-no_compact_unwind] ==> ignore
arg [-lSystem] ==> lib [System]
arg [-lgcc_ext.10.5] ==> lib [gcc_ext.10.5]
arg [-lgcc] ==> lib [gcc]
arg [-lSystem] ==> lib [System]
arg [-v] ==> ignore
Library search paths: [;/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0;/usr/local/Cellar/gcc/8.3.0/lib/gcc/8;/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib]
Framework search paths: [;/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/]
remove lib [System]
remove lib [System]
collapse library dir [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0] ==> [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0]
collapse library dir [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0/../../..] ==> [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8]
collapse library dir [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0] ==> [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0]
collapse library dir [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8] ==> [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8]
collapse library dir [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib]
collapse framework dir [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks]
implicit libs: [gcc_ext.10.5;gcc]
implicit dirs: [/usr/local/Cellar/gcc/8.3.0/lib/gcc/8/gcc/x86_64-apple-darwin18.2.0/8.3.0;/usr/local/Cellar/gcc/8.3.0/lib/gcc/8;/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib]
implicit fwks: [/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks]

Detecting C [-std=c11] compiler features compiled with the following output:
Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_e1e25
[1/2] Building C object CMakeFiles/cmTC_e1e25.dir/feature_tests.c.o
[2/2] Linking C executable cmTC_e1e25

Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:1c_restrict
Feature record: C_FEATURE:1c_static_assert
Feature record: C_FEATURE:1c_variadic_macros

Detecting C [-std=c99] compiler features compiled with the following output:
Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_4afb3
[1/2] Building C object CMakeFiles/cmTC_4afb3.dir/feature_tests.c.o
[2/2] Linking C executable cmTC_4afb3

Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:1c_restrict
Feature record: C_FEATURE:0c_static_assert
Feature record: C_FEATURE:1c_variadic_macros

Detecting C [-std=c90] compiler features compiled with the following output:
Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_8fc90
[1/2] Building C object CMakeFiles/cmTC_8fc90.dir/feature_tests.c.o
[2/2] Linking C executable cmTC_8fc90

Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:0c_restrict
Feature record: C_FEATURE:0c_static_assert
Feature record: C_FEATURE:0c_variadic_macros

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/local/bin/g++-8
Build flags:
Id flags:

The output was:
0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/Users/YeDongyan/ClickHouse/build/CMakeFiles/3.14.1/CompilerIdCXX/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/local/bin/g++-8
Build flags:
Id flags:

The output was:
0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/Users/YeDongyan/ClickHouse/build/CMakeFiles/3.14.1/CompilerIdCXX/a.out"
CMakeError.log

@yedy99 yedy99 added the build label Apr 10, 2019
@yedy99
Copy link
Author

yedy99 commented Apr 10, 2019

here is the CMakeError.log

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags:

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: -c

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --c++

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'
g++-8: error: unrecognized command line option '--c++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --ec++

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'
g++-8: error: unrecognized command line option '--ec++'; did you mean '-Weffc++'?

Determining if the CXX compiler works failed with the following output:
Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_a8f49
[1/2] Building CXX object CMakeFiles/cmTC_a8f49.dir/testCXXCompiler.cxx.o
FAILED: CMakeFiles/cmTC_a8f49.dir/testCXXCompiler.cxx.o
/usr/local/bin/g++-8 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_a8f49.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
g++-8: error: unrecognized command line option '-stdlib=libc++'
ninja: build stopped: subcommand failed.

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags:

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: -c

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --c++

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'
g++-8: error: unrecognized command line option '--c++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --ec++

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'
g++-8: error: unrecognized command line option '--ec++'; did you mean '-Weffc++'?

Determining if the CXX compiler works failed with the following output:
Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_3d839
[1/2] Building CXX object CMakeFiles/cmTC_3d839.dir/testCXXCompiler.cxx.o
FAILED: CMakeFiles/cmTC_3d839.dir/testCXXCompiler.cxx.o
/usr/local/bin/g++-8 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_3d839.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
g++-8: error: unrecognized command line option '-stdlib=libc++'
ninja: build stopped: subcommand failed.

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags:

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: -c

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --c++

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'
g++-8: error: unrecognized command line option '--c++'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++-8
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --ec++

The output was:
1
g++-8: error: unrecognized command line option '-stdlib=libc++'
g++-8: error: unrecognized command line option '--ec++'; did you mean '-Weffc++'?

Determining if the CXX compiler works failed with the following output:
Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_070f4
[1/2] Building CXX object CMakeFiles/cmTC_070f4.dir/testCXXCompiler.cxx.o
FAILED: CMakeFiles/cmTC_070f4.dir/testCXXCompiler.cxx.o
/usr/local/bin/g++-8 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_070f4.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
g++-8: error: unrecognized command line option '-stdlib=libc++'
ninja: build stopped: subcommand failed.

@proller
Copy link
Contributor

proller commented Apr 10, 2019

Looks like you show CMakeOutput.log and CMakeError.log , but what cmake prints to screen ?

@yedy99
Copy link
Author

yedy99 commented Apr 10, 2019

Looks like you show CMakeOutput.log and CMakeError.log , but what cmake prints to screen ?

-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- 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
-- Check for working C compiler: /usr/local/bin/gcc-8
-- Check for working C compiler: /usr/local/bin/gcc-8 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Check for working CXX compiler: /usr/local/bin/g++-8
-- Check for working CXX compiler: /usr/local/bin/g++-8 -- broken
CMake Error at /usr/local/Cellar/cmake/3.14.1/share/cmake/Modules/CMakeTestCXXCompiler.cmake:53 (message):
The C++ compiler

"/usr/local/bin/g++-8"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_3d1b4
[1/2] Building CXX object CMakeFiles/cmTC_3d1b4.dir/testCXXCompiler.cxx.o
FAILED: CMakeFiles/cmTC_3d1b4.dir/testCXXCompiler.cxx.o
/usr/local/bin/g++-8    -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_3d1b4.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
g++-8: error: unrecognized command line option '-stdlib=libc++'
ninja: build stopped: subcommand failed.

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

-- Configuring incomplete, errors occurred!
See also "/Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeOutput.log".
See also "/Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeError.log".
Screenshot 2019-04-10 20 47 31

@filimonov
Copy link
Contributor

filimonov commented May 9, 2019

It looks like you have some problem with compiler installed on your system.

Please ensure that brew install commands from https://clickhouse.yandex/docs/en/development/build_osx/ were successful.

I was checking the build yesterday (on a clean install of older macOS 10.12.6 ), and it was succeeded after a few small fixes (see #5223).

@filimonov
Copy link
Contributor

Let's continue in #6459

@filimonov filimonov added the comp-darwin Darwin-related builds and cross-builds label Dec 10, 2019
@woozhijun
Copy link

Looks like you show CMakeOutput.log and CMakeError.log , but what cmake prints to screen ?

-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- 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
-- Check for working C compiler: /usr/local/bin/gcc-8
-- Check for working C compiler: /usr/local/bin/gcc-8 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Check for working CXX compiler: /usr/local/bin/g++-8
-- Check for working CXX compiler: /usr/local/bin/g++-8 -- broken
CMake Error at /usr/local/Cellar/cmake/3.14.1/share/cmake/Modules/CMakeTestCXXCompiler.cmake:53 (message):
The C++ compiler

"/usr/local/bin/g++-8"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_3d1b4
[1/2] Building CXX object CMakeFiles/cmTC_3d1b4.dir/testCXXCompiler.cxx.o
FAILED: CMakeFiles/cmTC_3d1b4.dir/testCXXCompiler.cxx.o
/usr/local/bin/g++-8    -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_3d1b4.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
g++-8: error: unrecognized command line option '-stdlib=libc++'
ninja: build stopped: subcommand failed.

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

-- Configuring incomplete, errors occurred!
See also "/Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeOutput.log".
See also "/Users/YeDongyan/ClickHouse/build/CMakeFiles/CMakeError.log".
Screenshot 2019-04-10 20 47 31

Has the problem been solved ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build comp-darwin Darwin-related builds and cross-builds
Projects
None yet
Development

No branches or pull requests

4 participants