Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fail to build tiflash due to unused variables #4771

Closed
junaire opened this issue Apr 27, 2022 · 10 comments · Fixed by #4796
Closed

Fail to build tiflash due to unused variables #4771

junaire opened this issue Apr 27, 2022 · 10 comments · Fixed by #4796
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@junaire
Copy link
Contributor

junaire commented Apr 27, 2022

Bug Report

1. Minimal reproduce step (Required)

clone the repo and try to build it.

mkdir build && cd build
CC=clang CXX=clang++ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES ../

2. What did you expect to see? (Required)

Success

3. What did you see instead (Required)

[0/2] Re-checking globbed directories...
[2/268] Building CXX object dbms/src/Functions/CMakeFiles/clickhouse_functions.dir/FunctionsGeo.cpp.o
FAILED: dbms/src/Functions/CMakeFiles/clickhouse_functions.dir/FunctionsGeo.cpp.o 
/usr/bin/ccache /home/jun/opt/clang/bin/clang++ -DBOOST_CONTEXT_EXPORT="" -DBOOST_CONTEXT_NO_LIB -DBOOST_CONTEXT_STATIC_LINK -DBOOST_FIBER_NO_LIB -DBOOST_FIBER_STATIC_LINK -DBOOST_SYSTEM_NO_DEPRECATED -DCARES_STATICLIB -DFIU_ENABLE -DLZ4_DISABLE_DEPRECATE_WARNINGS=1 -DPOCO_STATIC -DPOCO_UNBUNDLED_ZLIB -DSTACK_LINE_READER_BUFFER_SIZE=1024 -DTIFLASH_COMPILER_VPCLMULQDQ_SUPPORT=1 -DTIFLASH_ENABLE_AVX512_SUPPORT=1 -DTIFLASH_ENABLE_AVX_SUPPORT=1 -DTIFLASH_SOURCE_PREFIX=\"/home/jun/dev/tiflash\" -I/home/jun/dev/tiflash/contrib/libdivide -I/home/jun/dev/tiflash/contrib/libmetrohash/src -I/home/jun/dev/tiflash/contrib/libfarmhash -I/home/jun/dev/tiflash/dbms/src -I/home/jun/dev/tiflash/contrib/tiflash-proxy/raftstore-proxy/ffi/src -I/home/jun/dev/tiflash/build/dbms/src -I/home/jun/dev/tiflash/contrib/double-conversion -I/home/jun/dev/tiflash/contrib/boost -I/home/jun/dev/tiflash/contrib/xxHash -I/home/jun/dev/tiflash/contrib/libpcg-random/include -I/home/jun/dev/tiflash/contrib/libcityhash/include -I/home/jun/dev/tiflash/libs/libcommon/include -I/home/jun/dev/tiflash/build/libs/libcommon/include -I/home/jun/dev/tiflash/libs/libpocoext/include -I/home/jun/dev/tiflash/contrib/poco/Data/include -I/home/jun/dev/tiflash/contrib/poco/Foundation/include -I/home/jun/dev/tiflash/contrib/zlib-ng -I/home/jun/dev/tiflash/build/contrib/zlib-ng -I/home/jun/dev/tiflash/contrib/poco/Util/include -I/home/jun/dev/tiflash/contrib/poco/XML/include -I/home/jun/dev/tiflash/contrib/poco/JSON/include -I/home/jun/dev/tiflash/contrib/poco/Net/include -I/home/jun/dev/tiflash/contrib/cctz/include -I/home/jun/dev/tiflash/contrib/jemalloc-cmake/include -I/home/jun/dev/tiflash/contrib/jemalloc-cmake/include_linux_x86_64 -I/home/jun/dev/tiflash/contrib/cpu_features/include -I/home/jun/dev/tiflash/contrib/libcpuid/include -I/home/jun/dev/tiflash/contrib/lz4/lib -I/home/jun/dev/tiflash/contrib/zstd/lib -I/home/jun/dev/tiflash/contrib/client-c/third_party/libfiu/libfiu -I/home/jun/dev/tiflash/contrib/prometheus-cpp/core/include -I/home/jun/dev/tiflash/build/contrib/prometheus-cpp-cmake/core/include -I/home/jun/dev/tiflash/contrib/prometheus-cpp/push/include -I/home/jun/dev/tiflash/build/contrib/prometheus-cpp-cmake/push/include -I/home/jun/dev/tiflash/contrib/prometheus-cpp/pull/include -I/home/jun/dev/tiflash/build/contrib/prometheus-cpp-cmake/pull/include -I/home/jun/dev/tiflash/contrib/cpptoml -I/home/jun/dev/tiflash/contrib/poco/NetSSL_OpenSSL/include -I/home/jun/dev/tiflash/contrib/poco/Crypto/include -I/home/jun/dev/tiflash/contrib/xxHash/cmake_unofficial/.. -I/home/jun/dev/tiflash/contrib/kvproto/cpp -I/home/jun/dev/tiflash/contrib/kvproto/cpp/kvproto -I/home/jun/dev/tiflash/contrib/grpc/include -I/home/jun/dev/tiflash/contrib/client-c/include -I/home/jun/dev/tiflash/build/contrib/grpc/third_party/cares/cares -I/home/jun/dev/tiflash/contrib/grpc/third_party/cares/cares -I/home/jun/dev/tiflash/contrib/tipb/cpp -I/home/jun/dev/tiflash/build/dbms/src/Storages/DeltaMerge/File/dtpb -I/home/jun/dev/tiflash/contrib/libbtrie/include -I/home/jun/dev/tiflash/contrib/abseil-cpp -I/home/jun/dev/tiflash/libs/libconsistent-hashing -I/home/jun/dev/tiflash/build/contrib/libfarmhash -isystem /home/jun/dev/tiflash/contrib/fmtlib-cmake/../fmtlib/include -isystem /home/jun/dev/tiflash/libs/libsymbolization/include -isystem /home/jun/dev/tiflash/contrib/boringssl/include -isystem /home/jun/dev/tiflash/contrib/protobuf/src -isystem /home/jun/dev/tiflash/contrib/re2 -isystem /home/jun/dev/tiflash/build/contrib/re2-cmake -D__GLIBCXX_BITSIZE_INT_N_0=128 -D__GLIBCXX_TYPE_INT_N_0=__int128  -D_GLIBCXX_USE_CXX11_ABI=1 -pipe -msse4.1 -msse4.2 -mpopcnt  -fno-omit-frame-pointer  -Wall -Wno-unused-command-line-argument  -Wnon-virtual-dtor  -Wextra -Werror -g -g3 -ggdb3 -O0 -fverbose-asm -fno-inline  -fPIC -DDUMMY_BACKTRACE -pthread -std=gnu++17 -MD -MT dbms/src/Functions/CMakeFiles/clickhouse_functions.dir/FunctionsGeo.cpp.o -MF dbms/src/Functions/CMakeFiles/clickhouse_functions.dir/FunctionsGeo.cpp.o.d -o dbms/src/Functions/CMakeFiles/clickhouse_functions.dir/FunctionsGeo.cpp.o -c /home/jun/dev/tiflash/dbms/src/Functions/FunctionsGeo.cpp
In file included from /home/jun/dev/tiflash/dbms/src/Functions/FunctionsGeo.cpp:22:
In file included from /home/jun/dev/tiflash/dbms/src/Functions/GeoUtils.h:38:
In file included from /home/jun/dev/tiflash/contrib/boost/boost/geometry.hpp:17:
In file included from /home/jun/dev/tiflash/contrib/boost/boost/geometry/geometry.hpp:58:
In file included from /home/jun/dev/tiflash/contrib/boost/boost/geometry/strategies/strategies.hpp:37:
In file included from /home/jun/dev/tiflash/contrib/boost/boost/geometry/strategies/intersection_strategies.hpp:19:
In file included from /home/jun/dev/tiflash/contrib/boost/boost/geometry/policies/relate/intersection_policy.hpp:21:
/home/jun/dev/tiflash/contrib/boost/boost/geometry/policies/relate/intersection_points.hpp:71:33: error: variable 'count_a' set but not used [-Werror,-Wunused-but-set-variable]
        unsigned int index = 0, count_a = 0, count_b = 0;
                                ^
/home/jun/dev/tiflash/contrib/boost/boost/geometry/policies/relate/intersection_points.hpp:71:46: error: variable 'count_b' set but not used [-Werror,-Wunused-but-set-variable]
        unsigned int index = 0, count_a = 0, count_b = 0;
                                             ^
2 errors generated.
[10/268] Building CXX object dbms/src/Functions/CMakeFiles/clickhouse_functions.dir/divide.cpp.o^C
ninja: build stopped: interrupted by user.

4. What is your TiFlash version? (Required)

main branch

Clang version:

clang version 15.0.0 (https://github.com/llvm/llvm-project/ 4ffd0b6fde4da9a3ba4ee3a189504ce84c118b1c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/jun/opt/clang/bin
@junaire junaire added the type/bug The issue is confirmed as a bug. label Apr 27, 2022
@Lloyd-Pottiger
Copy link
Contributor

Could you please remove build directory and build again? If failed, please paste the error message here. Much thanks!

@junaire
Copy link
Contributor Author

junaire commented Apr 27, 2022

Could you please remove build directory and build again? If failed, please paste the error message here. Much thanks!

Hi thanks for the response, I tried again but got exactly the same error message post above :(

@junaire
Copy link
Contributor Author

junaire commented Apr 27, 2022

@Lloyd-Pottiger
Copy link
Contributor

@SchrodingerZhu PTAL

@junaire
Copy link
Contributor Author

junaire commented Apr 27, 2022

FWIW, you can reproduce my toolchain by:

curl -s https://raw.githubusercontent.com/chromium/chromium/main/tools/clang/scripts/update.py | python3 - --output-dir=/path/to/clang

CC=/path/to/clang/bin/clang CXX=/path/to/clang/bin/clang++ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES ../

@JaySon-Huang
Copy link
Contributor

@junaire you can add these lines to suppress the warning from boost

#pragma GCC diagnostic ignored "-Wunused-but-set-variable"

like we suppress other warning in this file

/// Warning in boost::geometry during template strategy substitution.
#pragma GCC diagnostic push
#if !__clang__
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#include <boost/geometry.hpp>
#include <boost/geometry/algorithms/comparable_distance.hpp>
#include <boost/geometry/geometries/multi_polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/segment.hpp>
#include <boost/geometry/strategies/cartesian/distance_pythagoras.hpp>
#pragma GCC diagnostic pop

@junaire
Copy link
Contributor Author

junaire commented Apr 27, 2022

@junaire you can add these lines to suppress the warning from boost

#pragma GCC diagnostic ignored "-Wunused-but-set-variable"

like we suppress other warning in this file

/// Warning in boost::geometry during template strategy substitution.
#pragma GCC diagnostic push
#if !__clang__
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#include <boost/geometry.hpp>
#include <boost/geometry/algorithms/comparable_distance.hpp>
#include <boost/geometry/geometries/multi_polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/segment.hpp>
#include <boost/geometry/strategies/cartesian/distance_pythagoras.hpp>
#pragma GCC diagnostic pop

Well, now I got another error message....

[0/2] Re-checking globbed directories...
[7/8] Building CXX object dbms/src/Fla...e_perftest.dir/exchange_perftest.cpp.o
FAILED: dbms/src/Flash/tests/CMakeFiles/exchange_perftest.dir/exchange_perftest.cpp.o 
/usr/bin/ccache /home/jun/opt/clang/bin/clang++ -DBOOST_CONTEXT_EXPORT="" -DBOOST_CONTEXT_NO_LIB -DBOOST_CONTEXT_STATIC_LINK -DBOOST_FIBER_NO_LIB -DBOOST_FIBER_STATIC_LINK -DBOOST_SYSTEM_NO_DEPRECATED -DCARES_STATICLIB -DFIU_ENABLE -DGTEST_HAS_POSIX_RE=0 -DLZ4_DISABLE_DEPRECATE_WARNINGS=1 -DPOCO_STATIC -DPOCO_UNBUNDLED_ZLIB -DSTACK_LINE_READER_BUFFER_SIZE=1024 -DTIFLASH_COMPILER_VPCLMULQDQ_SUPPORT=1 -DTIFLASH_ENABLE_AVX512_SUPPORT=1 -DTIFLASH_ENABLE_AVX_SUPPORT=1 -DTIFLASH_SOURCE_PREFIX=\"/home/jun/dev/tiflash\" -I/home/jun/dev/tiflash/dbms/src -I/home/jun/dev/tiflash/build/dbms/src/Flash/tests -I/home/jun/dev/tiflash/contrib/googletest/googletest/include -I/home/jun/dev/tiflash/contrib/tiflash-proxy/raftstore-proxy/ffi/src -I/home/jun/dev/tiflash/build/dbms/src -I/home/jun/dev/tiflash/contrib/double-conversion -I/home/jun/dev/tiflash/contrib/boost -I/home/jun/dev/tiflash/contrib/xxHash -I/home/jun/dev/tiflash/contrib/libpcg-random/include -I/home/jun/dev/tiflash/contrib/libcityhash/include -I/home/jun/dev/tiflash/libs/libcommon/include -I/home/jun/dev/tiflash/build/libs/libcommon/include -I/home/jun/dev/tiflash/libs/libpocoext/include -I/home/jun/dev/tiflash/contrib/poco/Data/include -I/home/jun/dev/tiflash/contrib/poco/Foundation/include -I/home/jun/dev/tiflash/contrib/zlib-ng -I/home/jun/dev/tiflash/build/contrib/zlib-ng -I/home/jun/dev/tiflash/contrib/poco/Util/include -I/home/jun/dev/tiflash/contrib/poco/XML/include -I/home/jun/dev/tiflash/contrib/poco/JSON/include -I/home/jun/dev/tiflash/contrib/poco/Net/include -I/home/jun/dev/tiflash/contrib/cctz/include -I/home/jun/dev/tiflash/contrib/jemalloc-cmake/include -I/home/jun/dev/tiflash/contrib/jemalloc-cmake/include_linux_x86_64 -I/home/jun/dev/tiflash/contrib/cpu_features/include -I/home/jun/dev/tiflash/contrib/libcpuid/include -I/home/jun/dev/tiflash/contrib/lz4/lib -I/home/jun/dev/tiflash/contrib/zstd/lib -I/home/jun/dev/tiflash/contrib/client-c/third_party/libfiu/libfiu -I/home/jun/dev/tiflash/contrib/prometheus-cpp/core/include -I/home/jun/dev/tiflash/build/contrib/prometheus-cpp-cmake/core/include -I/home/jun/dev/tiflash/contrib/prometheus-cpp/push/include -I/home/jun/dev/tiflash/build/contrib/prometheus-cpp-cmake/push/include -I/home/jun/dev/tiflash/contrib/prometheus-cpp/pull/include -I/home/jun/dev/tiflash/build/contrib/prometheus-cpp-cmake/pull/include -I/home/jun/dev/tiflash/contrib/cpptoml -I/home/jun/dev/tiflash/contrib/poco/NetSSL_OpenSSL/include -I/home/jun/dev/tiflash/contrib/poco/Crypto/include -I/home/jun/dev/tiflash/contrib/xxHash/cmake_unofficial/.. -I/home/jun/dev/tiflash/contrib/kvproto/cpp -I/home/jun/dev/tiflash/contrib/kvproto/cpp/kvproto -I/home/jun/dev/tiflash/contrib/grpc/include -I/home/jun/dev/tiflash/contrib/client-c/include -I/home/jun/dev/tiflash/build/contrib/grpc/third_party/cares/cares -I/home/jun/dev/tiflash/contrib/grpc/third_party/cares/cares -I/home/jun/dev/tiflash/contrib/tipb/cpp -I/home/jun/dev/tiflash/build/dbms/src/Storages/DeltaMerge/File/dtpb -I/home/jun/dev/tiflash/contrib/libbtrie/include -I/home/jun/dev/tiflash/contrib/abseil-cpp -I/home/jun/dev/tiflash/contrib/libdivide -I/home/jun/dev/tiflash/contrib/libmetrohash/src -I/home/jun/dev/tiflash/contrib/libfarmhash -I/home/jun/dev/tiflash/libs/libdaemon/include -I/home/jun/dev/tiflash/contrib/libunwind/include -isystem /home/jun/dev/tiflash/contrib/fmtlib-cmake/../fmtlib/include -isystem /home/jun/dev/tiflash/libs/libsymbolization/include -isystem /home/jun/dev/tiflash/contrib/boringssl/include -isystem /home/jun/dev/tiflash/contrib/protobuf/src -isystem /home/jun/dev/tiflash/contrib/re2 -isystem /home/jun/dev/tiflash/build/contrib/re2-cmake -D__GLIBCXX_BITSIZE_INT_N_0=128 -D__GLIBCXX_TYPE_INT_N_0=__int128  -D_GLIBCXX_USE_CXX11_ABI=1 -pipe -msse4.1 -msse4.2 -mpopcnt  -fno-omit-frame-pointer  -Wall -Wno-unused-command-line-argument  -Wnon-virtual-dtor  -Wextra -Werror -g -g3 -ggdb3 -O0 -fverbose-asm -fno-inline  -fPIC -DDUMMY_BACKTRACE -pthread -std=gnu++17 -MD -MT dbms/src/Flash/tests/CMakeFiles/exchange_perftest.dir/exchange_perftest.cpp.o -MF dbms/src/Flash/tests/CMakeFiles/exchange_perftest.dir/exchange_perftest.cpp.o.d -o dbms/src/Flash/tests/CMakeFiles/exchange_perftest.dir/exchange_perftest.cpp.o -c /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:15:
In file included from /home/jun/dev/tiflash/dbms/src/Common/ConcurrentBoundedQueue.h:17:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Mutex.h:21:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Foundation.h:152:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Bugcheck.h:22:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/string:41:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/allocator.h:46:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33:
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ext/new_allocator.h:150:23: error: no matching constructor for initialization of 'DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>'
        { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
                             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/alloc_traits.h:512:8: note: in instantiation of function template specialization '__gnu_cxx::new_allocator<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>::construct<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>, std::shared_ptr<DB::tests::(anonymous namespace)::MockReceiverContext>, const int &, int, std::nullptr_t>' requested here
          __a.construct(__p, std::forward<_Args>(__args)...);
              ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:551:30: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>::construct<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>, std::shared_ptr<DB::tests::(anonymous namespace)::MockReceiverContext>, const int &, int, std::nullptr_t>' requested here
          allocator_traits<_Alloc>::construct(__a, _M_ptr(),
                                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:683:6: note: in instantiation of function template specialization 'std::_Sp_counted_ptr_inplace<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>, std::allocator<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, __gnu_cxx::_S_atomic>::_Sp_counted_ptr_inplace<std::shared_ptr<DB::tests::(anonymous namespace)::MockReceiverContext>, const int &, int, std::nullptr_t>' requested here
            _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...);
            ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1371:14: note: in instantiation of function template specialization 'std::__shared_count<__gnu_cxx::_S_atomic>::__shared_count<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>, std::allocator<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::shared_ptr<DB::tests::(anonymous namespace)::MockReceiverContext>, const int &, int, std::nullptr_t>' requested here
        : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:408:4: note: in instantiation of function template specialization 'std::__shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>, __gnu_cxx::_S_atomic>::__shared_ptr<std::allocator<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::shared_ptr<DB::tests::(anonymous namespace)::MockReceiverContext>, const int &, int, std::nullptr_t>' requested here
        : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
          ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:859:14: note: in instantiation of function template specialization 'std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>::shared_ptr<std::allocator<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::shared_ptr<DB::tests::(anonymous namespace)::MockReceiverContext>, const int &, int, std::nullptr_t>' requested here
      return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
             ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:875:19: note: in instantiation of function template specialization 'std::allocate_shared<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>, std::allocator<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::shared_ptr<DB::tests::(anonymous namespace)::MockReceiverContext>, const int &, int, std::nullptr_t>' requested here
      return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
                  ^
/home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:432:21: note: in instantiation of function template specialization 'std::make_shared<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>, std::shared_ptr<DB::tests::(anonymous namespace)::MockReceiverContext>, const int &, int, std::nullptr_t>' requested here
        return std::make_shared<MockExchangeReceiver>(
                    ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/ExchangeReceiver.h:90:5: note: candidate constructor not viable: requires 5 arguments, but 4 were provided
    ExchangeReceiverBase(
    ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/ExchangeReceiver.h:83:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 4 were provided
class ExchangeReceiverBase
      ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:15:
In file included from /home/jun/dev/tiflash/dbms/src/Common/ConcurrentBoundedQueue.h:17:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Mutex.h:21:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Foundation.h:152:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Bugcheck.h:22:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/string:41:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/allocator.h:46:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33:
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ext/new_allocator.h:150:23: error: no matching constructor for initialization of 'DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>'
        { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
                             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/alloc_traits.h:512:8: note: in instantiation of function template specialization '__gnu_cxx::new_allocator<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>::construct<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>> &, std::nullptr_t>' requested here
          __a.construct(__p, std::forward<_Args>(__args)...);
              ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:551:30: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>>::construct<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>> &, std::nullptr_t>' requested here
          allocator_traits<_Alloc>::construct(__a, _M_ptr(),
                                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:683:6: note: in instantiation of function template specialization 'std::_Sp_counted_ptr_inplace<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::allocator<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>, __gnu_cxx::_S_atomic>::_Sp_counted_ptr_inplace<std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>> &, std::nullptr_t>' requested here
            _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...);
            ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1371:14: note: in instantiation of function template specialization 'std::__shared_count<__gnu_cxx::_S_atomic>::__shared_count<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::allocator<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>, std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>> &, std::nullptr_t>' requested here
        : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:408:4: note: in instantiation of function template specialization 'std::__shared_ptr<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, __gnu_cxx::_S_atomic>::__shared_ptr<std::allocator<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>, std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>> &, std::nullptr_t>' requested here
        : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
          ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:859:14: note: in instantiation of function template specialization 'std::shared_ptr<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>::shared_ptr<std::allocator<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>, std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>> &, std::nullptr_t>' requested here
      return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
             ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:875:19: note: in instantiation of function template specialization 'std::allocate_shared<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::allocator<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>>, std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>> &, std::nullptr_t>' requested here
      return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
                  ^
/home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:444:36: note: in instantiation of function template specialization 'std::make_shared<DB::TiRemoteBlockInputStream<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>>, std::shared_ptr<DB::ExchangeReceiverBase<DB::tests::(anonymous namespace)::MockReceiverContext>> &, std::nullptr_t>' requested here
            streams.push_back(std::make_shared<MockExchangeReceiverInputStream>(receiver, nullptr));
                                   ^
/home/jun/dev/tiflash/dbms/src/DataStreams/TiRemoteBlockInputStream.h:36:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
class TiRemoteBlockInputStream : public IProfilingBlockInputStream
      ^
/home/jun/dev/tiflash/dbms/src/DataStreams/TiRemoteBlockInputStream.h:171:5: note: candidate constructor not viable: requires 3 arguments, but 2 were provided
    TiRemoteBlockInputStream(std::shared_ptr<RemoteReader> remote_reader_, const String & req_id, const String & executor_id)
    ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:15:
In file included from /home/jun/dev/tiflash/dbms/src/Common/ConcurrentBoundedQueue.h:17:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Mutex.h:21:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Foundation.h:152:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Bugcheck.h:22:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/string:41:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/allocator.h:46:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33:
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ext/new_allocator.h:150:23: error: no matching constructor for initialization of 'DB::Join'
        { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
                             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/alloc_traits.h:512:8: note: in instantiation of function template specialization '__gnu_cxx::new_allocator<DB::Join>::construct<DB::Join, std::vector<std::basic_string<char>>, std::vector<std::basic_string<char>>, bool, DB::SizeLimits, DB::ASTTableJoin::Kind, DB::ASTTableJoin::Strictness, int &, std::vector<const TiDB::ITiDBCollator *>, const char (&)[1], const char (&)[1], const char (&)[1], const char (&)[1], std::nullptr_t, int>' requested here
          __a.construct(__p, std::forward<_Args>(__args)...);
              ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:551:30: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DB::Join>>::construct<DB::Join, std::vector<std::basic_string<char>>, std::vector<std::basic_string<char>>, bool, DB::SizeLimits, DB::ASTTableJoin::Kind, DB::ASTTableJoin::Strictness, int &, std::vector<const TiDB::ITiDBCollator *>, const char (&)[1], const char (&)[1], const char (&)[1], const char (&)[1], std::nullptr_t, int>' requested here
          allocator_traits<_Alloc>::construct(__a, _M_ptr(),
                                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:683:6: note: in instantiation of function template specialization 'std::_Sp_counted_ptr_inplace<DB::Join, std::allocator<DB::Join>, __gnu_cxx::_S_atomic>::_Sp_counted_ptr_inplace<std::vector<std::basic_string<char>>, std::vector<std::basic_string<char>>, bool, DB::SizeLimits, DB::ASTTableJoin::Kind, DB::ASTTableJoin::Strictness, int &, std::vector<const TiDB::ITiDBCollator *>, const char (&)[1], const char (&)[1], const char (&)[1], const char (&)[1], std::nullptr_t, int>' requested here
            _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...);
            ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1371:14: note: in instantiation of function template specialization 'std::__shared_count<__gnu_cxx::_S_atomic>::__shared_count<DB::Join, std::allocator<DB::Join>, std::vector<std::basic_string<char>>, std::vector<std::basic_string<char>>, bool, DB::SizeLimits, DB::ASTTableJoin::Kind, DB::ASTTableJoin::Strictness, int &, std::vector<const TiDB::ITiDBCollator *>, const char (&)[1], const char (&)[1], const char (&)[1], const char (&)[1], std::nullptr_t, int>' requested here
        : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:408:4: note: in instantiation of function template specialization 'std::__shared_ptr<DB::Join, __gnu_cxx::_S_atomic>::__shared_ptr<std::allocator<DB::Join>, std::vector<std::basic_string<char>>, std::vector<std::basic_string<char>>, bool, DB::SizeLimits, DB::ASTTableJoin::Kind, DB::ASTTableJoin::Strictness, int &, std::vector<const TiDB::ITiDBCollator *>, const char (&)[1], const char (&)[1], const char (&)[1], const char (&)[1], std::nullptr_t, int>' requested here
        : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
          ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:859:14: note: in instantiation of function template specialization 'std::shared_ptr<DB::Join>::shared_ptr<std::allocator<DB::Join>, std::vector<std::basic_string<char>>, std::vector<std::basic_string<char>>, bool, DB::SizeLimits, DB::ASTTableJoin::Kind, DB::ASTTableJoin::Strictness, int &, std::vector<const TiDB::ITiDBCollator *>, const char (&)[1], const char (&)[1], const char (&)[1], const char (&)[1], std::nullptr_t, int>' requested here
      return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
             ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:875:19: note: in instantiation of function template specialization 'std::allocate_shared<DB::Join, std::allocator<DB::Join>, std::vector<std::basic_string<char>>, std::vector<std::basic_string<char>>, bool, DB::SizeLimits, DB::ASTTableJoin::Kind, DB::ASTTableJoin::Strictness, int &, std::vector<const TiDB::ITiDBCollator *>, const char (&)[1], const char (&)[1], const char (&)[1], const char (&)[1], std::nullptr_t, int>' requested here
      return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
                  ^
/home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:458:25: note: in instantiation of function template specialization 'std::make_shared<DB::Join, std::vector<std::basic_string<char>>, std::vector<std::basic_string<char>>, bool, DB::SizeLimits, DB::ASTTableJoin::Kind, DB::ASTTableJoin::Strictness, int &, std::vector<const TiDB::ITiDBCollator *>, const char (&)[1], const char (&)[1], const char (&)[1], const char (&)[1], std::nullptr_t, int>' requested here
        join_ptr = std::make_shared<Join>(
                        ^
/home/jun/dev/tiflash/dbms/src/Interpreters/Join.h:95:5: note: candidate constructor not viable: no known conversion from 'int' to 'const DB::String' (aka 'const basic_string<char>') for 7th argument
    Join(const Names & key_names_left_,
    ^
/home/jun/dev/tiflash/dbms/src/Interpreters/Join.h:92:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 14 were provided
class Join
      ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:15:
In file included from /home/jun/dev/tiflash/dbms/src/Common/ConcurrentBoundedQueue.h:17:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Mutex.h:21:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Foundation.h:152:
In file included from /home/jun/dev/tiflash/contrib/poco/Foundation/include/Poco/Bugcheck.h:22:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/string:41:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/allocator.h:46:
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33:
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ext/new_allocator.h:150:23: error: no matching constructor for initialization of 'DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>'
        { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
                             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/alloc_traits.h:512:8: note: in instantiation of function template specialization '__gnu_cxx::new_allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>::construct<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
          __a.construct(__p, std::forward<_Args>(__args)...);
              ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:551:30: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>::construct<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
          allocator_traits<_Alloc>::construct(__a, _M_ptr(),
                                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:683:6: note: in instantiation of function template specialization 'std::_Sp_counted_ptr_inplace<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, __gnu_cxx::_S_atomic>::_Sp_counted_ptr_inplace<mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
            _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...);
            ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1371:14: note: in instantiation of function template specialization 'std::__shared_count<__gnu_cxx::_S_atomic>::__shared_count<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
        : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:408:4: note: in instantiation of function template specialization 'std::__shared_ptr<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, __gnu_cxx::_S_atomic>::__shared_ptr<std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
        : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
          ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:859:14: note: in instantiation of function template specialization 'std::shared_ptr<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>::shared_ptr<std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
      return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
             ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:875:19: note: in instantiation of function template specialization 'std::allocate_shared<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
      return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
                  ^
/home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:519:32: note: in instantiation of function template specialization 'std::make_shared<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
            auto tunnel = std::make_shared<MockTunnel>(
                               ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.h:135:5: note: candidate constructor not viable: requires 6 arguments, but 5 were provided
    MPPTunnelBase(
    ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.h:85:5: note: candidate constructor not viable: requires 7 arguments, but 5 were provided
    MPPTunnelBase(
    ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.h:82:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class MPPTunnelBase : private boost::noncopyable
      ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:29:
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.cpp:113:17: error: no member named 'tryFlushOne' in 'DB::tests::(anonymous namespace)::MockWriter'
        writer->tryFlushOne();
        ~~~~~~  ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.cpp:94:13: note: in instantiation of member function 'DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>::finishSendQueue' requested here
            finishSendQueue();
            ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ext/new_allocator.h:156:10: note: in instantiation of member function 'DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>::~MPPTunnelBase' requested here
        { __p->~_Up(); }
                ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/alloc_traits.h:531:8: note: in instantiation of function template specialization '__gnu_cxx::new_allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>::destroy<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>' requested here
          __a.destroy(__p);
              ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:560:28: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>::destroy<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>' requested here
        allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr());
                                  ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:546:2: note: in instantiation of member function 'std::_Sp_counted_ptr_inplace<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, __gnu_cxx::_S_atomic>::_M_dispose' requested here
        _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args)
        ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:683:6: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...);
            ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1371:14: note: in instantiation of function template specialization 'std::__shared_count<__gnu_cxx::_S_atomic>::__shared_count<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
        : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
                    ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:408:4: note: in instantiation of function template specialization 'std::__shared_ptr<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, __gnu_cxx::_S_atomic>::__shared_ptr<std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
        : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
          ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:859:14: note: in instantiation of function template specialization 'std::shared_ptr<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>::shared_ptr<std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
      return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
             ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:875:19: note: in instantiation of function template specialization 'std::allocate_shared<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, std::allocator<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
      return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
                  ^
/home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:519:32: note: in instantiation of function template specialization 'std::make_shared<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>, mpp::TaskMeta &, mpp::TaskMeta &, std::chrono::duration<long>, const int &, bool>' requested here
            auto tunnel = std::make_shared<MockTunnel>(
                               ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:29:
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.cpp:197:26: error: no member named 'write' in 'DB::tests::(anonymous namespace)::MockWriter'
            if (!writer->write(*res))
                 ~~~~~~  ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.cpp:281:21: note: in instantiation of member function 'DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>::sendJob' requested here
                    sendJob();
                    ^
/home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:525:21: note: in instantiation of member function 'DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>::connect' requested here
            tunnel->connect(writer.get());
                    ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:29:
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.cpp:225:17: error: no member named 'writeDone' in 'DB::tests::(anonymous namespace)::MockWriter'
        writer->writeDone(grpc::Status::OK);
        ~~~~~~  ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnel.cpp:168:25: error: no member named 'tryFlushOne' in 'DB::tests::(anonymous namespace)::MockWriter'
                writer->tryFlushOne();
                ~~~~~~  ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.cpp:108:28: note: in instantiation of member function 'DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>::write' requested here
    tunnels[partition_id]->write(packet);
                           ^
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:296:25: note: in instantiation of member function 'DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>::write' requested here
                writer->write(packet[part_id], part_id);
                        ^
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:310:9: note: in instantiation of function template specialization 'DB::StreamingDAGResponseWriter<std::shared_ptr<DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>>::partitionAndEncodeThenWriteBlocks<false>' requested here
        partitionAndEncodeThenWriteBlocks<send_exec_summary_at_last>(blocks, response);
        ^
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:96:9: note: in instantiation of function template specialization 'DB::StreamingDAGResponseWriter<std::shared_ptr<DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>>::batchWrite<false>' requested here
        batchWrite<false>();
        ^
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.h:40:5: note: in instantiation of member function 'DB::StreamingDAGResponseWriter<std::shared_ptr<DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>>::write' requested here
    StreamingDAGResponseWriter(
    ^
/home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:551:21: note: in instantiation of member function 'DB::StreamingDAGResponseWriter<std::shared_ptr<DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>>::StreamingDAGResponseWriter' requested here
                new StreamingDAGResponseWriter<MockTunnelSetPtr>(
                    ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:27:
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:119:29: error: no matching member function for call to 'write'
                    writer->write(packet);
                    ~~~~~~~~^~~~~
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:314:9: note: in instantiation of function template specialization 'DB::StreamingDAGResponseWriter<std::shared_ptr<DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>>::encodeThenWriteBlocks<true>' requested here
        encodeThenWriteBlocks<send_exec_summary_at_last>(blocks, response);
        ^
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:78:9: note: in instantiation of function template specialization 'DB::StreamingDAGResponseWriter<std::shared_ptr<DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>>::batchWrite<true>' requested here
        batchWrite<true>();
        ^
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.h:40:5: note: in instantiation of member function 'DB::StreamingDAGResponseWriter<std::shared_ptr<DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>>::finishWrite' requested here
    StreamingDAGResponseWriter(
    ^
/home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:551:21: note: in instantiation of member function 'DB::StreamingDAGResponseWriter<std::shared_ptr<DB::MPPTunnelSetBase<DB::MPPTunnelBase<DB::tests::(anonymous namespace)::MockWriter>>>>::StreamingDAGResponseWriter' requested here
                new StreamingDAGResponseWriter<MockTunnelSetPtr>(
                    ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:52:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(mpp::MPPDataPacket & packet, int16_t partition_id);
         ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:51:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(tipb::SelectResponse & response, int16_t partition_id);
         ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:27:
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:129:21: error: no matching member function for call to 'write'
            writer->write(packet);
            ~~~~~~~~^~~~~
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:52:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(mpp::MPPDataPacket & packet, int16_t partition_id);
         ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:51:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(tipb::SelectResponse & response, int16_t partition_id);
         ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:27:
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:138:29: error: no matching member function for call to 'write'
                    writer->write(response);
                    ~~~~~~~~^~~~~
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:52:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(mpp::MPPDataPacket & packet, int16_t partition_id);
         ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:51:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(tipb::SelectResponse & response, int16_t partition_id);
         ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:27:
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:149:21: error: no matching member function for call to 'write'
            writer->write(response);
            ~~~~~~~~^~~~~
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:52:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(mpp::MPPDataPacket & packet, int16_t partition_id);
         ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:51:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(tipb::SelectResponse & response, int16_t partition_id);
         ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:27:
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:159:25: error: no matching member function for call to 'write'
                writer->write(response);
                ~~~~~~~~^~~~~
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:52:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(mpp::MPPDataPacket & packet, int16_t partition_id);
         ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:51:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(tipb::SelectResponse & response, int16_t partition_id);
         ^
In file included from /home/jun/dev/tiflash/dbms/src/Flash/tests/exchange_perftest.cpp:27:
/home/jun/dev/tiflash/dbms/src/Flash/Coprocessor/StreamingDAGResponseWriter.cpp:190:17: error: no matching member function for call to 'write'
        writer->write(response);
        ~~~~~~~~^~~~~
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:52:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(mpp::MPPDataPacket & packet, int16_t partition_id);
         ^
/home/jun/dev/tiflash/dbms/src/Flash/Mpp/MPPTunnelSet.h:51:10: note: candidate function not viable: requires 2 arguments, but 1 was provided
    void write(tipb::SelectResponse & response, int16_t partition_id);
         ^
14 errors generated.
ninja: build stopped: subcommand failed.

@JaySon-Huang
Copy link
Contributor

Seems that you are building all instead of the tiflash binary only. There are some test may left broken.
Try to use ninja -j4 tiflash?

@junaire
Copy link
Contributor Author

junaire commented Apr 27, 2022

Seems that you are building all instead of the tiflash binary only. There are some test may left broken. Try to use ninja -j4 tiflash?

It works, thanks!

@JaySon-Huang JaySon-Huang added severity/moderate help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Apr 28, 2022
@JaySon-Huang
Copy link
Contributor

@junaire maybe you can also file a PR to suppress the warning on GeoUtils.h? #4771 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants