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-17703: [C++][Gandiva] Fix Gandiva OpenSSL dependency #14109

Merged
merged 2 commits into from
Sep 13, 2022

Conversation

js8544
Copy link
Collaborator

@js8544 js8544 commented Sep 13, 2022

If I build gandiva alone, I get a link error saying OpenSSL related definitions are not found. After some digging, I found out that ARROW_USE_OPENSSL is only turned on if any of the following conditions is met: PARQUET_REQUIRE_ENCRYPTION, ARROW_FLIGHT, ARROW_S3. Adding ARROW_GANDIVA to the list solves this issue.

@js8544 js8544 changed the title ARROW 17703: [C++][Gandiva][Build]Fix Gandiva OpenSSL dependency ARROW-17703: [C++][Gandiva][Build]Fix Gandiva OpenSSL dependency Sep 13, 2022
@github-actions
Copy link

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on JIRA? https://issues.apache.org/jira/browse/ARROW

Opening JIRAs ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename pull request title in the following format?

ARROW-${JIRA_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@js8544 js8544 changed the title ARROW-17703: [C++][Gandiva][Build]Fix Gandiva OpenSSL dependency ARROW-17703: [C++][Gandiva][Build] Fix Gandiva OpenSSL dependency Sep 13, 2022
@github-actions
Copy link

@kou kou changed the title ARROW-17703: [C++][Gandiva][Build] Fix Gandiva OpenSSL dependency ARROW-17703: [C++][Gandiva] Fix Gandiva OpenSSL dependency Sep 13, 2022
@kou
Copy link
Member

kou commented Sep 13, 2022

Could you remove find_package(OpenSSLAlt) in cpp/src/gandiva/CMakeLists.txt?

diff --git a/cpp/src/gandiva/CMakeLists.txt b/cpp/src/gandiva/CMakeLists.txt
index 3794b7a6c4..e69844d99a 100644
--- a/cpp/src/gandiva/CMakeLists.txt
+++ b/cpp/src/gandiva/CMakeLists.txt
@@ -40,8 +40,6 @@ endif()
 
 add_definitions(-DGANDIVA_LLVM_VERSION=${LLVM_VERSION_MAJOR})
 
-find_package(OpenSSLAlt REQUIRED)
-
 # Set the path where the bitcode file generated, see precompiled/CMakeLists.txt
 set(GANDIVA_PRECOMPILED_BC_PATH "${CMAKE_CURRENT_BINARY_DIR}/irhelpers.bc")
 set(GANDIVA_PRECOMPILED_CC_PATH "${CMAKE_CURRENT_BINARY_DIR}/precompiled_bitcode.cc")

@js8544
Copy link
Collaborator Author

js8544 commented Sep 13, 2022

Could you remove find_package(OpenSSLAlt) in cpp/src/gandiva/CMakeLists.txt?

diff --git a/cpp/src/gandiva/CMakeLists.txt b/cpp/src/gandiva/CMakeLists.txt
index 3794b7a6c4..e69844d99a 100644
--- a/cpp/src/gandiva/CMakeLists.txt
+++ b/cpp/src/gandiva/CMakeLists.txt
@@ -40,8 +40,6 @@ endif()
 
 add_definitions(-DGANDIVA_LLVM_VERSION=${LLVM_VERSION_MAJOR})
 
-find_package(OpenSSLAlt REQUIRED)
-
 # Set the path where the bitcode file generated, see precompiled/CMakeLists.txt
 set(GANDIVA_PRECOMPILED_BC_PATH "${CMAKE_CURRENT_BINARY_DIR}/irhelpers.bc")
 set(GANDIVA_PRECOMPILED_CC_PATH "${CMAKE_CURRENT_BINARY_DIR}/precompiled_bitcode.cc")

done

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

@kou kou merged commit 7c7fbcf into apache:master Sep 13, 2022
@ursabot
Copy link

ursabot commented Sep 14, 2022

Benchmark runs are scheduled for baseline = 01dce6a and contender = 7c7fbcf. 7c7fbcf is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Failed ⬇️0.48% ⬆️0.0%] test-mac-arm
[Failed ⬇️0.56% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.53% ⬆️0.04%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 7c7fbcfa ec2-t3-xlarge-us-east-2
[Failed] 7c7fbcfa test-mac-arm
[Failed] 7c7fbcfa ursa-i9-9960x
[Finished] 7c7fbcfa ursa-thinkcentre-m75q
[Finished] 01dce6a0 ec2-t3-xlarge-us-east-2
[Finished] 01dce6a0 test-mac-arm
[Failed] 01dce6a0 ursa-i9-9960x
[Finished] 01dce6a0 ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

zagto pushed a commit to zagto/arrow that referenced this pull request Oct 7, 2022
)

If I build gandiva alone, I get a link error saying OpenSSL related definitions are not found. After some digging, I found out that `ARROW_USE_OPENSSL` is only turned on if any of the following conditions is met: `PARQUET_REQUIRE_ENCRYPTION`, `ARROW_FLIGHT`, `ARROW_S3`. Adding `ARROW_GANDIVA` to the list solves this issue.

Authored-by: Jin Shang <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
@js8544 js8544 deleted the jinshang/gandiva/fix_build branch October 11, 2022 08:42
fatemehp pushed a commit to fatemehp/arrow that referenced this pull request Oct 17, 2022
)

If I build gandiva alone, I get a link error saying OpenSSL related definitions are not found. After some digging, I found out that `ARROW_USE_OPENSSL` is only turned on if any of the following conditions is met: `PARQUET_REQUIRE_ENCRYPTION`, `ARROW_FLIGHT`, `ARROW_S3`. Adding `ARROW_GANDIVA` to the list solves this issue.

Authored-by: Jin Shang <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants