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

Be able to build on Ubuntu 22.04 LTS (probably fails because of newer glibc) #43633

Closed
pkit opened this issue Nov 24, 2022 · 3 comments
Closed
Labels

Comments

@pkit
Copy link
Contributor

pkit commented Nov 24, 2022

[7820/9880] Linking CXX executable base/base/tests/dump_variable
FAILED: base/base/tests/dump_variable 
: && /usr/bin/clang++-15 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -include /home/user/git/ClickHouse/base/glibc-compatibility/glibc-compat-2.32.h -fsized-deallocation  -gdwarf-aranges -pipe -mssse3 -msse4.1 -msse4.2 -mpclmul -mpopcnt -fasynchronous-unwind-tables -falign-functions=32   -Wall -Wno-unused-command-line-argument  -fdiagnostics-absolute-paths -fexperimental-new-pass-manager -Werror -Wextra -Wframe-larger-than=65536 -Wpedantic -Wno-vla-extension -Wno-zero-length-array -Wno-c11-extensions -Wcomma -Wconditional-uninitialized -Wcovered-switch-default -Wdeprecated -Wembedded-directive -Wempty-init-stmt -Wextra-semi-stmt -Wextra-semi -Wgnu-case-range -Winconsistent-missing-destructor-override -Wnewline-eof -Wold-style-cast -Wrange-loop-analysis -Wredundant-parens -Wreserved-id-macro -Wshadow-field -Wshadow-uncaptured-local -Wshadow -Wstring-plus-int -Wundef -Wunreachable-code-return -Wunreachable-code -Wunused-exception-parameter -Wunused-macros -Wunused-member-function -Wunneeded-internal-declaration -Wimplicit-int-float-conversion -Wanon-enum-enum-conversion -Wassign-enum -Wbitwise-op-parentheses -Wint-in-bool-context -Wsometimes-uninitialized -Wtautological-bitwise-compare -Wzero-as-null-pointer-constant -Weverything -Wno-c++98-compat-pedantic -Wno-c++98-compat -Wno-c99-extensions -Wno-conversion -Wno-ctad-maybe-unsupported -Wno-deprecated-dynamic-exception-spec -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-nested-anon-types -Wno-packed -Wno-padded -Wno-shift-sign-overflow -Wno-sign-conversion -Wno-switch-enum -Wno-undefined-func-template -Wno-unused-template -Wno-vla -Wno-weak-template-vtables -Wno-weak-vtables -O2 -g -DNDEBUG -O3  -fno-pie --ld-path=/usr/bin/ld.lld-15 -rdynamic -Wl,--no-undefined -Wl,-no-pie src/CMakeFiles/clickhouse_malloc.dir/Common/malloc.cpp.o base/base/tests/CMakeFiles/dump_variable.dir/dump_variable.cpp.o -o base/base/tests/dump_variable  src/libclickhouse_common_io.a  contrib/jemalloc-cmake/libjemalloc.a  src/Common/StringUtils/libstring_utils.a  base/widechar_width/libwidechar_width.a  base/base/libcommon.a  contrib/poco-cmake/Net/SSL/lib_poco_net_ssl.a  contrib/poco-cmake/Net/lib_poco_net.a  contrib/poco-cmake/Crypto/lib_poco_crypto.a  contrib/poco-cmake/Util/lib_poco_util.a  contrib/poco-cmake/JSON/lib_poco_json.a  contrib/poco-cmake/JSON/lib_poco_json_pdjson.a  contrib/poco-cmake/XML/lib_poco_xml.a  contrib/poco-cmake/XML/lib_poco_xml_expat.a  contrib/replxx-cmake/libreplxx.a  contrib/cctz-cmake/libcctz.a  -Wl,--whole-archive /home/user/git/ClickHouse/build/contrib/cctz-cmake/libtzdata.a -Wl,--no-whole-archive  contrib/fmtlib-cmake/libfmt.a  contrib/double-conversion-cmake/libdouble-conversion.a  contrib/dragonbox-cmake/libdragonbox_to_chars.a  contrib/re2/libre2.a  contrib/re2_st/libre2_st.a  contrib/libcpuid-cmake/libcpuid.a  contrib/boost-cmake/lib_boost_program_options.a  contrib/boost-cmake/lib_boost_system.a  contrib/cityhash102/libcityhash.a  contrib/poco-cmake/Foundation/lib_poco_foundation.a  contrib/zlib-ng/libz.a  contrib/poco-cmake/Foundation/lib_poco_foundation_pcre.a  contrib/zstd-cmake/libzstd.a  contrib/xz/liblzma.a  contrib/aws-s3-cmake/libaws_s3.a  contrib/boringssl-cmake/libssl.a  contrib/boringssl-cmake/libcrypto.a  -lpthread  contrib/aws-s3-cmake/libaws_s3_checksums.a  contrib/brotli-cmake/libbrotli.a  contrib/lz4-cmake/liblz4.a  contrib/bzip2-cmake/libbzip2.a  -Wl,--start-group  base/glibc-compatibility/libglibc-compatibility.a  base/glibc-compatibility/memcpy/libmemcpy.a  contrib/libcxx-cmake/libcxx.a  contrib/libcxxabi-cmake/libcxxabi.a  contrib/libunwind-cmake/libunwind.a  -Wl,--end-group  -nodefaultlibs /usr/lib/llvm-15/lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a  -lc -lm -lrt -lpthread -ldl && :
ld.lld-15: error: undefined symbol: __pthread_mutex_lock
>>> referenced by ThreadFuzzer.cpp:293 (/home/user/git/ClickHouse/src/Common/ThreadFuzzer.cpp:293)
>>>               ThreadFuzzer.cpp.o:(pthread_mutex_lock) in archive src/libclickhouse_common_io.a
>>> did you mean: __pthread_mutex_lock@GLIBC_2.2.5
>>> defined in: /lib/x86_64-linux-gnu/libc.so.6

ld.lld-15: error: undefined symbol: __pthread_mutex_unlock
>>> referenced by ThreadFuzzer.cpp:293 (/home/user/git/ClickHouse/src/Common/ThreadFuzzer.cpp:293)
>>>               ThreadFuzzer.cpp.o:(pthread_mutex_unlock) in archive src/libclickhouse_common_io.a
>>> did you mean: __pthread_mutex_unlock@GLIBC_2.2.5
>>> defined in: /lib/x86_64-linux-gnu/libc.so.6
clang: error: linker command failed with exit code 1 (use -v to see invocation)
$ dpkg -l libc-bin
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version         Architecture Description
+++-==============-===============-============-=================================
ii  libc-bin       2.35-0ubuntu3.1 amd64        GNU C Library: Binaries
@pkit pkit added the feature label Nov 24, 2022
@pkit
Copy link
Contributor Author

pkit commented Nov 24, 2022

Okay, duplicate of #30462

@pkit pkit closed this as completed Nov 24, 2022
@pkit pkit mentioned this issue Nov 24, 2022
@azat
Copy link
Collaborator

azat commented Nov 24, 2022

Seems that you have an old version of sources.
There is no more glibc-compat-2.32.h file. -DDISABLE_HERMETIC_BUILD=OFF supersedes it.

@pkit
Copy link
Contributor Author

pkit commented Nov 24, 2022

Ah, you're right. Somehow got older build checked out! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants