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

In 3.3.5/master, build failure because of thrift version #52735

Closed
monkeyboy123 opened this issue Nov 8, 2024 · 7 comments
Closed

In 3.3.5/master, build failure because of thrift version #52735

monkeyboy123 opened this issue Nov 8, 2024 · 7 comments
Labels
type/bug Something isn't working

Comments

@monkeyboy123
Copy link

Steps to reproduce the behavior (Required)

  1. build it as How to build StarRocks
  2. build.sh --fe
    As i know, in 3.3.5/master the version of thrift is 0.20.0, but in fe module, we need thrift 0.13.0

Expected behavior (Required)

build success

Real behavior (Required)

[ERROR] thrift failed output:
[ERROR] thrift failed error: [ERROR:starrocks/gensrc/thrift/Descriptors.thrift:100] (last token was 'i8')
Type "i8" has not been defined.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] starrocks-fe 3.4.0 ................................. SUCCESS [  0.271 s]
[INFO] plugin-common 1.0.0 ................................ SUCCESS [  2.111 s]
[INFO] fe-common 1.0.0 .................................... SUCCESS [  1.810 s]
[INFO] spark-dpp 1.0.0 .................................... SUCCESS [  8.471 s]
[INFO] fe-core 3.4.0 ...................................... FAILURE [ 40.987 s]
[INFO] hive-udf 1.0.0 ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
with the License.  You may obtain a copy of the License at

StarRocks version (Required)

3.3.5 /master

@monkeyboy123 monkeyboy123 added the type/bug Something isn't working label Nov 8, 2024
@kevincai
Copy link
Contributor

kevincai commented Nov 9, 2024

thrift in fe module is upgraded to 0.20.0 in main/v3.3 https://github.com/StarRocks/starrocks/blob/main/fe/pom.xml#L392

@monkeyboy123
Copy link
Author

thrift in fe module is upgraded to 0.20.0 in main/v3.3 https://github.com/StarRocks/starrocks/blob/main/fe/pom.xml#L392

Actully,if you build fe with thrift 0.20.0, error will happen:

[ERROR] thrift failed error: [ERROR:starrocks/gensrc/thrift/Descriptors.thrift:100] (last token was 'i8')

@kevincai
Copy link
Contributor

doesn't look like an issue from my repro

[root@1d678c90d73e starrocks]# /var/local/thirdparty/installed/bin/thrift --version
Thrift version 0.20.0
[root@1d678c90d73e starrocks]# git log -n1
commit 052026a1738cf18e4562779a7206e6390d7eafd9
Author: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Date:   Mon Nov 11 04:18:54 2024 +0000

    [Enhancement] add passthrough buffer mem tracker (backport #52404) (#52477)
    
    Signed-off-by: stdpain <[email protected]>
    Co-authored-by: stdpain <[email protected]>
[root@1d678c90d73e starrocks]# ./build.sh --fe 
Found python3, version: Python 3.6.8
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/maven
Java version: 11.0.23, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.23.0.9-2.el7_9.x86_64
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "5.15.0-106-generic", arch: "amd64", family: "unix"
Get params:
    BUILD_BE            -- 0
    BE_CMAKE_TYPE       -- Release
    BUILD_FE            -- 1
    BUILD_SPARK_DPP     -- 0
    BUILD_HIVE_UDF      -- 0
    CCACHE              -- ccache
    CLEAN               -- 0
    RUN_UT              -- 0
    WITH_GCOV           -- OFF
    WITH_BENCH          -- OFF
    WITH_CLANG_TIDY     -- OFF
    WITH_COMPRESS_DEBUG_SYMBOL  -- ON
    WITH_STARCACHE      -- ON
    ENABLE_SHARED_DATA  -- OFF
    USE_AVX2            -- ON
    USE_AVX512          -- OFF
    USE_SSE4_2          -- ON
    JEMALLOC_DEBUG      -- OFF
    PARALLEL            -- 27
    ENABLE_QUERY_DEBUG_TRACE -- OFF
    ENABLE_FAULT_INJECTION -- OFF
    BUILD_JAVA_EXT      -- ON
    OUTPUT_COMPILE_TIME   -- OFF
    WITH_RELATIVE_SRC_PATH      -- ON

Build generated code
make -C script
make[1]: Entering directory `/root/starrocks/gensrc/script'
python3 /root/starrocks/gensrc/script/../../build-support/gen_build_version.py --cpp /root/starrocks/gensrc/script/../build//gen_cpp --java /root/starrocks/gensrc/script/../../fe/fe-core/target/generated-sources/build
python3 /root/starrocks/gensrc/script/gen_functions.py --cpp /root/starrocks/gensrc/script/../build//gen_cpp  --java /root/starrocks/gensrc/script/../../fe/fe-core/target/generated-sources/build
make[1]: Leaving directory `/root/starrocks/gensrc/script'
make -C proto
make[1]: Entering directory `/root/starrocks/gensrc/proto'
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/lake_types.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/olap_common.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/types.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/doris_internal_service.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/data.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/internal_service.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/lake_service.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/snapshot.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/status.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/descriptors.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/persistent_index.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/binlog.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/encryption.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/segment.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/olap_file.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/tablet_schema.proto
/var/local/thirdparty/installed/bin/protoc --proto_path=/root/starrocks/gensrc/proto --cpp_out=/root/starrocks/gensrc/proto/../build//gen_cpp /root/starrocks/gensrc/proto/orc_proto.proto
make[1]: Leaving directory `/root/starrocks/gensrc/proto'
make -C thrift
make[1]: Entering directory `/root/starrocks/gensrc/thrift'
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Opcodes.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Partitions.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/BackendService.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Descriptors.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/HeartbeatService.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/FrontendService.thrift
[WARNING:/root/starrocks/gensrc/thrift/FrontendService.thrift:947] The "byte" type is a compatibility alias for "i8". Use "i8" to emphasize the signedness of this type.

[WARNING:/root/starrocks/gensrc/thrift/FrontendService.thrift:1882] No field key specified for request, resulting protocol may have conflicts or not be backwards compatible!

[WARNING:/root/starrocks/gensrc/thrift/FrontendService.thrift:1885] No field key specified for params, resulting protocol may have conflicts or not be backwards compatible!

[WARNING:/root/starrocks/gensrc/thrift/FrontendService.thrift:1960] No field key specified for request, resulting protocol may have conflicts or not be backwards compatible!

[WARNING:/root/starrocks/gensrc/thrift/FrontendService.thrift:1882] No field key specified for request, resulting protocol may have conflicts or not be backwards compatible!

[WARNING:/root/starrocks/gensrc/thrift/FrontendService.thrift:1885] No field key specified for params, resulting protocol may have conflicts or not be backwards compatible!

[WARNING:/root/starrocks/gensrc/thrift/FrontendService.thrift:1960] No field key specified for request, resulting protocol may have conflicts or not be backwards compatible!

/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/MasterService.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/ShortCircuit.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/MVMaintenance.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/InternalService.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Types.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/WorkGroup.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Row.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/FileBrokerService.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Exprs.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/RuntimeProfile.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/AgentService.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Normalization.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/DataCache.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Status.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/StarrocksExternalService.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/StatusCode.thrift
patch -p0 -d /root/starrocks/gensrc/thrift/../build//gen_cpp < StatusCode_types.diff 2>&1 1>/dev/null
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Metrics.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Planner.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/QueryPlanExtra.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/DataSinks.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/PlanNodes.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/RuntimeFilter.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/parquet.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/ResourceUsage.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/Data.thrift
/var/local/thirdparty/installed/bin/thrift -I /root/starrocks/gensrc/thrift -I /root/starrocks/gensrc/thrift/../build//thrift/ --allow-64bit-consts --gen cpp -out /root/starrocks/gensrc/thrift/../build//gen_cpp /root/starrocks/gensrc/thrift/CloudConfiguration.thrift
make[1]: Leaving directory `/root/starrocks/gensrc/thrift'
Build Frontend Modules: hive-udf,fe-common,spark-dpp,fe-core
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.starrocks:spark-dpp:jar:1.0.0
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
...

@monkeyboy123
Copy link
Author

doesn't look like an issue from my repro

Thanks, it is seems like my local environment problem.

@monkeyboy123
Copy link
Author

doesn't look like an issue from my repro

By the way, when i build with comamnd: build.sh --fe, the error will happen below:

===== begin build leveldb-1.20
make: Nothing to be done for `default'.
===== begin build brpc-1.9.0
less
> Compiling src/brpc/policy/thrift_protocol.o
/bin/../bin/g++ -c -I./src -I/data/gitlab/starrocks/thirdparty/installed/include/ -std=c++17 -DBRPC_WITH_GLOG=1 -DGFLAGS_NS=google -D__const__=__unused__ -g -DENABLE_THRIFT_FRAMED_PROTOCOL -D_THRIFT_VERSION_LOWER_THAN_0_11_0_ -DBTHREAD_USE_FAST_PTHREAD_MUTEX -D_GNU_SOURCE -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DBRPC_REVISION=\"1.9.0\|xyf-3.3.5\|75bb280\|2024-11-08T13:44:31+08:00\" -O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer src/brpc/policy/thrift_protocol.cpp -o src/brpc/policy/thrift_protocol.o
> Copying to output/include
In file included from ./src/butil/logging.h:36,
                 from ./src/bthread/types.h:27,
                 from ./src/brpc/controller.h:32,
                 from src/brpc/policy/thrift_protocol.cpp:26:
/data/gitlab/starrocks/thirdparty/installed/include/glog/logging.h:508:55: warning: ‘using CustomPrefixCallback = void (*)(std::ostream&, const struct google::LogMessageInfo&, void*)’ is deprecated: Use PrefixFormatterCallback instead. [-Wdeprecated-declarations]
  508 |                   void* prefix_callback_data = nullptr);
      |                                                       ^
/data/gitlab/starrocks/thirdparty/installed/include/glog/logging.h:498:7: note: declared here
  498 | using CustomPrefixCallback
      |       ^~~~~~~~~~~~~~~~~~~~
src/brpc/policy/thrift_protocol.cpp: In function ‘bool brpc::policy::ReadThriftStruct(const butil::IOBuf&, brpc::ThriftMessageBase*, int16_t)’:
src/brpc/policy/thrift_protocol.cpp:136:105: error: no matching function for call to ‘apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TMemoryBuffer>::TBinaryProtocolT(boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>&)’
  136 |     apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TMemoryBuffer> iprot(in_buffer);
      |                                                                                                         ^
In file included from src/brpc/policy/thrift_protocol.cpp:39:
/data/gitlab/starrocks/thirdparty/installed/include/thrift/protocol/TBinaryProtocol.h:52:3: note: candidate: ‘apache::thrift::protocol::TBinaryProtocolT<Transport_, ByteOrder_>::TBinaryProtocolT(std::shared_ptr<_Tp>, int32_t, int32_t, bool, bool) [with Transport_ = apache::thrift::transport::TMemoryBuffer; ByteOrder_ = apache::thrift::protocol::TNetworkBigEndian; int32_t = int]’
   52 |   TBinaryProtocolT(std::shared_ptr<Transport_> trans,
      |   ^~~~~~~~~~~~~~~~

I miss something else?

@kevincai
Copy link
Contributor

if you are trying to build the thirdparty from ground, make sure the env is clean without pre-installed libraries or utilities, such as system-wide isntalled thrift command or protobuf-c-compile.

@monkeyboy123
Copy link
Author

if you are trying to build the thirdparty from ground, make sure the env is clean without pre-installed libraries or utilities, such as system-wide isntalled thrift command or protobuf-c-compile.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants