ClickHouse / ClickHouse

ClickHouse® is a real-time analytics DBMS
https://clickhouse.com
Apache License 2.0
37.91k stars 6.95k forks source link

(only with Vagrant) Issues building Clickhouse on Linux #42416

Closed ddelnano closed 2 years ago

ddelnano commented 2 years ago

Make sure that git diff result is empty and you've just pulled fresh master. Try cleaning up cmake cache. Just in case, official build instructions are published here: https://clickhouse.com/docs/en/development/build/

My git status only shows that the Vagrantfile and .vagrant directories have been created. Otherwise my repo is clean on master (eb637a6f81c4908e9e5ed72776b4edbc88f263da)

``` [tw-mbp-ddelnano ClickHouse (master)]% gs On branch master Your branch is up to date with 'origin/master'. Untracked files: (use "git add ..." to include in what will be committed) .vagrant/ Vagrantfile nothing added to commit but untracked files present (use "git add" to track) ```

Operating system

``` Vagrant.configure("2") do |config| config.vm.define "default" do |jammy| jammy.vm.box = "ubuntu/jammy64" jammy.disksize.size = '50GB' jammy.ssh.username = "vagrant" jammy.ssh.password = "vagrant" end config.vm.synced_folder "./", "/vagrant" config.vm.provider "virtualbox" do |v| v.memory = 4096 end end ```

Cmake version 3.22.1

Ninja version 1.10.1

Compiler name and version Clang 15.0.3

vagrant@ubuntu-jammy:/vagrant/build$ clang --version
Ubuntu clang version 15.0.3-++20221011063106+02129eab7d58-1~exp1~20221011183143.77
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
vagrant@ubuntu-jammy:/vagrant/build$ clang++ --version
Ubuntu clang version 15.0.3-++20221011063106+02129eab7d58-1~exp1~20221011183143.77
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Full cmake and/or ninja output

``` vagrant@ubuntu-jammy:/vagrant$ rm -rf build/ vagrant@ubuntu-jammy:/vagrant$ mkdir build vagrant@ubuntu-jammy:/vagrant$ cd build vagrant@ubuntu-jammy:/vagrant/build$ cmake .. -- The C compiler identification is Clang 15.0.3 -- The CXX compiler identification is Clang 15.0.3 -- The ASM compiler identification is Clang with GNU-like command-line -- Found assembler: /usr/bin/clang-15 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang-15 - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++-15 - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Cross-compiling for target: -- Using compiler: Ubuntu clang version 15.0.3-++20221011063106+02129eab7d58-1~exp1~20221011183143.77 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin -- Using linker: /usr/bin/ld.lld-15 -- Using archiver: /usr/bin/llvm-ar-15 -- Using ranlib: /usr/bin/llvm-ranlib-15 -- Using install-name-tool: /usr/bin/llvm-install-name-tool-15 -- Using objcopy: /usr/bin/llvm-objcopy-15 -- Using strip: /usr/bin/llvm-strip-15 -- Using ccache: /usr/bin/ccache (version 4.5.1) -- Found Git: /usr/bin/git (found version "2.34.1") -- Git HEAD commit hash: eb637a6f81c4908e9e5ed72776b4edbc88f263da On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules) modified: contrib/icu (modified content) modified: contrib/llvm-project (modified content) Untracked files: (use "git add ..." to include in what will be committed) .vagrant/ Vagrantfile no changes added to commit (use "git add" and/or "git commit -a") -- CMAKE_BUILD_TYPE is not set, set to default = RelWithDebInfo -- CMAKE_BUILD_TYPE: RelWithDebInfo -- Performing Test HAS_RESERVED_IDENTIFIER -- Performing Test HAS_RESERVED_IDENTIFIER - Success -- Performing Test HAS_SUGGEST_DESTRUCTOR_OVERRIDE -- Performing Test HAS_SUGGEST_DESTRUCTOR_OVERRIDE - Success -- Performing Test HAS_SUGGEST_OVERRIDE -- Performing Test HAS_SUGGEST_OVERRIDE - Success -- Performing Test HAS_USE_CTOR_HOMING -- Performing Test HAS_USE_CTOR_HOMING - Success -- Performing Test SUPPORTS_CXXFLAG_no_enum_constexpr_conversion -- Performing Test SUPPORTS_CXXFLAG_no_enum_constexpr_conversion - Failed -- Performing Test SUPPORTS_CFLAG_no_enum_constexpr_conversion -- Performing Test SUPPORTS_CFLAG_no_enum_constexpr_conversion - Failed -- Flag -Wno-enum-constexpr-conversion is unsupported -- Flag -Wno-enum-constexpr-conversion is unsupported -- Adding .gdb-index via --gdb-index linker option. -- No official build: A checksum hash will not be added to the clickhouse executable -- Disabling compiler -pipe option (have only 3311 mb of memory) -- Performing Test HAVE_SSSE3 -- Performing Test HAVE_SSSE3 - Success -- Performing Test HAVE_SSE41 -- Performing Test HAVE_SSE41 - Success -- Performing Test HAVE_SSE42 -- Performing Test HAVE_SSE42 - Success -- Performing Test HAVE_PCLMULQDQ -- Performing Test HAVE_PCLMULQDQ - Success -- Performing Test HAVE_POPCNT -- Performing Test HAVE_POPCNT - Success -- Performing Test HAVE_AVX -- Performing Test HAVE_AVX - Success -- Performing Test HAVE_AVX2 -- Performing Test HAVE_AVX2 - Success -- Performing Test HAVE_AVX512 -- Performing Test HAVE_AVX512 - Success -- Performing Test HAVE_AVX512_VBMI -- Performing Test HAVE_AVX512_VBMI - Success -- Performing Test HAVE_BMI -- Performing Test HAVE_BMI - Success -- Performing Test HAS_BRANCHES_WITHIN_32B_BOUNDARIES -- Performing Test HAS_BRANCHES_WITHIN_32B_BOUNDARIES - Success -- Default libraries: -nodefaultlibs /usr/lib/llvm-15/lib/clang/15.0.3/lib/linux/libclang_rt.builtins-x86_64.a -lc -lm -lrt -lpthread -ldl -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Looking for sys/random.h -- Looking for sys/random.h - found -- Performing Test SUPPORTS_CXXFLAG_no_unused_command_line_argument -- Performing Test SUPPORTS_CXXFLAG_no_unused_command_line_argument - Success -- Performing Test SUPPORTS_CXXFLAG_no_unused_but_set_variable -- Performing Test SUPPORTS_CXXFLAG_no_unused_but_set_variable - Success -- Performing Test SUPPORTS_CXXFLAG_no_builtin_requires_header -- Performing Test SUPPORTS_CXXFLAG_no_builtin_requires_header - Success -- Some symbols from glibc will be replaced for compatibility -- Performing Test HAVE_WARNING_UNUSED_BUT_SET_VARIABLE -- Performing Test HAVE_WARNING_UNUSED_BUT_SET_VARIABLE - Success -- Performing Test HAVE_WARNING_MISSING_ATTRIBUTES -- Performing Test HAVE_WARNING_MISSING_ATTRIBUTES - Failed -- Performing Test HAVE_WARNING_MAYBE_UNINITIALIZED -- Performing Test HAVE_WARNING_MAYBE_UNINITIALIZED - Failed -- Performing Test HAVE_WARNING_REGISTER -- Performing Test HAVE_WARNING_REGISTER - Success -- Using libunwind: unwind -- Using exception handler: unwind -- Unit tests are enabled -- Building for: Linux x86_64 ; USE_STATIC_LIBRARIES=ON SPLIT_SHARED_LIBRARIES=OFF -- Adding contrib module miniselect (configuring with miniselect-cmake) -- Adding contrib module pdqsort (configuring with pdqsort-cmake) -- Adding contrib module sparsehash-c11 (configuring with sparsehash-c11-cmake) -- Adding contrib module abseil-cpp (configuring with abseil-cpp-cmake) -- Adding contrib module magic_enum (configuring with magic-enum-cmake) -- Adding contrib module boost (configuring with boost-cmake) -- Adding contrib module cctz (configuring with cctz-cmake) -- Packaging with tzdata version: 2022e -- Adding contrib module consistent-hashing (configuring with consistent-hashing) -- Adding contrib module dragonbox (configuring with dragonbox-cmake) -- Adding contrib module vectorscan (configuring with vectorscan-cmake) -- Adding contrib module jemalloc (configuring with jemalloc-cmake) -- jemalloc malloc_conf: percpu_arena:percpu,oversize_threshold:0,muzzy_decay_ms:5000,dirty_decay_ms:5000 -- Adding contrib module libcpuid (configuring with libcpuid-cmake) -- Adding contrib module libdivide (configuring with libdivide) -- Adding contrib module libmetrohash (configuring with libmetrohash) -- Adding contrib module lz4 (configuring with lz4-cmake) -- Adding contrib module murmurhash (configuring with murmurhash) -- Adding contrib module replxx (configuring with replxx-cmake) -- Adding contrib module unixodbc (configuring with unixodbc-cmake) -- Adding contrib module nanodbc (configuring with nanodbc-cmake) -- Adding contrib module capnproto (configuring with capnproto-cmake) -- Adding contrib module yaml-cpp (configuring with yaml-cpp-cmake) -- Adding contrib module re2 (configuring with re2-cmake) -- Adding contrib module xz (configuring with xz-cmake) -- Adding contrib module brotli (configuring with brotli-cmake) -- Adding contrib module double-conversion (configuring with double-conversion-cmake) -- Adding contrib module boringssl (configuring with boringssl-cmake) -- Adding contrib module poco (configuring with poco-cmake) -- Using Poco::Crypto -- Using Poco::Data::ODBC -- Adding contrib module croaring (configuring with croaring-cmake) -- Adding contrib module zstd (configuring with zstd-cmake) -- ZSTD VERSION 1.5.0 -- Adding contrib module zlib-ng (configuring with zlib-ng-cmake) -- Adding contrib module bzip2 (configuring with bzip2-cmake) -- Adding contrib module minizip-ng (configuring with minizip-ng-cmake) -- Adding contrib module snappy (configuring with snappy-cmake) -- Adding contrib module rocksdb (configuring with rocksdb-cmake) -- Performing Test HAVE_FALLOCATE -- Performing Test HAVE_FALLOCATE - Success -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE - Failed -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success -- Looking for malloc_usable_size -- Looking for malloc_usable_size - not found -- Adding contrib module thrift (configuring with thrift-cmake) -- Looking for arpa/inet.h -- Looking for arpa/inet.h - found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for getopt.h -- Looking for getopt.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for netdb.h -- Looking for netdb.h - found -- Looking for netinet/in.h -- Looking for netinet/in.h - found -- Looking for signal.h -- Looking for signal.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for sys/ioctl.h -- Looking for sys/ioctl.h - found -- Looking for sys/param.h -- Looking for sys/param.h - found -- Looking for sys/resource.h -- Looking for sys/resource.h - found -- Looking for sys/socket.h -- Looking for sys/socket.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/un.h -- Looking for sys/un.h - found -- Looking for poll.h -- Looking for poll.h - found -- Looking for sys/poll.h -- Looking for sys/poll.h - found -- Looking for sys/select.h -- Looking for sys/select.h - found -- Looking for sched.h -- Looking for sched.h - found -- Looking for string.h -- Looking for string.h - found -- Looking for strings.h -- Looking for strings.h - found -- Performing Test HAVE_AF_UNIX_H -- Performing Test HAVE_AF_UNIX_H - Failed -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for gethostbyname_r -- Looking for gethostbyname_r - found -- Looking for strerror_r -- Looking for strerror_r - found -- Looking for sched_get_priority_max -- Looking for sched_get_priority_max - found -- Looking for sched_get_priority_min -- Looking for sched_get_priority_min - found -- Performing Test STRERROR_R_CHAR_P -- Performing Test STRERROR_R_CHAR_P - Success -- Adding contrib module arrow (configuring with arrow-cmake) -- Looking for strtof_l -- Looking for strtof_l - found -- Looking for strtoull_l -- Looking for strtoull_l - found -- Using toolchain file: /vagrant/cmake/linux/toolchain-x86_64.cmake. -- CMAKE_CXX_FLAGS: --gcc-toolchain=/vagrant/cmake/linux/../../contrib/sysroot/linux-x86_64 -std=c++20 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -fsized-deallocation -gdwarf-aranges -mssse3 -msse4.1 -msse4.2 -mpclmul -mpopcnt -fasynchronous-unwind-tables -ffile-prefix-map=/vagrant=. -falign-functions=32 -mbranches-within-32B-boundaries -fdiagnostics-absolute-paths -fstrict-vtable-pointers -fexperimental-new-pass-manager -w -- Proceeding with version: 1.12.0.372 -- Adding contrib module avro (configuring with avro-cmake) -- Adding contrib module protobuf (configuring with protobuf-cmake) -- Adding contrib module openldap (configuring with openldap-cmake) -- Adding contrib module grpc (configuring with grpc-cmake) CMake Warning (dev) at contrib/grpc/CMakeLists.txt:49 (option): Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077" for policy details. Use the cmake_policy command to set the policy and suppress this warning. For compatibility with older versions of CMake, option is clearing the normal variable 'gRPC_BUILD_CSHARP_EXT'. This warning is for project developers. Use -Wno-dev to suppress it. -- Adding contrib module msgpack-c (configuring with msgpack-c-cmake) -- Adding contrib module corrosion (configuring with corrosion-cmake) No such file or directory CMake Warning at contrib/corrosion/cmake/FindRust.cmake:176 (message): The rustc executable was not found. Rust not installed or ~/.cargo/bin not added to path? Aborting further actions of find_package(Rust). Call Stack (most recent call first): contrib/corrosion-cmake/CMakeLists.txt:8 (find_package) -- OFF -- Not using rust -- Adding contrib module wyhash (configuring with wyhash-cmake) -- Adding contrib module cityhash102 (configuring with cityhash102) -- Adding contrib module libfarmhash (configuring with libfarmhash) -- Adding contrib module icu (configuring with icu-cmake) -- Adding contrib module h3 (configuring with h3-cmake) -- Adding contrib module mariadb-connector-c (configuring with mariadb-connector-c-cmake) -- Adding contrib module googletest (configuring with googletest-cmake) -- Adding contrib module llvm-project (configuring with llvm-project-cmake) -- Looking for dlfcn.h -- Looking for dlfcn.h - found -- Looking for errno.h -- Looking for errno.h - found -- Looking for link.h -- Looking for link.h - found -- Looking for malloc/malloc.h -- Looking for malloc/malloc.h - not found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for sysexits.h -- Looking for sysexits.h - found -- Looking for termios.h -- Looking for termios.h - found -- Looking for valgrind/valgrind.h -- Looking for valgrind/valgrind.h - not found -- Looking for fenv.h -- Looking for fenv.h - found -- Looking for FE_ALL_EXCEPT -- Looking for FE_ALL_EXCEPT - found -- Looking for FE_INEXACT -- Looking for FE_INEXACT - found -- Looking for mach/mach.h -- Looking for mach/mach.h - not found -- Looking for CrashReporterClient.h -- Looking for CrashReporterClient.h - not found -- Looking for linux/magic.h -- Looking for linux/magic.h - not found -- Looking for linux/nfs_fs.h -- Looking for linux/nfs_fs.h - not found -- Looking for linux/smb.h -- Looking for linux/smb.h - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Looking for pthread_rwlock_init in pthread -- Looking for pthread_rwlock_init in pthread - found -- Looking for pthread_mutex_lock in pthread -- Looking for pthread_mutex_lock in pthread - found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Looking for xar_open in xar -- Looking for xar_open in xar - found -- The xar file format has been deprecated: LLVM_HAVE_LIBXAR might be removed in the future. -- Looking for arc4random -- Looking for arc4random - not found -- Looking for backtrace -- Looking for backtrace - found -- backtrace facility detected in default set of libraries -- Found Backtrace: /vagrant/cmake/linux/../../contrib/sysroot/linux-x86_64/x86_64-linux-gnu/libc/usr/include -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success -- Looking for __register_frame -- Looking for __register_frame - found -- Looking for __deregister_frame -- Looking for __deregister_frame - found -- Looking for __unw_add_dynamic_fde -- Looking for __unw_add_dynamic_fde - found -- Looking for _Unwind_Backtrace -- Looking for _Unwind_Backtrace - found -- Looking for getpagesize -- Looking for getpagesize - found -- Looking for sysconf -- Looking for sysconf - found -- Looking for getrusage -- Looking for getrusage - found -- Looking for setrlimit -- Looking for setrlimit - found -- Looking for isatty -- Looking for isatty - found -- Looking for futimens -- Looking for futimens - found -- Looking for futimes -- Looking for futimes - found -- Looking for sigaltstack -- Looking for sigaltstack - found -- Looking for lseek64 -- Looking for lseek64 - found -- Looking for mallctl -- Looking for mallctl - not found -- Looking for mallinfo -- Looking for mallinfo - found -- Looking for mallinfo2 -- Looking for mallinfo2 - not found -- Looking for malloc_zone_statistics -- Looking for malloc_zone_statistics - not found -- Looking for getrlimit -- Looking for getrlimit - found -- Looking for posix_spawn -- Looking for posix_spawn - found -- Looking for pread -- Looking for pread - found -- Looking for sbrk -- Looking for sbrk - found -- Looking for strerror -- Looking for strerror - found -- Looking for strerror_s -- Looking for strerror_s - not found -- Looking for setenv -- Looking for setenv - found -- Looking for dlopen -- Looking for dlopen - found -- Looking for dladdr -- Looking for dladdr - not found -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed -- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC -- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Success -- Looking for __GLIBC__ -- Looking for __GLIBC__ - found -- Looking for pthread_getname_np -- Looking for pthread_getname_np - found -- Looking for pthread_setname_np -- Looking for pthread_setname_np - found -- Looking for proc_pid_rusage -- Looking for proc_pid_rusage - not found -- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE -- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE - Failed -- Performing Test SUPPORTS_NO_PIE_FLAG -- Performing Test SUPPORTS_NO_PIE_FLAG - Success -- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG -- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Success -- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG -- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Success -- Native target architecture is X86 -- Threads enabled. -- Doxygen disabled. -- Go bindings disabled. -- Ninja version: 1.10.1 -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) -- OCaml bindings disabled. -- Could NOT find Python module pygments -- Could NOT find Python module pygments.lexers.c_cpp -- Could NOT find Python module yaml -- LLVM host triple: x86_64-unknown-linux-gnu -- LLVM default target triple: x86_64-unknown-linux-gnu -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success -- Performing Test C_SUPPORTS_WERROR_DATE_TIME -- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success -- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME -- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success -- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW -- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success -- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG -- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success -- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG -- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Success -- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG -- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Success -- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG -- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success -- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG -- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success -- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG -- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success -- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG -- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success -- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG -- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Success -- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG -- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success -- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR -- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Success -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success -- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG -- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Success -- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG -- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Success -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed -- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS -- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success -- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS -- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success -- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS -- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success -- Performing Test C_SUPPORTS_FDATA_SECTIONS -- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success -- Performing Test CXX_SUPPORTS_FDATA_SECTIONS -- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success -- Looking for os_signpost_interval_begin -- Looking for os_signpost_interval_begin - not found -- Found Python3: /usr/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.0") found components: Interpreter -- Linker detection: unknown -- Setting native build dir to /vagrant/build/contrib/llvm-project/llvm/NATIVE -- Performing Test HAS_WERROR_GLOBAL_CTORS -- Performing Test HAS_WERROR_GLOBAL_CTORS - Success -- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX -- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX - Failed -- Looking for __x86_64__ -- Looking for __x86_64__ - found -- LLVMHello ignored -- Loadable modules not supported on this platform. -- Targeting X86 -- Adding contrib module libxml2 (configuring with libxml2-cmake) -- Adding contrib module aws;aws-c-common;aws-c-event-stream;aws-checksums (configuring with aws-s3-cmake) -- Adding contrib module base64 (configuring with base64-cmake) -- Adding contrib module simdjson (configuring with simdjson-cmake) -- Adding contrib module rapidjson (configuring with rapidjson-cmake) -- Adding contrib module fastops (configuring with fastops-cmake) -- Adding contrib module libuv (configuring with libuv-cmake) -- Adding contrib module AMQP-CPP (configuring with amqpcpp-cmake) -- Adding contrib module cassandra (configuring with cassandra-cmake) -- Adding contrib module curl (configuring with curl-cmake) -- Adding contrib module azure (configuring with azure-cmake) By default, if no option is selected, on POSIX, libcurl transport adapter is used. -- Adding contrib module sentry-native (configuring with sentry-native-cmake) -- Adding contrib module fmtlib (configuring with fmtlib-cmake) -- Adding contrib module krb5 (configuring with krb5-cmake) -- Adding contrib module cyrus-sasl (configuring with cyrus-sasl-cmake) -- Adding contrib module libgsasl (configuring with libgsasl-cmake) -- Adding contrib module librdkafka (configuring with librdkafka-cmake) -- librdkafka with SASL support -- librdkafka with SSL support -- Adding contrib module nats-io (configuring with nats-io-cmake) -- Adding contrib module libhdfs3 (configuring with libhdfs3-cmake) -- Enable kerberos for HDFS -- checking compiler: CLANG -- Looking for nanosleep -- Looking for nanosleep - found -- Checking whether strerror_r returns an int -- Checking whether strerror_r returns an int -- yes -- Adding contrib module hive-metastore (configuring with hive-metastore-cmake) -- Adding contrib module cppkafka (configuring with cppkafka-cmake) -- Adding contrib module libpqxx (configuring with libpqxx-cmake) -- Adding contrib module libpq (configuring with libpq-cmake) -- Adding contrib module NuRaft (configuring with nuraft-cmake) -- Adding contrib module fast_float (configuring with fast_float-cmake) -- Adding contrib module datasketches-cpp (configuring with datasketches-cpp-cmake) -- Adding contrib module hashidsxx (configuring with hashidsxx-cmake) -- Adding contrib module libstemmer_c (configuring with libstemmer-c-cmake) -- Adding contrib module wordnet-blast (configuring with wordnet-blast-cmake) -- Adding contrib module lemmagen-c (configuring with lemmagen-c-cmake) -- Adding contrib module nlp-data (configuring with nlp-data-cmake) -- Adding contrib module cld2 (configuring with cld2-cmake) -- Adding contrib module sqlite-amalgamation (configuring with sqlite-cmake) -- Adding contrib module s2geometry (configuring with s2geometry-cmake) -- Adding contrib module c-ares (configuring with c-ares-cmake) -- Adding contrib module qpl (configuring with qpl-cmake) -- Not using QPL -- Adding contrib module annoy (configuring with annoy-cmake) -- Performing Test SUPPORTS_CXXFLAG_frame_larger_than=65536 -- Performing Test SUPPORTS_CXXFLAG_frame_larger_than=65536 - Success -- Performing Test SUPPORTS_CFLAG_frame_larger_than=65536 -- Performing Test SUPPORTS_CFLAG_frame_larger_than=65536 - Success -- Performing Test SUPPORTS_CXXFLAG_everything -- Performing Test SUPPORTS_CXXFLAG_everything - Success -- Performing Test SUPPORTS_CFLAG_everything -- Performing Test SUPPORTS_CFLAG_everything - Success -- Performing Test SUPPORTS_CXXFLAG_pedantic -- Performing Test SUPPORTS_CXXFLAG_pedantic - Success -- Performing Test SUPPORTS_CFLAG_pedantic -- Performing Test SUPPORTS_CFLAG_pedantic - Success -- Performing Test SUPPORTS_CXXFLAG_no_zero_length_array -- Performing Test SUPPORTS_CXXFLAG_no_zero_length_array - Success -- Performing Test SUPPORTS_CFLAG_no_zero_length_array -- Performing Test SUPPORTS_CFLAG_no_zero_length_array - Success -- Performing Test SUPPORTS_CXXFLAG_no_cxx98_compat_pedantic -- Performing Test SUPPORTS_CXXFLAG_no_cxx98_compat_pedantic - Success -- Performing Test SUPPORTS_CFLAG_no_cxx98_compat_pedantic -- Performing Test SUPPORTS_CFLAG_no_cxx98_compat_pedantic - Success -- Performing Test SUPPORTS_CXXFLAG_no_cxx98_compat -- Performing Test SUPPORTS_CXXFLAG_no_cxx98_compat - Success -- Performing Test SUPPORTS_CFLAG_no_cxx98_compat -- Performing Test SUPPORTS_CFLAG_no_cxx98_compat - Success -- Performing Test SUPPORTS_CXXFLAG_no_cxx20_compat -- Performing Test SUPPORTS_CXXFLAG_no_cxx20_compat - Success -- Performing Test SUPPORTS_CFLAG_no_cxx20_compat -- Performing Test SUPPORTS_CFLAG_no_cxx20_compat - Success -- Performing Test SUPPORTS_CXXFLAG_no_sign_conversion -- Performing Test SUPPORTS_CXXFLAG_no_sign_conversion - Success -- Performing Test SUPPORTS_CFLAG_no_sign_conversion -- Performing Test SUPPORTS_CFLAG_no_sign_conversion - Success -- Performing Test SUPPORTS_CXXFLAG_no_implicit_int_conversion -- Performing Test SUPPORTS_CXXFLAG_no_implicit_int_conversion - Success -- Performing Test SUPPORTS_CFLAG_no_implicit_int_conversion -- Performing Test SUPPORTS_CFLAG_no_implicit_int_conversion - Success -- Performing Test SUPPORTS_CXXFLAG_no_implicit_int_float_conversion -- Performing Test SUPPORTS_CXXFLAG_no_implicit_int_float_conversion - Success -- Performing Test SUPPORTS_CFLAG_no_implicit_int_float_conversion -- Performing Test SUPPORTS_CFLAG_no_implicit_int_float_conversion - Success -- Performing Test SUPPORTS_CXXFLAG_no_shorten_64_to_32 -- Performing Test SUPPORTS_CXXFLAG_no_shorten_64_to_32 - Success -- Performing Test SUPPORTS_CFLAG_no_shorten_64_to_32 -- Performing Test SUPPORTS_CFLAG_no_shorten_64_to_32 - Success -- Performing Test SUPPORTS_CXXFLAG_no_ctad_maybe_unsupported -- Performing Test SUPPORTS_CXXFLAG_no_ctad_maybe_unsupported - Success -- Performing Test SUPPORTS_CFLAG_no_ctad_maybe_unsupported -- Performing Test SUPPORTS_CFLAG_no_ctad_maybe_unsupported - Success -- Performing Test SUPPORTS_CXXFLAG_no_disabled_macro_expansion -- Performing Test SUPPORTS_CXXFLAG_no_disabled_macro_expansion - Success -- Performing Test SUPPORTS_CFLAG_no_disabled_macro_expansion -- Performing Test SUPPORTS_CFLAG_no_disabled_macro_expansion - Success -- Performing Test SUPPORTS_CXXFLAG_no_documentation_unknown_command -- Performing Test SUPPORTS_CXXFLAG_no_documentation_unknown_command - Success -- Performing Test SUPPORTS_CFLAG_no_documentation_unknown_command -- Performing Test SUPPORTS_CFLAG_no_documentation_unknown_command - Success -- Performing Test SUPPORTS_CXXFLAG_no_double_promotion -- Performing Test SUPPORTS_CXXFLAG_no_double_promotion - Success -- Performing Test SUPPORTS_CFLAG_no_double_promotion -- Performing Test SUPPORTS_CFLAG_no_double_promotion - Success -- Performing Test SUPPORTS_CXXFLAG_no_exit_time_destructors -- Performing Test SUPPORTS_CXXFLAG_no_exit_time_destructors - Success -- Performing Test SUPPORTS_CFLAG_no_exit_time_destructors -- Performing Test SUPPORTS_CFLAG_no_exit_time_destructors - Success -- Performing Test SUPPORTS_CXXFLAG_no_float_equal -- Performing Test SUPPORTS_CXXFLAG_no_float_equal - Success -- Performing Test SUPPORTS_CFLAG_no_float_equal -- Performing Test SUPPORTS_CFLAG_no_float_equal - Success -- Performing Test SUPPORTS_CXXFLAG_no_global_constructors -- Performing Test SUPPORTS_CXXFLAG_no_global_constructors - Success -- Performing Test SUPPORTS_CFLAG_no_global_constructors -- Performing Test SUPPORTS_CFLAG_no_global_constructors - Success -- Performing Test SUPPORTS_CXXFLAG_no_missing_prototypes -- Performing Test SUPPORTS_CXXFLAG_no_missing_prototypes - Success -- Performing Test SUPPORTS_CFLAG_no_missing_prototypes -- Performing Test SUPPORTS_CFLAG_no_missing_prototypes - Success -- Performing Test SUPPORTS_CXXFLAG_no_missing_variable_declarations -- Performing Test SUPPORTS_CXXFLAG_no_missing_variable_declarations - Success -- Performing Test SUPPORTS_CFLAG_no_missing_variable_declarations -- Performing Test SUPPORTS_CFLAG_no_missing_variable_declarations - Success -- Performing Test SUPPORTS_CXXFLAG_no_padded -- Performing Test SUPPORTS_CXXFLAG_no_padded - Success -- Performing Test SUPPORTS_CFLAG_no_padded -- Performing Test SUPPORTS_CFLAG_no_padded - Success -- Performing Test SUPPORTS_CXXFLAG_no_switch_enum -- Performing Test SUPPORTS_CXXFLAG_no_switch_enum - Success -- Performing Test SUPPORTS_CFLAG_no_switch_enum -- Performing Test SUPPORTS_CFLAG_no_switch_enum - Success -- Performing Test SUPPORTS_CXXFLAG_no_undefined_func_template -- Performing Test SUPPORTS_CXXFLAG_no_undefined_func_template - Success -- Performing Test SUPPORTS_CFLAG_no_undefined_func_template -- Performing Test SUPPORTS_CFLAG_no_undefined_func_template - Success -- Performing Test SUPPORTS_CXXFLAG_no_unused_template -- Performing Test SUPPORTS_CXXFLAG_no_unused_template - Success -- Performing Test SUPPORTS_CFLAG_no_unused_template -- Performing Test SUPPORTS_CFLAG_no_unused_template - Success -- Performing Test SUPPORTS_CXXFLAG_no_vla -- Performing Test SUPPORTS_CXXFLAG_no_vla - Success -- Performing Test SUPPORTS_CFLAG_no_vla -- Performing Test SUPPORTS_CFLAG_no_vla - Success -- Performing Test SUPPORTS_CXXFLAG_no_weak_template_vtables -- Performing Test SUPPORTS_CXXFLAG_no_weak_template_vtables - Success -- Performing Test SUPPORTS_CFLAG_no_weak_template_vtables -- Performing Test SUPPORTS_CFLAG_no_weak_template_vtables - Success -- Performing Test SUPPORTS_CXXFLAG_no_weak_vtables -- Performing Test SUPPORTS_CXXFLAG_no_weak_vtables - Success -- Performing Test SUPPORTS_CFLAG_no_weak_vtables -- Performing Test SUPPORTS_CFLAG_no_weak_vtables - Success -- Performing Test SUPPORTS_CXXFLAG_no_thread_safety_negative -- Performing Test SUPPORTS_CXXFLAG_no_thread_safety_negative - Success -- Performing Test SUPPORTS_CFLAG_no_thread_safety_negative -- Performing Test SUPPORTS_CFLAG_no_thread_safety_negative - Success -- Flag -Wno-enum-constexpr-conversion is unsupported -- Flag -Wno-enum-constexpr-conversion is unsupported -- compiler C = /usr/bin/clang-15 --gcc-toolchain=/vagrant/cmake/linux/../../contrib/sysroot/linux-x86_64 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -gdwarf-aranges -mssse3 -msse4.1 -msse4.2 -mpclmul -mpopcnt -fasynchronous-unwind-tables -ffile-prefix-map=/vagrant=. -falign-functions=32 -mbranches-within-32B-boundaries -fdiagnostics-absolute-paths -fexperimental-new-pass-manager -Wframe-larger-than=65536 -Weverything -Wpedantic -Wno-zero-length-array -Wno-c++98-compat-pedantic -Wno-c++98-compat -Wno-c++20-compat -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-implicit-int-float-conversion -Wno-shorten-64-to-32 -Wno-ctad-maybe-unsupported -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-padded -Wno-switch-enum -Wno-undefined-func-template -Wno-unused-template -Wno-vla -Wno-weak-template-vtables -Wno-weak-vtables -Wno-thread-safety-negative -O2 -g -DNDEBUG -O3 -g -gdwarf-4 -fno-pie -- compiler CXX = /usr/bin/clang++-15 --gcc-toolchain=/vagrant/cmake/linux/../../contrib/sysroot/linux-x86_64 -std=c++20 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -fsized-deallocation -gdwarf-aranges -mssse3 -msse4.1 -msse4.2 -mpclmul -mpopcnt -fasynchronous-unwind-tables -ffile-prefix-map=/vagrant=. -falign-functions=32 -mbranches-within-32B-boundaries -fdiagnostics-absolute-paths -fstrict-vtable-pointers -fexperimental-new-pass-manager -Wall -Wextra -Wframe-larger-than=65536 -Weverything -Wpedantic -Wno-zero-length-array -Wno-c++98-compat-pedantic -Wno-c++98-compat -Wno-c++20-compat -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-implicit-int-float-conversion -Wno-shorten-64-to-32 -Wno-ctad-maybe-unsupported -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-padded -Wno-switch-enum -Wno-undefined-func-template -Wno-unused-template -Wno-vla -Wno-weak-template-vtables -Wno-weak-vtables -Wno-thread-safety-negative -O2 -g -DNDEBUG -O3 -g -gdwarf-4 -fno-pie -- LINKER_FLAGS = --gcc-toolchain=/vagrant/cmake/linux/../../contrib/sysroot/linux-x86_64 --ld-path=/vagrant/build/ld.lld -rdynamic -Wl,--gdb-index -Wl,--build-id=sha1 -no-pie -Wl,-no-pie -- /vagrant/src: Have 3924 megabytes of memory. Limiting concurrent linkers jobs to 1 and compiler jobs to 2 (system has 2 logical cores) -- Will build ClickHouse 22.10.1.1 revision 54467 -- ClickHouse modes: -- Server mode: ON -- Client mode: ON -- Local mode: ON -- Self-extracting executable: OFF -- Benchmark mode: ON -- Extract from config mode: ON -- Compressor mode: ON -- Copier mode: ON -- Format mode: ON -- Obfuscator mode: ON -- ODBC bridge mode: ON -- Library bridge mode: ON -- ClickHouse install: ON -- ClickHouse git-import: ON -- ClickHouse keeper mode: ON -- ClickHouse keeper-converter mode: ON -- Clickhouse disks mode: ON -- ClickHouse su: ON -- bash_completion will be written to /usr/local/share/bash-completion/completions -- Target check already exists -- /vagrant/utils: Have 3924 megabytes of memory. Limiting concurrent linkers jobs to 1 and compiler jobs to OFF (system has 2 logical cores) -- Configuring done -- Generating done -- Build files have been written to: /vagrant/build vagrant@ubuntu-jammy:/vagrant/build$ ninja [0/2] Re-checking globbed directories... [3290/10854] Generating orc_proto.pb.h, orc_proto.pb.cc FAILED: contrib/arrow-cmake/orc_proto.pb.h contrib/arrow-cmake/orc_proto.pb.cc /vagrant/build/contrib/arrow-cmake/orc_proto.pb.h /vagrant/build/contrib/arrow-cmake/orc_proto.pb.cc cd /vagrant/build/contrib/arrow-cmake && /vagrant/build/contrib/protobuf-cmake/protoc -I /vagrant/contrib/orc/c++/../proto --cpp_out="/vagrant/build/contrib/arrow-cmake" /vagrant/contrib/orc/c++/../proto/orc_proto.proto /bin/sh: 1: /vagrant/build/contrib/protobuf-cmake/protoc: Exec format error [3292/10854] Building C object contrib/openldap-cmake/CMakeFiles/_ldap_r.dir/ldap_r-version.c.o ninja: build stopped: subcommand failed. ```

This comment also has more details on the debugging I've done. It appears protoc is built for the wrong architecture even though it seems clang is receiving the correct arguments to compile the binary for x86_64.

vagrant@ubuntu-jammy:/vagrant/build$ ninja -v contrib/arrow-cmake/orc_proto.pb.h
[0/2] /usr/bin/cmake -P /vagrant/build/CMakeFiles/VerifyGlobs.cmake
[1/2] : && /usr/bin/clang++-15 --target=x86_64-linux-gnu --sysroot=/vagrant/cmake/linux/../../contrib/sysroot/linux-x86_64/x86_64-linux-gnu/libc --gcc-toolchain=/vagrant/cmake/linux/../../contrib/sysroot/linux-x86_64 -std=c++20 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -fsized-deallocation  -gdwarf-aranges -mssse3 -msse4.1 -msse4.2 -mpclmul -mpopcnt -fasynchronous-unwind-tables -ffile-prefix-map=/vagrant=. -falign-functions=32 -mbranches-within-32B-boundaries -fdiagnostics-absolute-paths -fstrict-vtable-pointers -fexperimental-new-pass-manager -w -O2 -g -DNDEBUG -O3 -g -gdwarf-4  -fno-pie --gcc-toolchain=/vagrant/cmake/linux/../../contrib/sysroot/linux-x86_64 --ld-path=/vagrant/build/ld.lld -rdynamic -Wl,--gdb-index -Wl,--build-id=sha1 -no-pie -Wl,-no-pie    -Xlinker --no-undefined contrib/protobuf-cmake/CMakeFiles/protoc.dir/__/protobuf/src/google/protobuf/compiler/main.cc.o -o contrib/protobuf-cmake/protoc  contrib/protobuf-cmake/lib_libprotoc.a  contrib/protobuf-cmake/lib_libprotobuf.a  -lpthread  contrib/zlib-ng-cmake/lib_zlib.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.3/lib/linux/libclang_rt.builtins-x86_64.a  -lc -lm -lrt -lpthread -ldl && :
[2/2] cd /vagrant/build/contrib/arrow-cmake && /vagrant/build/contrib/protobuf-cmake/protoc -I /vagrant/contrib/orc/c++/../proto --cpp_out="/vagrant/build/contrib/arrow-cmake" /vagrant/contrib/orc/c++/../proto/orc_proto.proto
FAILED: contrib/arrow-cmake/orc_proto.pb.h contrib/arrow-cmake/orc_proto.pb.cc /vagrant/build/contrib/arrow-cmake/orc_proto.pb.h /vagrant/build/contrib/arrow-cmake/orc_proto.pb.cc
cd /vagrant/build/contrib/arrow-cmake && /vagrant/build/contrib/protobuf-cmake/protoc -I /vagrant/contrib/orc/c++/../proto --cpp_out="/vagrant/build/contrib/arrow-cmake" /vagrant/contrib/orc/c++/../proto/orc_proto.proto
/bin/sh: 1: /vagrant/build/contrib/protobuf-cmake/protoc: Exec format error
ninja: build stopped: subcommand failed.

# Verify executable format is not recognized
vagrant@ubuntu-jammy:/vagrant/build$ file /vagrant/build/contrib/protobuf-cmake/protoc
/vagrant/build/contrib/protobuf-cmake/protoc: data

# See that the VM has plenty of disk space
vagrant@ubuntu-jammy:/vagrant/build$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           393M  956K  392M   1% /run
/dev/sda1        49G  9.1G   40G  19% /
tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
vagrant         932G  723G  210G  78% /vagrant
tmpfs           393M  4.0K  393M   1% /run/user/1000
ddelnano commented 2 years ago

@tavplubix appreciate your help so far in #42110. I've created this separate issue so we can discuss this in more detail here.

alexey-milovidov commented 2 years ago

There is something wrong with Vagrant. Build it without Vagrant.

I have no idea why Vagrant does not work. I don't use Vagrant.

I also have heard that Vagrant is not fashionable anymore, so I'm feeling ok with the fact I missed it. You can create an issue in their repository.

alexey-milovidov commented 2 years ago

If you are an expert, you can debug this problem on your own. Check how exactly the protoc file was generated and what is wrong with this process. Look inside the file in a hex editor.