facebookincubator / velox

A composable and fully extensible C++ execution engine library for data management systems.
https://velox-lib.io/
Apache License 2.0
3.52k stars 1.15k forks source link

Unable to build on M1 Macs #5218

Closed mohsaka closed 1 year ago

mohsaka commented 1 year ago

Problem description

Installed Homebrew via /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Setup the first time using CPU_TARGET="arm64" ./scripts/setup-macos.sh To install brew dependencies.

Setup a second time using sudo with commenting out update_brew to prevent failure due to sudo with homebrew sudo INSTALL_PREREQUISITES=N CPU_TARGET="arm64" ./scripts/setup-macos.sh To install the other dependencies pulled from git.

Run CPU_TARGET="arm64" make

System information

Velox System Info v0.0.2 Commit: c067fc06ffd6ab380dc82906b4d9795f04f96026 CMake Version: 3.26.4 System: Darwin-21.6.0 Arch: arm64 C++ Compiler: /Library/Developer/CommandLineTools/usr/bin/c++ C++ Compiler Version: 13.1.6.13160021 C Compiler: /Library/Developer/CommandLineTools/usr/bin/cc C Compiler Version: 13.1.6.13160021 CMake Prefix Path: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr;/opt/homebrew;/usr/local;/usr;/;/opt/homebrew/Cellar/cmake/3.26.4;/usr/local;/usr/X11R6;/usr/pkg;/opt;/sw;/opt/local

CMake log

[810/1120] Linking CXX executable velox/dwio/dwrf/utils/test/velox_dwio_dwrf_utils_test
FAILED: velox/dwio/dwrf/utils/test/velox_dwio_dwrf_utils_test 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/utils/test/CMakeFiles/velox_dwio_dwrf_utils_test.dir/ProtoUtilsTests.cpp.o velox/dwio/dwrf/utils/test/CMakeFiles/velox_dwio_dwrf_utils_test.dir/BitIteratorTests.cpp.o -o velox/dwio/dwrf/utils/test/velox_dwio_dwrf_utils_test  -Wl,-rpath,/opt/homebrew/lib  velox/dwio/common/libvelox_dwio_common.a  velox/dwio/dwrf/utils/libvelox_dwio_dwrf_utils.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/type/fbhive/libvelox_dwio_type_fbhive.a  lib/libgtest.a  lib/libgtest_main.a  /opt/homebrew/lib/libglog.dylib  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/dwio/common/libvelox_dwio_common.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/common/caching/libvelox_caching.a  velox/common/file/libvelox_file.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/type/libvelox_type.a  velox/type/tz/libvelox_type_tz.a  velox/common/serialization/libvelox_serialization.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/time/libvelox_time.a  velox/common/encode/libvelox_encode.a  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/common/base/libvelox_common_base.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  /usr/local/lib/libfolly.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi  lib/libgtest.a && :
0  0x100333bb8  __assert_rtn + 128
1  0x10024f624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x1002f0b0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x1002508f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x1002518e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x100260fb8  ld::tool::Resolver::resolve() + 44
6  0x1001f215c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwio_dwrf_utils_test-2023-05-09-120917.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[811/1120] Linking CXX executable velox/dwio/common/tests/velox_dwio_common_int_decoder_benchmark
FAILED: velox/dwio/common/tests/velox_dwio_common_int_decoder_benchmark 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/common/tests/CMakeFiles/velox_dwio_common_int_decoder_benchmark.dir/IntDecoderBenchmark.cpp.o -o velox/dwio/common/tests/velox_dwio_common_int_decoder_benchmark  -Wl,-rpath,/opt/homebrew/lib  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/common/base/libvelox_exception.a  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfollybenchmark.a  velox/dwio/common/libvelox_dwio_common.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/type/libvelox_type.a  velox/common/serialization/libvelox_serialization.a  velox/type/tz/libvelox_type_tz.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/encode/libvelox_encode.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/caching/libvelox_caching.a  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/common/base/libvelox_common_base.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  lib/libgtest.a  velox/common/file/libvelox_file.a  velox/common/time/libvelox_time.a  /opt/homebrew/lib/libsnappy.dylib  /opt/homebrew/lib/libzstd.dylib  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi && :
0  0x104b3fbb8  __assert_rtn + 128
1  0x104a5b624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x104afcb0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x104a5c8f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x104a5d8e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x104a6cfb8  ld::tool::Resolver::resolve() + 44
6  0x1049fe15c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwio_common_int_decoder_benchmark-2023-05-09-120918.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[812/1120] Linking CXX executable velox/dwio/dwrf/test/velox_dwrf_int_encoder_benchmark
FAILED: velox/dwio/dwrf/test/velox_dwrf_int_encoder_benchmark 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/test/CMakeFiles/velox_dwrf_int_encoder_benchmark.dir/IntEncoderBenchmark.cpp.o -o velox/dwio/dwrf/test/velox_dwrf_int_encoder_benchmark  -Wl,-rpath,/opt/homebrew/lib  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  velox/common/memory/libvelox_memory.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfollybenchmark.a  velox/dwio/common/libvelox_dwio_common.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/type/libvelox_type.a  velox/common/serialization/libvelox_serialization.a  velox/type/tz/libvelox_type_tz.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/encode/libvelox_encode.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/caching/libvelox_caching.a  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/common/base/libvelox_common_base.a  lib/libgtest.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  velox/common/file/libvelox_file.a  velox/common/time/libvelox_time.a  /opt/homebrew/lib/libsnappy.dylib  /opt/homebrew/lib/libzstd.dylib  /usr/local/lib/libfolly.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi && :
0  0x102f6fbb8  __assert_rtn + 128
1  0x102e8b624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x102f2cb0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x102e8c8f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x102e8d8e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x102e9cfb8  ld::tool::Resolver::resolve() + 44
6  0x102e2e15c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwrf_int_encoder_benchmark-2023-05-09-120918.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[813/1120] Linking CXX executable velox/dwio/dwrf/test/velox_dwrf_float_column_writer_benchmark
FAILED: velox/dwio/dwrf/test/velox_dwrf_float_column_writer_benchmark 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/test/CMakeFiles/velox_dwrf_float_column_writer_benchmark.dir/FloatColumnWriterBenchmark.cpp.o -o velox/dwio/dwrf/test/velox_dwrf_float_column_writer_benchmark  -Wl,-rpath,/opt/homebrew/lib  velox/vector/libvelox_vector.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/dwrf/writer/libvelox_dwio_dwrf_writer.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfollybenchmark.a  /usr/local/lib/libfmt.a  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  velox/dwio/common/libvelox_dwio_common.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/common/caching/libvelox_caching.a  velox/common/time/libvelox_time.a  velox/common/file/libvelox_file.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  /opt/homebrew/lib/libsnappy.dylib  velox/dwio/dwrf/utils/libvelox_dwio_dwrf_utils.a  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  lib/libgtest.a  velox/type/libvelox_type.a  velox/common/encode/libvelox_encode.a  velox/common/base/libvelox_common_base.a  velox/type/tz/libvelox_type_tz.a  velox/common/serialization/libvelox_serialization.a  velox/common/base/libvelox_exception.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/liblzo2.dylib  /opt/homebrew/lib/libzstd.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi && :
0  0x1022a7bb8  __assert_rtn + 128
1  0x1021c3624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x102264b0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x1021c48f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x1021c58e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x1021d4fb8  ld::tool::Resolver::resolve() + 44
6  0x10216615c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwrf_float_column_writer_benchmark-2023-05-09-120919.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[814/1120] Linking CXX executable velox/dwio/dwrf/test/velox_dwio_dwrf_buffered_output_stream_test
FAILED: velox/dwio/dwrf/test/velox_dwio_dwrf_buffered_output_stream_test 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/test/CMakeFiles/velox_dwio_dwrf_buffered_output_stream_test.dir/TestBufferedOutputStream.cpp.o -o velox/dwio/dwrf/test/velox_dwio_dwrf_buffered_output_stream_test  -Wl,-rpath,/opt/homebrew/lib  /usr/local/lib/libfolly.a  velox/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  velox/dwio/dwrf/reader/libvelox_dwio_dwrf_reader.a  velox/dwio/dwrf/writer/libvelox_dwio_dwrf_writer.a  lib/libgtest.a  lib/libgtest_main.a  lib/libgmock.a  /opt/homebrew/lib/libglog.dylib  velox/dwio/type/fbhive/libvelox_dwio_type_fbhive.a  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  velox/dwio/common/libvelox_dwio_common.a  velox/common/caching/libvelox_caching.a  velox/common/file/libvelox_file.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  /opt/homebrew/lib/libsnappy.dylib  velox/dwio/dwrf/utils/libvelox_dwio_dwrf_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/type/libvelox_type.a  velox/common/encode/libvelox_encode.a  velox/common/serialization/libvelox_serialization.a  velox/common/base/libvelox_common_base.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  velox/type/tz/libvelox_type_tz.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/time/libvelox_time.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/liblzo2.dylib  /opt/homebrew/lib/libzstd.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  lib/libgtest.a && :
0  0x100ad7bb8  __assert_rtn + 128
1  0x1009f3624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x100a94b0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x1009f48f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x1009f58e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x100a04fb8  ld::tool::Resolver::resolve() + 44
6  0x10099615c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwio_dwrf_buffered_output_stream_test-2023-05-09-120920.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[815/1120] Linking CXX executable velox/dwio/dwrf/test/velox_dwio_dwrf_column_statistics_test
FAILED: velox/dwio/dwrf/test/velox_dwio_dwrf_column_statistics_test 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/test/CMakeFiles/velox_dwio_dwrf_column_statistics_test.dir/TestColumnStatistics.cpp.o -o velox/dwio/dwrf/test/velox_dwio_dwrf_column_statistics_test  -Wl,-rpath,/opt/homebrew/lib  /usr/local/lib/libfolly.a  velox/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  velox/dwio/dwrf/reader/libvelox_dwio_dwrf_reader.a  velox/dwio/dwrf/writer/libvelox_dwio_dwrf_writer.a  lib/libgtest.a  lib/libgtest_main.a  lib/libgmock.a  /opt/homebrew/lib/libglog.dylib  velox/dwio/type/fbhive/libvelox_dwio_type_fbhive.a  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  velox/dwio/common/libvelox_dwio_common.a  velox/common/caching/libvelox_caching.a  velox/common/file/libvelox_file.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  /opt/homebrew/lib/libsnappy.dylib  velox/dwio/dwrf/utils/libvelox_dwio_dwrf_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/type/libvelox_type.a  velox/common/encode/libvelox_encode.a  velox/common/serialization/libvelox_serialization.a  velox/common/base/libvelox_common_base.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  velox/type/tz/libvelox_type_tz.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/time/libvelox_time.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/liblzo2.dylib  /opt/homebrew/lib/libzstd.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  lib/libgtest.a && :
0  0x102417bb8  __assert_rtn + 128
1  0x102333624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x1023d4b0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x1023348f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x1023358e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x102344fb8  ld::tool::Resolver::resolve() + 44
6  0x1022d615c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwio_dwrf_column_statistics_test-2023-05-09-120920.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[816/1120] Linking CXX executable velox/dwio/dwrf/test/velox_dwio_dwrf_compression_test
FAILED: velox/dwio/dwrf/test/velox_dwio_dwrf_compression_test 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/test/CMakeFiles/velox_dwio_dwrf_compression_test.dir/TestCompression.cpp.o -o velox/dwio/dwrf/test/velox_dwio_dwrf_compression_test  -Wl,-rpath,/opt/homebrew/lib  /usr/local/lib/libfolly.a  /opt/homebrew/lib/libglog.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  velox/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  velox/dwio/dwrf/reader/libvelox_dwio_dwrf_reader.a  velox/dwio/dwrf/writer/libvelox_dwio_dwrf_writer.a  lib/libgtest.a  lib/libgtest_main.a  lib/libgmock.a  /opt/homebrew/lib/libglog.dylib  velox/dwio/type/fbhive/libvelox_dwio_type_fbhive.a  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/liblzo2.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  /opt/homebrew/lib/libzstd.dylib  velox/dwio/common/libvelox_dwio_common.a  velox/common/caching/libvelox_caching.a  velox/common/file/libvelox_file.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  /opt/homebrew/lib/libsnappy.dylib  velox/dwio/dwrf/utils/libvelox_dwio_dwrf_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/type/libvelox_type.a  velox/common/encode/libvelox_encode.a  velox/common/serialization/libvelox_serialization.a  velox/common/base/libvelox_common_base.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  velox/type/tz/libvelox_type_tz.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/time/libvelox_time.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi  lib/libgtest.a && :
0  0x102bc3bb8  __assert_rtn + 128
1  0x102adf624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x102b80b0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x102ae08f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x102ae18e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x102af0fb8  ld::tool::Resolver::resolve() + 44
6  0x102a8215c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwio_dwrf_compression_test-2023-05-09-120921.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[817/1120] Linking CXX executable velox/dwio/dwrf/test/velox_dwio_dwrf_decompression_test
FAILED: velox/dwio/dwrf/test/velox_dwio_dwrf_decompression_test 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/test/CMakeFiles/velox_dwio_dwrf_decompression_test.dir/TestDecompression.cpp.o -o velox/dwio/dwrf/test/velox_dwio_dwrf_decompression_test  -Wl,-rpath,/opt/homebrew/lib  /usr/local/lib/libfolly.a  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  velox/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  velox/dwio/dwrf/reader/libvelox_dwio_dwrf_reader.a  velox/dwio/dwrf/writer/libvelox_dwio_dwrf_writer.a  lib/libgtest.a  lib/libgtest_main.a  lib/libgmock.a  /opt/homebrew/lib/libglog.dylib  velox/dwio/type/fbhive/libvelox_dwio_type_fbhive.a  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/liblzo2.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  /opt/homebrew/lib/libzstd.dylib  velox/dwio/common/libvelox_dwio_common.a  velox/common/caching/libvelox_caching.a  velox/common/file/libvelox_file.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  /opt/homebrew/lib/libsnappy.dylib  velox/dwio/dwrf/utils/libvelox_dwio_dwrf_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/type/libvelox_type.a  velox/common/encode/libvelox_encode.a  velox/common/serialization/libvelox_serialization.a  velox/common/base/libvelox_common_base.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  velox/type/tz/libvelox_type_tz.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/time/libvelox_time.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi  lib/libgtest.a && :
0  0x100f13bb8  __assert_rtn + 128
1  0x100e2f624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x100ed0b0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x100e308f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x100e318e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x100e40fb8  ld::tool::Resolver::resolve() + 44
6  0x100dd215c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwio_dwrf_decompression_test-2023-05-09-120921.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[818/1120] Linking CXX executable velox/dwio/dwrf/test/velox_dwio_dwrf_stripe_stream_test
FAILED: velox/dwio/dwrf/test/velox_dwio_dwrf_stripe_stream_test 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/test/CMakeFiles/velox_dwio_dwrf_stripe_stream_test.dir/TestStripeStream.cpp.o -o velox/dwio/dwrf/test/velox_dwio_dwrf_stripe_stream_test  -Wl,-rpath,/opt/homebrew/lib  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  velox/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  velox/dwio/dwrf/reader/libvelox_dwio_dwrf_reader.a  velox/dwio/dwrf/writer/libvelox_dwio_dwrf_writer.a  lib/libgtest.a  lib/libgtest_main.a  lib/libgmock.a  /opt/homebrew/lib/libglog.dylib  velox/dwio/type/fbhive/libvelox_dwio_type_fbhive.a  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/liblzo2.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  /opt/homebrew/lib/libzstd.dylib  velox/dwio/common/libvelox_dwio_common.a  velox/common/caching/libvelox_caching.a  velox/common/file/libvelox_file.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  /opt/homebrew/lib/libsnappy.dylib  velox/dwio/dwrf/utils/libvelox_dwio_dwrf_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/type/libvelox_type.a  velox/common/encode/libvelox_encode.a  velox/common/serialization/libvelox_serialization.a  velox/common/base/libvelox_common_base.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  velox/type/tz/libvelox_type_tz.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/time/libvelox_time.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi  lib/libgtest.a && :
0  0x100b87bb8  __assert_rtn + 128
1  0x100aa3624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x100b44b0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x100aa48f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x100aa58e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x100ab4fb8  ld::tool::Resolver::resolve() + 44
6  0x100a4615c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwio_dwrf_stripe_stream_test-2023-05-09-120921.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[819/1120] Linking CXX executable velox/dwio/dwrf/test/velox_dwio_dwrf_stream_labels_test
FAILED: velox/dwio/dwrf/test/velox_dwio_dwrf_stream_labels_test 
: && /Library/Developer/CommandLineTools/usr/bin/c++ -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -fvisibility=hidden -fvisibility-inlines-hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-ignored-qualifiers        -Wno-range-loop-analysis          -Wno-mismatched-tags          -Wno-nullability-completeness -Werror -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-flat_namespace velox/dwio/dwrf/test/CMakeFiles/velox_dwio_dwrf_stream_labels_test.dir/StreamLabelsTests.cpp.o -o velox/dwio/dwrf/test/velox_dwio_dwrf_stream_labels_test  -Wl,-rpath,/opt/homebrew/lib  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  velox/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  velox/dwio/dwrf/reader/libvelox_dwio_dwrf_reader.a  velox/dwio/dwrf/writer/libvelox_dwio_dwrf_writer.a  lib/libgtest.a  lib/libgtest_main.a  lib/libgmock.a  /opt/homebrew/lib/libglog.dylib  velox/dwio/type/fbhive/libvelox_dwio_type_fbhive.a  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/liblzo2.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  velox/dwio/dwrf/common/libvelox_dwio_dwrf_common.a  /opt/homebrew/lib/libzstd.dylib  velox/dwio/common/libvelox_dwio_common.a  velox/common/commonlox_dwio_common.a  velox/commond.dylib  velox/dwio/common/libvelox_dwio_common.a  velox/common/caching/libvelox_caching.a  velox/common/file/libvelox_file.a  velox/dwio/common/exception/libvelox_dwio_common_exception.a  velox/dwio/common/encryption/libvelox_dwio_common_encryption.a  velox/expression/libvelox_expression.a  velox/core/libvelox_core.a  velox/connectors/libvelox_connector.a  velox/core/libvelox_config.a  velox/expression/libvelox_expression_functions.a  velox/expression/type_calculation/libvelox_type_calculation.a  velox/functions/lib/libvelox_functions_util.a  velox/vector/libvelox_vector.a  velox/buffer/libvelox_buffer.a  velox/dwio/common/compression/libvelox_dwio_common_compression.a  /opt/homebrew/lib/libsnappy.dylib  velox/dwio/dwrf/utils/libvelox_dwio_dwrf_utils.a  velox/dwio/dwrf/proto/libvelox_dwio_dwrf_proto.a  /opt/homebrew/lib/libprotobuf.dylib  velox/common/memory/libvelox_memory.a  velox/common/testutil/libvelox_test_util.a  velox/type/libvelox_type.a  velox/common/encode/libvelox_encode.a  velox/common/serialization/libvelox_serialization.a  velox/common/base/libvelox_common_base.a  velox/common/base/libvelox_exception.a  velox/common/process/libvelox_process.a  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libgflags.2.2.2.dylib  velox/type/tz/libvelox_type_tz.a  velox/external/date/libvelox_external_date.a  /usr/local/lib/libre2.a  /usr/local/lib/libre2.a  velox/common/time/libvelox_time.a  /usr/local/lib/libfolly.a  /usr/local/lib/libfmt.a  /opt/homebrew/lib/libboost_regex-mt.dylib  /opt/homebrew/lib/libboost_context-mt.dylib  /opt/homebrew/lib/libboost_filesystem-mt.dylib  /opt/homebrew/lib/libboost_atomic-mt.dylib  /opt/homebrew/lib/libboost_program_options-mt.dylib  /opt/homebrew/lib/libboost_system-mt.dylib  /opt/homebrew/lib/libboost_thread-mt.dylib  /usr/local/lib/libdouble-conversion.a  /opt/homebrew/lib/libgflags.2.2.2.dylib  /opt/homebrew/lib/libglog.dylib  /opt/homebrew/lib/libevent.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  /opt/homebrew/opt/openssl@1.1/lib/libssl.dylib  /opt/homebrew/opt/openssl@1.1/lib/libcrypto.dylib  /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd  /opt/homebrew/lib/liblz4.dylib  /opt/homebrew/lib/libzstd.dylib  /opt/homebrew/lib/libsnappy.dylib  -lc++abi  lib/libgtest.a && :
0  0x1001efbb8  __assert_rtn + 128
1  0x10010b624  ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776
2  0x1001acb0c  generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88
3  0x10010c8f0  ld::tool::InputFiles::createIndirectDylibs() + 456
4  0x10010d8e4  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836
5  0x10011cfb8  ld::tool::Resolver::resolve() + 44
6  0x1000ae15c  main + 288
A linker snapshot was created at:
    /tmp/velox_dwio_dwrf_stream_labels_test-2023-05-09-120922.ld-snapshot
ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
make[1]: *** [build] Error 1
make: *** [debug] Error 2
mohsaka commented 1 year ago

@kgpai and @mbasmanova due to experience with issue https://github.com/facebookincubator/velox/issues/1562

Any ideas? Thank you!

mohsaka commented 1 year ago

Other information, Attempted MACOSX_DEPLOYMENT_TARGET=12.3. Did not fix anything. Attempted upgrading MacOs to latest + latest X-code. Attempted a full factory reset of Mac.

All resulted in the same failure.

Was successful in compiling with velox % CPU_TARGET="arm64" make EXTRA_CMAKE_FLAGS="-DVELOX_BUILD_MINIMAL=ON"

Was also successful when compiling via the Presto repo.

However I believe that neither of these compile the test cases so they would not hit this issue.

majetideepak commented 1 year ago

Thanks for filing this issue. We started to see this in CircleCI as well. https://app.circleci.com/pipelines/github/facebookincubator/velox/26419/workflows/9b151140-a453-4e9c-9cdd-5c8602b74a00/jobs/166967/parallel-runs/0/steps/0-108 I can help investigate.

majetideepak commented 1 year ago

The issue with CPU_TARGET and sudo requirements should be fixed soon as well. Issues below. https://github.com/facebookincubator/velox/issues/5204 https://github.com/facebookincubator/velox/issues/1446

majetideepak commented 1 year ago

The issue is due to the protobuf version. A new protobuf version 23.2 was released a couple of days ago https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/protobuf.rb This is causing the link failure. I was able to build successfully installing an older protobuf version. brew install protobuf@21

majetideepak commented 1 year ago

I installed the 21.12 version https://raw.githubusercontent.com/Homebrew/homebrew-core/79cd8fade5afb6d5d4ac27163105d8783ebc0084/Formula/protobuf.rb

kgpai commented 1 year ago

Thanks Deepak can we pin protobuf @21.2 ? A similar problem was reported with re2, which thankfully was pinned.

majetideepak commented 1 year ago

@kgpai yes. protobuf@21 should do.

yingsu00 commented 1 year ago

The same issue happens on my Intel Macbook too, after upgrading the MacOS SDK to 13.3. It built fine on MacOS SDK 13.1, but threw the same error @mohsaka found after upgrading to XCode CommandLine tools 14.3.1 (MacOS SDK 13.3). I checked the ld snapshot. and it's trying to link IntDecoderBenchmark.cpp.o with libLTO.dylib. I tried to upload the snapshot here but it's very large, so I'm pasting the results:

Link command

/Library/Developer/CommandLineTools/usr/bin/ld -Z -demangle -lto_library data_files/libLTO.dylib -dynamic -arch x86_64 -platform_version macos 13.0.0 13.3 -search_paths_first -headerpad_max_install_names -flat_namespace -filelist objects/filelist

Where objects/filelist = objects/IntDecoderBenchmark.cpp.o Output

Yings-MBP:velox_dwio_common_int_decoder_benchmark-2023-06-08-015257.ld-snapshot yingsu$ /Library/Developer/CommandLineTools/usr/bin/ld -Z -demangle -lto_library data_files/libLTO.dylib -dynamic -arch x86_64 -platform_version macos 13.0.0 13.3 -search_paths_first -headerpad_max_install_names -flat_namespace -filelist objects/filelist
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      readVuLong(char const*, unsigned long&) in IntDecoderBenchmark.cpp.o
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
      std::__1::enable_if<IsSomeString<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::value && (sizeof...(char [19]) != 1 || !std::is_same<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, folly::detail::LastElement<char const (&) [19]>::type>::value), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::type folly::to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, char [19]>(char const (&) [19]) in IntDecoderBenchmark.cpp.o
      facebook::velox::dwio::common::exception::LoggedException::LoggedException(char const*, unsigned long, char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IntDecoderBenchmark.cpp.o
      std::__1::__throw_length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
      __GLOBAL__sub_I_IntDecoderBenchmark.cpp in IntDecoderBenchmark.cpp.o
  "folly::runBenchmarks()", referenced from:
      _main in IntDecoderBenchmark.cpp.o
  "folly::ThreadLocalPRNG::operator()()", referenced from:
      _main in IntDecoderBenchmark.cpp.o
  "folly::BenchmarkSuspender::timeSpent", referenced from:
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_5, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_5>, void>::type folly::addBenchmark<$_5>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_5, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_5>, void>::type folly::addBenchmark<$_5>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
  "folly::init(int*, char***, bool)", referenced from:
      _main in IntDecoderBenchmark.cpp.o
  "folly::detail::addBenchmarkImpl(char const*, folly::Range<char const*>, std::__1::function<folly::detail::TimeIterData (unsigned int)>, bool)", referenced from:
      __GLOBAL__sub_I_IntDecoderBenchmark.cpp in IntDecoderBenchmark.cpp.o
  "facebook::velox::VeloxException::VeloxException(char const*, unsigned long, char const*, std::__1::basic_string_view<char, std::__1::char_traits<char>>, std::__1::basic_string_view<char, std::__1::char_traits<char>>, std::__1::basic_string_view<char, std::__1::char_traits<char>>, std::__1::basic_string_view<char, std::__1::char_traits<char>>, bool, facebook::velox::VeloxException::Type, std::__1::basic_string_view<char, std::__1::char_traits<char>>)", referenced from:
      facebook::velox::dwio::common::exception::LoggedException::LoggedException(char const*, unsigned long, char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IntDecoderBenchmark.cpp.o
  "facebook::velox::dwio::common::exception::getExceptionLogger()", referenced from:
      facebook::velox::dwio::common::exception::LoggedException::LoggedException(char const*, unsigned long, char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IntDecoderBenchmark.cpp.o
  "facebook::velox::VeloxException::State::what() const", referenced from:
      facebook::velox::dwio::common::exception::LoggedException::LoggedException(char const*, unsigned long, char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IntDecoderBenchmark.cpp.o
      facebook::velox::VeloxException::what() const in IntDecoderBenchmark.cpp.o
  "std::logic_error::logic_error(char const*)", referenced from:
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
  "std::logic_error::logic_error(char const*)", referenced from:
      std::length_error::length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
  "std::logic_error::~logic_error()", referenced from:
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
  "std::length_error::~length_error()", referenced from:
      std::__1::__throw_length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
  "std::runtime_error::runtime_error(char const*)", referenced from:
      readVuLong(char const*, unsigned long&) in IntDecoderBenchmark.cpp.o
  "std::runtime_error::~runtime_error()", referenced from:
      readVuLong(char const*, unsigned long&) in IntDecoderBenchmark.cpp.o
  "std::bad_array_new_length::bad_array_new_length()", referenced from:
      std::__throw_bad_array_new_length[abi:v15006]() in IntDecoderBenchmark.cpp.o
  "std::bad_array_new_length::~bad_array_new_length()", referenced from:
      std::__throw_bad_array_new_length[abi:v15006]() in IntDecoderBenchmark.cpp.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::append(char const*)", referenced from:
      std::__1::enable_if<IsSomeString<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::value && (sizeof...(char [19]) != 1 || !std::is_same<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, folly::detail::LastElement<char const (&) [19]>::type>::value), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::type folly::to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, char [19]>(char const (&) [19]) in IntDecoderBenchmark.cpp.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::reserve(unsigned long)", referenced from:
      std::__1::enable_if<IsSomeString<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::value && (sizeof...(char [19]) != 1 || !std::is_same<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, folly::detail::LastElement<char const (&) [19]>::type>::value), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::type folly::to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, char [19]>(char const (&) [19]) in IntDecoderBenchmark.cpp.o
  "std::__1::__shared_weak_count::__release_weak()", referenced from:
      facebook::velox::dwio::common::exception::LoggedException::~LoggedException() in IntDecoderBenchmark.cpp.o
      facebook::velox::VeloxException::~VeloxException() in IntDecoderBenchmark.cpp.o
      facebook::velox::dwio::common::exception::LoggedException::~LoggedException() in IntDecoderBenchmark.cpp.o
      facebook::velox::VeloxException::~VeloxException() in IntDecoderBenchmark.cpp.o
      facebook::velox::VeloxException::~VeloxException() in IntDecoderBenchmark.cpp.o
  "std::__1::chrono::steady_clock::now()", referenced from:
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_5, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_5>, void>::type folly::addBenchmark<$_5>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_5, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_5>, void>::type folly::addBenchmark<$_5>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::operator()(unsigned int&&) in IntDecoderBenchmark.cpp.o
  "std::exception::~exception()", referenced from:
      facebook::velox::dwio::common::exception::LoggedException::~LoggedException() in IntDecoderBenchmark.cpp.o
      facebook::velox::VeloxException::~VeloxException() in IntDecoderBenchmark.cpp.o
      facebook::velox::dwio::common::exception::LoggedException::~LoggedException() in IntDecoderBenchmark.cpp.o
      facebook::velox::VeloxException::~VeloxException() in IntDecoderBenchmark.cpp.o
      facebook::velox::VeloxException::~VeloxException() in IntDecoderBenchmark.cpp.o
  "typeinfo for std::logic_error", referenced from:
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
  "typeinfo for std::length_error", referenced from:
      std::__1::__throw_length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
  "typeinfo for std::runtime_error", referenced from:
      readVuLong(char const*, unsigned long&) in IntDecoderBenchmark.cpp.o
  "typeinfo for std::bad_array_new_length", referenced from:
      std::__throw_bad_array_new_length[abi:v15006]() in IntDecoderBenchmark.cpp.o
  "typeinfo for std::exception", referenced from:
      typeinfo for facebook::velox::VeloxException in IntDecoderBenchmark.cpp.o
  "vtable for __cxxabiv1::__class_type_info", referenced from:
      typeinfo for std::__1::__function::__base<folly::detail::TimeIterData (unsigned int)> in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int) in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int) in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int) in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int) in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int) in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::enable_if<folly::is_invocable_v<$_5, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_5>, void>::type folly::addBenchmark<$_5>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_5&&)::'lambda'(unsigned int) in IntDecoderBenchmark.cpp.o
      ...
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for __cxxabiv1::__si_class_type_info", referenced from:
      typeinfo for facebook::velox::VeloxException in IntDecoderBenchmark.cpp.o
      typeinfo for facebook::velox::dwio::common::exception::LoggedException in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)> in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)> in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)> in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)> in IntDecoderBenchmark.cpp.o
      typeinfo for std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)> in IntDecoderBenchmark.cpp.o
      ...
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for std::length_error", referenced from:
      std::length_error::length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "operator delete(void*)", referenced from:
      std::__1::vector<unsigned short, std::__1::allocator<unsigned short>>::~vector[abi:v15006]() in IntDecoderBenchmark.cpp.o
      std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long>>::~vector[abi:v15006]() in IntDecoderBenchmark.cpp.o
      std::__1::vector<char, std::__1::allocator<char>>::~vector[abi:v15006]() in IntDecoderBenchmark.cpp.o
      std::__1::vector<unsigned int, std::__1::allocator<unsigned int>>::~vector[abi:v15006]() in IntDecoderBenchmark.cpp.o
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
      std::__1::enable_if<IsSomeString<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::value && (sizeof...(char [19]) != 1 || !std::is_same<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, folly::detail::LastElement<char const (&) [19]>::type>::value), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::type folly::to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, char [19]>(char const (&) [19]) in IntDecoderBenchmark.cpp.o
      _main in IntDecoderBenchmark.cpp.o
      ...
  "operator new(unsigned long)", referenced from:
      folly::BasicFixedString<char, 7ul>::operator std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>() const in IntDecoderBenchmark.cpp.o
      _main in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_0, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_0>, void>::type folly::addBenchmark<$_0>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_0&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::__clone() const in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_1, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_1>, void>::type folly::addBenchmark<$_1>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_1&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::__clone() const in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_2, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_2>, void>::type folly::addBenchmark<$_2>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_2&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::__clone() const in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_3, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_3>, void>::type folly::addBenchmark<$_3>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_3&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::__clone() const in IntDecoderBenchmark.cpp.o
      std::__1::__function::__func<std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int), std::__1::allocator<std::__1::enable_if<folly::is_invocable_v<$_4, unsigned int>, void>::type folly::addBenchmark<std::__1::enable_if<folly::is_invocable_v<$_4>, void>::type folly::addBenchmark<$_4>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>(char const*, folly::Range<char const*>, $_4&&)::'lambda'(unsigned int)>, folly::detail::TimeIterData (unsigned int)>::__clone() const in IntDecoderBenchmark.cpp.o
      ...
  "___bzero", referenced from:
      _main in IntDecoderBenchmark.cpp.o
      std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long>>::__append(unsigned long) in IntDecoderBenchmark.cpp.o
  "___cxa_allocate_exception", referenced from:
      readVuLong(char const*, unsigned long&) in IntDecoderBenchmark.cpp.o
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
      std::__1::__throw_length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
      std::__throw_bad_array_new_length[abi:v15006]() in IntDecoderBenchmark.cpp.o
  "___cxa_atexit", referenced from:
      __GLOBAL__sub_I_IntDecoderBenchmark.cpp in IntDecoderBenchmark.cpp.o
  "___cxa_free_exception", referenced from:
      readVuLong(char const*, unsigned long&) in IntDecoderBenchmark.cpp.o
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
      std::__1::__throw_length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
  "___cxa_guard_acquire", referenced from:
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
  "___cxa_guard_release", referenced from:
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
  "___cxa_throw", referenced from:
      readVuLong(char const*, unsigned long&) in IntDecoderBenchmark.cpp.o
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
      std::__1::__throw_length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
      std::__throw_bad_array_new_length[abi:v15006]() in IntDecoderBenchmark.cpp.o
  "___gxx_personality_v0", referenced from:
      readVuLong(char const*, unsigned long&) in IntDecoderBenchmark.cpp.o
      readVuLongOptimized(unsigned long long, char const*, unsigned long long*) in IntDecoderBenchmark.cpp.o
      std::__1::enable_if<IsSomeString<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::value && (sizeof...(char [19]) != 1 || !std::is_same<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, folly::detail::LastElement<char const (&) [19]>::type>::value), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>::type folly::to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, char [19]>(char const (&) [19]) in IntDecoderBenchmark.cpp.o
      facebook::velox::dwio::common::exception::LoggedException::LoggedException(char const*, unsigned long, char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IntDecoderBenchmark.cpp.o
      std::__1::__throw_length_error[abi:v15006](char const*) in IntDecoderBenchmark.cpp.o
      __GLOBAL__sub_I_IntDecoderBenchmark.cpp in IntDecoderBenchmark.cpp.o
      Dwarf Exception Unwind Info (__eh_frame) in IntDecoderBenchmark.cpp.o
      ...
  "___stack_chk_fail", referenced from:
      __GLOBAL__sub_I_IntDecoderBenchmark.cpp in IntDecoderBenchmark.cpp.o
  "___stack_chk_guard", referenced from:
      __GLOBAL__sub_I_IntDecoderBenchmark.cpp in IntDecoderBenchmark.cpp.o
  "_memcpy", referenced from:
      folly::BasicFixedString<char, 7ul>::operator std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>() const in IntDecoderBenchmark.cpp.o
  "_memmove", referenced from:
      _main in IntDecoderBenchmark.cpp.o
      std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long>>::__append(unsigned long) in IntDecoderBenchmark.cpp.o
  "_strlen", referenced from:
      facebook::velox::dwio::common::exception::LoggedException::LoggedException(char const*, unsigned long, char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IntDecoderBenchmark.cpp.o
ld: symbol(s) not found for architecture x86_64

I checked a few CircleCI failures and they are all happening when linking IntDecoderBenchmark.cpp.o.

cc @kgpai @majetideepak

mohsaka commented 1 year ago

Validated. Working for me.

Some information.

michaelohsaka@Michaels-MacBook-Pro velox % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 14.3.1.0.1.1683849156
volume: /
location: /
install-time: 1686350895

Velox System Info v0.0.2
Commit: 4ddc957d3eaf957334caf67eb186cfdd9ffcfecb
CMake Version: 3.26.4
System: Darwin-22.5.0
Arch: arm64
C++ Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
C++ Compiler Version: 14.0.3.14030022
C Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
C Compiler Version: 14.0.3.14030022
CMake Prefix Path: /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr;/opt/homebrew;/usr/local;/usr;/;/opt/homebrew/Cellar/cmake/3.26.4;/usr/local;/usr/X11R6;/usr/pkg;/opt;/sw;/opt/local
yingsu00 commented 1 year ago

Still doesn't work for me

majetideepak commented 1 year ago

@yingsu00 your backtrace looks different that the one posted here. Do you want to open a separate issue?

MrPresent-Han commented 8 months ago

@kgpai yes. protobuf@21 should do. Hi @majetideepak, I got the same issue when trying to build velox on my mocos M1 pro as below: 0 0x104e2bbb8 __assert_rtn + 128 1 0x104d47624 ld::tool::InputFiles::findDylib(char const*, ld::dylib::File const*, bool) + 776 2 0x104de8b0c generic::dylib::File::processIndirectLibraries(ld::dylib::File::DylibHandler*, bool) + 88 3 0x104d488f0 ld::tool::InputFiles::createIndirectDylibs() + 456 4 0x104d498e4 ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 836 5 0x104d58fb8 ld::tool::Resolver::resolve() + 44 6 0x104cea15c main + 288 A linker snapshot was created at: /tmp/velox_concurrent_allocation_benchmark-2024-01-21-180846.ld-snapshot ld: Assertion failed: (counter() < 0xffff), function nextCounter, file ld.hpp, line 404. clang: error: linker command failed with exit code 1 (use -v to see invocation)

but I found the protobuf version in the scripts/setup-macos.sh has been 'protobuf@21' and in my built-output-log, it says:

-- Setting Protobuf source to AUTO -- Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) (Required is exact version "3.21") -- Building Protobuf from source -- 3.21.4.0 -- Using BUNDLED Protobuf

it seems that the bundled 3.21.4.0 protobuf was used and it caused the same errors.

MrPresent-Han commented 8 months ago

I found the place where protobuf version was defined in the CMakeLists.txt

if(NOT ${VELOX_BUILD_MINIMAL}) set_source(Protobuf) resolve_dependency(Protobuf 3.21 EXACT) include_directories(${Protobuf_INCLUDE_DIRS}) endif()

I wonder how to switch the version of Protobuf used for compiling Velox. I am new to CMake and look forward to any suggestion given. Thank you