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

Build failed on Mac OS 10.14. #13

Open
selitsky opened this issue Jul 16, 2019 · 5 comments
Open

Build failed on Mac OS 10.14. #13

selitsky opened this issue Jul 16, 2019 · 5 comments

Comments

@selitsky
Copy link

brew install clickhouse results:

==> ninja
Last 15 lines from /Users/s-igor/Library/Logs/Homebrew/clickhouse/02.ninja:
FAILED: dbms/CMakeFiles/clickhouse_common_io.dir/src/Common/ActionLock.cpp.o 
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++  -DBOOST_SYSTEM_NO_DEPRECATED -DPOCO_STATIC -DPOCO_UNBUNDLED_ZLIB -DUNALIGNED_OK -DWITH_GZFILEOP -DX86_64 -DZLIB_COMPAT -I../libs/libcommon/include -Ilibs/libcommon/include -I../dbms/src -Idbms/src -I../contrib/zlib-ng -Icontrib/zlib-ng -I../contrib/cityhash102/include -I../libs/libwidechar_width -I../libs/libpocoext/include -I../contrib/croaring -isystem ../contrib/double-conversion -isystem ../contrib/brotli/c/include -isystem ../contrib/re2 -isystem ../contrib/poco/Data/include -isystem ../contrib/libpcg-random/include -isystem ../contrib/poco/Foundation/include -isystem ../contrib/boost -isystem ../contrib/poco/Net/include -isystem ../contrib/poco/Util/include -isystem ../contrib/poco/XML/include -isystem ../contrib/poco/JSON/include -isystem contrib/re2_st -isystem ../contrib/libcpuid/include -isystem ../contrib/poco/NetSSL_OpenSSL/include -isystem ../contrib/poco/Crypto/include -isystem ../contrib/ssl/include -fdiagnostics-color=always  -msse4.1 -msse4.2 -mpopcnt  -fno-omit-frame-pointer  -Wall -Wno-unused-command-line-argument  -Wnon-virtual-dtor -Wextra -Werror -Wpedantic -Wno-vla-extension -Wno-zero-length-array -Wno-gnu-anonymous-struct -Wno-nested-anon-types -Wshadow -Wshadow-uncaptured-local -Wextra-semi -Wcomma -Winconsistent-missing-destructor-override -Wunused-exception-parameter -Wcovered-switch-default -Wold-style-cast -Wrange-loop-analysis -Wunused-member-function -Wunreachable-code -Wunreachable-code-return -Wnewline-eof -Wembedded-directive -Wgnu-case-range -Wunused-macros -Wconditional-uninitialized -Wdeprecated -Wundef -Wreserved-id-macro -Wredundant-parens -Wzero-as-null-pointer-constant -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-noreturn -Wno-padded -Wno-switch-enum -Wno-shadow-field-in-constructor -Wno-deprecated-dynamic-exception-spec -Wno-float-equal -Wno-weak-vtables -Wno-shift-sign-overflow -Wno-sign-conversion -Wno-conversion -Wno-exit-time-destructors -Wno-undefined-func-template -Wno-documentation-unknown-command -Wno-missing-variable-declarations -Wno-unused-template -Wno-global-constructors -Wno-c99-extensions -Wno-missing-prototypes -Wno-weak-template-vtables -Wno-zero-length-array -Wno-gnu-anonymous-struct -Wno-nested-anon-types -Wno-double-promotion -Wno-disabled-macro-expansion -Wno-used-but-marked-unused -Wno-vla-extension -Wno-vla -Wno-packed -Wno-return-std-move-in-c++11 -Wextra-semi-stmt -Wshadow-field -Wstring-plus-int -Wempty-init-stmt -Wno-ctad-maybe-unsupported -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk   -std=c++1z -MD -MT dbms/CMakeFiles/clickhouse_common_io.dir/src/Common/ActionLock.cpp.o -MF dbms/CMakeFiles/clickhouse_common_io.dir/src/Common/ActionLock.cpp.o.d -o dbms/CMakeFiles/clickhouse_common_io.dir/src/Common/ActionLock.cpp.o -c ../dbms/src/Common/ActionLock.cpp
error: unknown warning option '-Wextra-semi-stmt'; did you mean '-Wextra-semi'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wempty-init-stmt'; did you mean '-Wimplicit-int'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-ctad-maybe-unsupported' [-Werror,-Wunknown-warning-option]
[1930/3050] Building CXX object contrib/hyperscan/CMakeFiles/hs_compile.dir/src/util/charreach.cpp.o
[1931/3050] Building CXX object contrib/hyperscan/CMakeFiles/hs_compile.dir/src/util/compile_context.cpp.o
[1932/3050] Building CXX object contrib/hyperscan/CMakeFiles/hs_compile.dir/src/util/compile_error.cpp.o
[1933/3050] Building CXX object contrib/hyperscan/CMakeFiles/hs_compile.dir/src/util/depth.cpp.o
[1934/3050] Building CXX object utils/convert-month-partitioned-parts/CMakeFiles/convert-month-partitioned-parts.dir/main.cpp.o
[1935/3050] Building CXX object contrib/hyperscan/CMakeFiles/hs_compile.dir/src/util/clique.cpp.o
[1936/3050] Building CXX object contrib/hyperscan/CMakeFiles/hs_compile.dir/src/rose/rose_build_width.cpp.o
[1937/3050] Building CXX object contrib/hyperscan/CMakeFiles/hs_compile.dir/src/rose/rose_in_util.cpp.o
[1938/3050] Building CXX object contrib/hyperscan/CMakeFiles/hs_compile.dir/src/rose/rose_build_role_aliasing.cpp.o
ninja: build stopped: subcommand failed.

BTW :

$ clickhouse-client 
dyld: Symbol not found: __ZNKSt3_V214error_category10_M_messageB5cxx11Ei
  Referenced from: /usr/local/bin/clickhouse-client
  Expected in: /usr/lib/libstdc++.6.dylib
 in /usr/local/bin/clickhouse-client
Abort trap: 6
@scottlepp
Copy link

@selitsky here is what I did:

brew tap arduanov/clickhouse
brew install gcc@8
brew install --cc=gcc-8 clickhouse

You many encounter dependency errors during the above install. If a dependency fails to install, identify that dependency in the error and:

brew install [dependency] (without the --cc flag).
brew install --cc=gcc-8 clickhouse (again)
You may have to do the above repeatedly for each error/dependency that you don't already have.

@jbwl
Copy link

jbwl commented Jul 31, 2019

What are the technical reasons that Clickhouse is such a PITA to install on other systems than Ubuntu?

@selitsky
Copy link
Author

selitsky commented Aug 1, 2019

@selitsky here is what I did:

brew tap arduanov/clickhouse
brew install gcc@8
brew install --cc=gcc-8 clickhouse
Thank you, this is work with brew upgrade cmake

@selitsky selitsky closed this as completed Aug 1, 2019
@selitsky
Copy link
Author

selitsky commented Aug 1, 2019

I suppose, it's better to add gcc8 trick to README file.

@selitsky selitsky reopened this Aug 1, 2019
@calebeaires
Copy link

I had problem to install clickhouse. It appears that they does not support gcc8, but gcc9. Take a look: ClickHouse/ClickHouse#7970 (comment)

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

4 participants