Skip to content

Persistent failure in build_mac/build_thirdparty.sh due to protobuf library conflict #64778

@sduzh

Description

@sduzh

After fixed #64775 and #64777, I still cannot successfully execute build_mac/build_thirdparty.sh. The new error appears to be caused by a protobuf library conflict.
Relevant error logs:

In file included from /Users/sduzh/code/starrocks/thirdparty/build/brpc/brpc-1.9.0/build/brpc/span.pb.h:23:
/opt/homebrew/include/google/protobuf/generated_message_tctable_decl.h:134:27: error: unknown type name 'PROTOBUF_CC'
  2134 | us warningis and 20 errors generated.
ng TailCallParseFunc = PROTOBUF_CC const char* (*)(PROTOBUF_TC_PARAM_DECL);
      |                           ^
make[2]: *** [CMakeFiles/PROTO_LIB.dir/brpc/get_favicon.pb.cc.o] Error 1
/opt/homebrew/include/google/protobuf/generated_message_tctable_decl.h:134:55: error: unknown type name 'PROTOBUF_TC_PARAM_DECL'
  134 | using TailCallParseFunc = PROTOBUF_CC const char* (*)(PROTOBUF_TC_PARAM_DECL);
      |                                                       ^
/opt/homebrew/include/google/protobuf/generated_message_tctable_decl.h:240:7: error: use of undeclared identifier 'Unreachable'
  240 |       Unreachable();
      |       ^~~~~~~~~~~
/opt/homebrew/include/google/protobuf/generated_message_tctable_decl.h:280:9: error: unknown type name 'ClassData'
...

Given this error, I have stopped attempting to continue compiling StarRocks on macOS for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/buildReport failed StarRocks build from main

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions