velox: Can not compile on MacBook with Intel CPU

I followed the getting started operations step by step, I executed ./scripts/setup-macos.sh successfully, but when I executed the make command to compile this project I got the following errors:

velox/third_party/googletest/googlemock/include/gmock/gmock-matchers.h:3165:49: error: use of undeclared identifier ‘IndexSequenceFor’

new FieldsAreMatcherImpl<const Struct&, IndexSequenceFor<Inner…>>(

image

I do not know what’s wrong, who can give me help?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

Can you try setting OPEN_SSL_ROOT_DIR to the installation folder for openssl 1.1:

export OPENSSL_ROOT_DIR=$(brew --prefix openssl@1.1)

See how we do it on our MacOS CircleCI build here: https://github.com/facebookincubator/velox/blob/main/.circleci/config.yml#L166

it works well, I compiled it successfully on my home MacBook.

for some compile errors report info, I delete the directory of folly manually and caused another compile problem.

Can you try setting OPEN_SSL_ROOT_DIR to the installation folder for openssl 1.1:

export OPENSSL_ROOT_DIR=$(brew --prefix openssl@1.1)

See how we do it on our MacOS CircleCI build here: https://github.com/facebookincubator/velox/blob/main/.circleci/config.yml#L166

oh! A colleague just pointed me out that on your first screenshot there seems to be a /usr/local/include/gtest on the last line. Do you have a different version of google test installed as a system local dependency?

hi @zuochunwei, could you please post the whole stack trace as text instead of a screenshot? It will help us be able to copy&paste to investigate. Thanks.