Skip to content

[VL] Build Gluten on Mac issue #9577

@wangyum

Description

@wangyum

Problem description

Error message.

  1. cmake_minimum_required issue.
CMake Error at _build/_deps/googletest-src/CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier.</max></min></max></min></min>

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
  1. -Wno-deprecated-declarations -Wno-inconsistent-missing-override -Wno-macro-redefined -UUNLIKELY issue.
In file included from /usr/local/include/thrift/TApplicationException.h:23:
/usr/local/include/thrift/Thrift.h:54:19: error: 'iterator<std::forward_iterator_tag, std::pair<int, const char *>>' is deprecated [-Werror,-Wdeprecated-declarations]
   54 |     : public std::iterator<std::forward_iterator_tag, std::pair<int, const char*> > {
      |                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator.h:23:29: note: 'iterator<std::forward_iterator_tag, std::pair<int, const char *>>' has been explicitly marked deprecated here
   23 | struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 iterator {
      |                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1022:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
 1022 | #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
      |                                         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  995 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
      |                                                 ^
In file included from /Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:27:
/usr/local/include/thrift/protocol/TCompactProtocol.h:143:7: error: 'getMinSerializedSize' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  143 |   int getMinSerializedSize(TType type);
      |       ^
/usr/local/include/thrift/protocol/TCompactProtocol.h:266:18: note: in instantiation of template class 'apache::thrift::protocol::TCompactProtocolT<apache::thrift::transport::TTransport>' requested here
  266 |       prot = new TCompactProtocol(trans, string_limit_, container_limit_);
      |                  ^
/usr/local/include/thrift/protocol/TProtocol.h:547:15: note: overridden virtual function is here
  547 |   virtual int getMinSerializedSize(TType type) {
      |               ^
In file included from /Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:27:
/usr/local/include/thrift/protocol/TCompactProtocol.h:145:8: error: 'checkReadBytesAvailable' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  145 |   void checkReadBytesAvailable(TSet& set)
      |        ^
/usr/local/include/thrift/protocol/TProtocol.h:558:16: note: overridden virtual function is here
  558 |   virtual void checkReadBytesAvailable(TSet& set)
      |                ^
In file included from /Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:27:
/usr/local/include/thrift/protocol/TCompactProtocol.h:150:8: error: 'checkReadBytesAvailable' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  150 |   void checkReadBytesAvailable(TList& list)
      |        ^
/usr/local/include/thrift/protocol/TProtocol.h:563:16: note: overridden virtual function is here
  563 |   virtual void checkReadBytesAvailable(TList& list)
      |                ^
In file included from /Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:27:
/usr/local/include/thrift/protocol/TCompactProtocol.h:155:8: error: 'checkReadBytesAvailable' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  155 |   void checkReadBytesAvailable(TMap& map)
      |        ^
/usr/local/include/thrift/protocol/TProtocol.h:568:16: note: overridden virtual function is here
  568 |   virtual void checkReadBytesAvailable(TMap& map)
      |                ^
In file included from /Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:27:
/usr/local/include/thrift/protocol/TCompactProtocol.h:143:7: error: 'getMinSerializedSize' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  143 |   int getMinSerializedSize(TType type);
      |       ^
/Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:98:72: note: in instantiation of template class 'apache::thrift::protocol::TCompactProtocolT<facebook::velox::parquet::thrift::ThriftTransport>' requested here
   98 |   apache::thrift::protocol::TCompactProtocolT<thrift::ThriftTransport> protocol(
      |                                                                        ^
/usr/local/include/thrift/protocol/TProtocol.h:547:15: note: overridden virtual function is here
  547 |   virtual int getMinSerializedSize(TType type) {
      |               ^
In file included from /Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:27:
/usr/local/include/thrift/protocol/TCompactProtocol.h:145:8: error: 'checkReadBytesAvailable' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  145 |   void checkReadBytesAvailable(TSet& set)
      |        ^
/usr/local/include/thrift/protocol/TProtocol.h:558:16: note: overridden virtual function is here
  558 |   virtual void checkReadBytesAvailable(TSet& set)
      |                ^
In file included from /Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:27:
/usr/local/include/thrift/protocol/TCompactProtocol.h:150:8: error: 'checkReadBytesAvailable' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  150 |   void checkReadBytesAvailable(TList& list)
      |        ^
/usr/local/include/thrift/protocol/TProtocol.h:563:16: note: overridden virtual function is here
  563 |   virtual void checkReadBytesAvailable(TList& list)
      |                ^
In file included from /Users/yumwang/work/gluten-bhl/ep/build-velox/build/velox_ep/velox/dwio/parquet/reader/PageReader.cpp:27:
/usr/local/include/thrift/protocol/TCompactProtocol.h:155:8: error: 'checkReadBytesAvailable' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  155 |   void checkReadBytesAvailable(TMap& map)
      |        ^
/usr/local/include/thrift/protocol/TProtocol.h:568:16: note: overridden virtual function is here
  568 |   virtual void checkReadBytesAvailable(TMap& map)
      |                ^
9 errors generated.

System information

 % dev/info.sh    
dev/info.sh: line 47: lscpu: command not found

Gluten Version: 1.5.0-SNAPSHOT
Commit: 88dbb0eb8837aad9d380269bc37d9f0fb26b57b0
CMake Version: 4.0.1
System: Darwin-24.3.0
Arch: arm64
CPU Name: 
C++ Compiler: /usr/bin/c++
C++ Compiler Version: 16.0.0.16000026
C Compiler: /usr/bin/cc
C Compiler Version: 16.0.0.16000026
CMake Prefix Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr;/opt/homebrew;/usr/local;/usr;/;/opt/homebrew;/usr/local;/usr/X11R6;/usr/pkg;/opt;/sw;/opt/local

CMake log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions