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

ARROW-7170: [C++] Fix linking with bundled ORC #5834

Closed
wants to merge 1 commit into from

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Nov 14, 2019

Note I still get an error later:

[libprotobuf ERROR google/protobuf/descriptor_database.cc:120] File already exists in database: orc_proto.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1359] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
Abandon

@github-actions
Copy link

GTest::GTest
Snappy::snappy
LZ4::lz4
ZLIB::ZLIB)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need ARROW_WITH_XXX check?

For example:

if(ARROW_WITH_LZ4)
  list(APPEND ORC_MIN_TEST_LIBS LZ4::lz4)
endif()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I don't think so? LZ4 is not optional when building ORC, AFAICT.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we have this in cpp/CMakeLists.txt:

if(ARROW_ORC)
  set(ARROW_WITH_LZ4 ON)
  set(ARROW_WITH_SNAPPY ON)
  set(ARROW_WITH_ZLIB ON)
endif()

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I understand.

Note I still get an error later:
```
[libprotobuf ERROR google/protobuf/descriptor_database.cc:120] File already exists in database: orc_proto.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1359] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
Abandon
```
@pitrou
Copy link
Member Author

pitrou commented Nov 19, 2019

Rebased.

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

GTest::GTest
Snappy::snappy
LZ4::lz4
ZLIB::ZLIB)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I understand.

@pitrou pitrou closed this in fb29a2f Nov 19, 2019
@pitrou pitrou deleted the ARROW-7170-orc-link-failure branch November 19, 2019 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants