-
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
Improve dependency install and build #10920
Conversation
✅ Deploy Preview for meta-velox canceled.
|
949f30d
to
2609922
Compare
3bb77cf
to
c1e5220
Compare
scripts/setup-adapters.sh
Outdated
@@ -144,7 +144,8 @@ function install_hdfs_deps { | |||
wget_and_untar https://archive.apache.org/dist/hadoop/common/hadoop-2.10.1/hadoop-2.10.1.tar.gz hadoop | |||
cp -a hadoop /usr/local/ | |||
fi | |||
cmake_install $libhdfs3_dir | |||
cd $libhdfs3_dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't leave this dir and it is not in () would we not be in the wrong dir at the end of the function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Good catch!
0f4d6d0
to
929314b
Compare
Summary: Brew fmt11 is not supported. ccache brings in fmt11 from brew. The brew fmt11 headers are taking precedence over bundled headers. Bundle fmt and download prebuilt ccache that is statically linked. We will fix the header include issue in #10920 and add ccache back. Resolves #10936 Pull Request resolved: #10933 Reviewed By: amitkdutta Differential Revision: D62256989 Pulled By: kgpai fbshipit-source-id: 84aa17af17d564f291c416b479493bd9e5ea0715
afc86a5
to
361e318
Compare
if [ -d "${BINARY_DIR}" ] && prompt "Do you want to rebuild ${NAME}?"; then | ||
${SUDO} rm -rf "${BINARY_DIR}" | ||
if [ -d "${BINARY_DIR}" ]; then | ||
if prompt "Do you want to rebuild ${NAME}?"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you are updating cmake_install
, please fix ${NAME}
per #10908, and then I will close my PR. Thanks!
Sth like
local DIR="${DEPENDENCY_DIR}/$1"
local NAME=${basename "${DIR}"}
pushd "${DIR}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My PR fixes this by moving pushd $DIR
above NAME.
Your change is not needed.
README.md
Outdated
$ export DEPENDENCY_DIR=/path/to/your/dependencies | ||
``` | ||
location to download and build packages. This defaults to `deps-download` in the current | ||
working directory. Use `INSTALL_PREFIX` to set the install directory of the packages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: could we start INSTALL_PREFIX
env in a new paragraph for clarity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
361e318
to
f2c6be4
Compare
3aeea9c
to
9ee3202
Compare
9ee3202
to
50f9065
Compare
@Yuhta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
https://github.com/facebookincubator/velox/pull/10422/files added additional packages to be installed via brew.
When the package versions are updated via brew, it can cause a build failure.
See #10886
We must install or bundle fixed/supported versions to avoid this.
Allow installed package headers to be picked up before brew/system package headers
Add support for DEPENDENCY_DIR and INSTALL_PREFIX.