velox
velox copied to clipboard
Add gcc11 to Ubuntu20.04 setup and add PkgConfig install
Modernize the compiler used on Ubuntu 20.04. Once Velox moves to using the C++20 standard the system gcc9 compiler cannot be used anymore.
In addition, recent upgrades added the usage of PkgConfig which was not installed into the system and is not by default pre-installed into ubuntu 20.04.
Resolves: https://github.com/facebookincubator/velox/issues/10953
Deploy Preview for meta-velox canceled.
| Name | Link |
|---|---|
| Latest commit | 9de06d2afc2b11903deacc8f7e32ed243466c0c7 |
| Latest deploy log | https://app.netlify.com/sites/meta-velox/deploys/672a77365f375400087bffa4 |
@PHILO-HE FYI.
@czentgr, the recently upgraded folly requires GCC >= 10. Otherwise, the below compile error will be reported. So we should land this pr now to avoid this error, right?
/velox/deps-download/folly/folly/Portability.h:38:24: error: static assertion failed: __GNUC__ >= 10
38 | static_assert(__GNUC__ >= 10, "__GNUC__ >= 10");
@PHILO-HE Yes, basically, Ubuntu 20.04 is currently broken without these changes - the user would do all of this manually.
We already state Velox requires a compiler at the minimum GCC 11.0 or Clang 15.0. in the README.
@majetideepak @assignUser Please take a look.
The pr looks good to me. Thanks!
@xiaoxmeng, if no comment, could you merge this pr? I just found this pr is also required for ubuntu 22.04 to fix missing pkg-config.
@mbasmanova has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@czentgr Would you rebase to allow merging?
@mbasmanova I rebased. Please take another look.
@mbasmanova has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@mbasmanova merged this pull request in facebookincubator/velox@bfc199fc65ced0a4bf7644ea5314e6ec5fa69eea.
Conbench analyzed the 1 benchmark run on commit bfc199fc.
There were no benchmark performance regressions. 🎉
The full Conbench report has more details.