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

Fix fast_float installation problems #11056

Closed
wants to merge 2 commits into from

Conversation

yingsu00
Copy link
Collaborator

#11018 added install_fast_float, but didn't specify the version by default. The setup failed to download the package with the "tar: Error opening archive: Unrecognized archive format" error. Also the fast_float.cmake introduced by this PR had the wrong VELOX_FAST_FLOAT_SOURCE_URL. It is missing "refs/tags/".

This PR fixes these two problems.

Fixes #11055

default. The setup-macos.sh failed to download the package. We noticed
that the FAST_FLOAT_VERSION variable, unlike in setup-ubuntu.sh and
setup-centos.sh, was not set in setup-macos.sh. This commit fixes this
issue by adding this variable.
"refs/tags/". This commit fixes this bug.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 21, 2024
Copy link

netlify bot commented Sep 21, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit b78bb3a
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66ee3efcf9f6d700088fc3a3

@@ -17,7 +17,7 @@ set(VELOX_FAST_FLOAT_VERSION 6.1.6)
set(VELOX_FAST_FLOAT_BUILD_SHA256_CHECKSUM
4458aae4b0eb55717968edda42987cabf5f7fc737aee8fede87a70035dba9ab0)
set(VELOX_FAST_FLOAT_SOURCE_URL
"https://github.com/fastfloat/fast_float/archive/v${VELOX_FAST_FLOAT_VERSION}.tar.gz"
"https://github.com/fastfloat/fast_float/archive/refs/tags/v${VELOX_FAST_FLOAT_VERSION}.tar.gz"
Copy link
Collaborator

@majetideepak majetideepak Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yingsu00 the original url seems valid. Can you check?
I see that Macos CI is passing as well.

Copy link
Collaborator

@czentgr czentgr Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL with refs/tags/ would work too but the current one should too. I had removed the path to match the other URLs that are similar.

I had tested the bundling which would download from the URL as well and that worked fine.
The URL is https://github.com/fastfloat/fast_float/archive/v6.1.6.tar.gz

Copy link
Contributor

@zuyu zuyu Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we should revert the cmake changes as original, while remove refs/tags/ in the setup script so be consistent. I prefer shorter URLs as possible.

wget_and_untar https://github.com/fastfloat/fast_float/archive/refs/tags/${FAST_FLOAT_VERSION}.tar.gz fast_float

The setup scripts is not that consistent about the url though among other package download URLs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did check. The url without refs/tags/ returns 404

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works today. When i tried it on Friday it didn't work

@@ -43,6 +43,7 @@ MACOS_VELOX_DEPS="bison flex gflags glog googletest icu4c libevent libsodium lz4
MACOS_BUILD_DEPS="ninja cmake"
FB_OS_VERSION="v2024.09.16.00"
FMT_VERSION="10.1.1"
FAST_FLOAT_VERSION="v6.1.6"
Copy link
Collaborator

@czentgr czentgr Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local quick workaround is to install it through brew or use folly bundling - or add this manually. How did I miss this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I don't get was why the CI for MacOS succeeded before. Could it be the FAST_FLOAT_VERSION variable was set in Linux and somehow the value remains?

@majetideepak majetideepak added the ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall label Sep 23, 2024
@facebook-github-bot
Copy link
Contributor

@Yuhta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@Yuhta merged this pull request in 0dd3a5d.

majetideepak added a commit to majetideepak/velox that referenced this pull request Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setup-macos.sh failed installing fast_float
5 participants