-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix arrow install with custom INSTALL_PREFIX #11052
Fix arrow install with custom INSTALL_PREFIX #11052
Conversation
✅ Deploy Preview for meta-velox canceled.
|
@majetideepak FYI |
@czentgr I see that thrift needs boost only for testing. https://thrift.apache.org/lib/cpp.html |
@majetideepak ^^ please see. |
Yes, we can turn them off. However, they are explicitly turned on in the install function, e.g. velox/scripts/setup-centos9.sh Line 194 in 4e45bc5
We can turn it off and see what happens. We don't use the tests but maybe someone else is relying on them to be present? EDIT: the thrift tests. They come in from the thrift bundling. Checking. |
Can we turn off the Thrift tests? |
While it says BOOST is needed for thrift tests only, in the arrow expernal projects the BUILD_TESTING flag is turned off by default. We can see this being passed to the thrift configure
The issue is that this line comes before checking the BUILD_TESTING value in the thrift CMakeLists.txt
but the error occurs due to
In summary, the documentation is not quite correct. Boost is required regardless of whether or not testing is enabled. Or when it says boost is only used for testing, it doesn't mean that |
e163a98
to
7f84d4e
Compare
If the recently added INSTALL_PREFIX does not point to /usr/local in Linux then the bundled Thrift installation from the Arrow dependency fails because it cannot locate Boost. Boost was previously installed into the INSTALL_PREFIX but the Thrift CMake in Arrow does not pass on any PREFIX_PATH settings to Thrift. The PREFIX_PATH is set to the INSTALL_PREFIX and works with Arrow itself just fine. The error would be Could NOT find Boost (missing: Boost_INCLUDE_DIR) (Required is at least version "1.56") Co-authored-by: Majeti Deepak <[email protected]>
7f84d4e
to
13b9727
Compare
@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@xiaoxmeng merged this pull request in 63c848d. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
If the recently added INSTALL_PREFIX does not point to /usr/local in Linux then the bundled Thrift installation from the Arrow dependency fails because it cannot locate Boost.
Boost was previously installed into the INSTALL_PREFIX but the Thrift CMake in Arrow does not pass on any PREFIX_PATH settings to Thrift. The PREFIX_PATH is set to the INSTALL_PREFIX and works with Arrow itself just fine.
The error would be
Could NOT find Boost (missing: Boost_INCLUDE_DIR) (Required is at least
version "1.56")