-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[C++] Build failure due to orc_ep
in IDE
#41331
Comments
I'll explain details tomorrow but here are workarounds:
Cc: @wgtmac |
@kou You are awesome. I've spent a lot of time trying to solve the problem. 🫠 |
Sure, it is my preset.
|
Oh, I recall that I also ran into similar issue when I upgraded the libprotobuf in Homebrew which has bundled absl. |
The reason why this is happen: The case that we use bundled Protobuf: We want ORC to use the same bundled Protobuf. But ORC tried system Protobuf before But I don't know why cat $(brew --prefix)/lib/cmake/protobuf/protobuf-config.cmake
# User options
include("${CMAKE_CURRENT_LIST_DIR}/protobuf-options.cmake")
# Depend packages
if(NOT ZLIB_FOUND)
find_package(ZLIB)
endif()
if(NOT TARGET absl::strings)
find_package(absl CONFIG)
endif()
if(NOT TARGET utf8_range)
find_package(utf8_range CONFIG)
endif()
# Imported targets
include("${CMAKE_CURRENT_LIST_DIR}/protobuf-targets.cmake")
# protobuf-generate function
include("${CMAKE_CURRENT_LIST_DIR}/protobuf-generate.cmake")
# CMake FindProtobuf module compatible file
if(protobuf_MODULE_COMPATIBLE)
include("${CMAKE_CURRENT_LIST_DIR}/protobuf-module.cmake")
endif() |
It seems that this can be fixed by not searching system config if
When I ran into a similar but different issue, I found my Homebrew has installed a higher version of absl than the bundled protobuf and errors are reported for symbols not found. |
ORC may want to support all of (1) "find a dependency by conan", (2) "find a dependency by CMake package" and (3) "find a dependency by user input parameters". (1) and (2) are already supported but (3) is missing. (FYI: Arrow supports all of them.)
Wow. How did you solve it? |
Actually (3) is supported but it seems to be broken by https://github.com/apache/orc/pull/1529/files
I added |
Oh, I see. You're right.
Thanks. Your case was for Arrow. I thought your case was for ORC too. |
FYI, Apache ORC is having a hard time to upgrade Protobuf due to libhdfspp: apache/orc#1857. |
Describe the bug, including details regarding any error messages, version, and platform.
Since the addition of the PR, the following error occurs in IDE(e.g., CLion):
I verified the git commit while checking it out.
error message
orc_ep-configure-*.log
I have no issues building from the terminal, but the environment within the IDE breaks, making it inconvenient for me to personally review the code.
The build succeeds when I execute it excluding the contents of that commit.
Component(s)
C++
The text was updated successfully, but these errors were encountered: