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

cannot built 3.1.1 from release tarball #746

Closed
ZeroChaos- opened this issue Jan 30, 2024 · 8 comments
Closed

cannot built 3.1.1 from release tarball #746

ZeroChaos- opened this issue Jan 30, 2024 · 8 comments
Labels

Comments

@ZeroChaos-
Copy link
Contributor

Using the release tarball https://github.com/gnuradio/volk/releases/download/v3.1.1/volk-3.1.1.tar.xz I am unable to build due to missing due to cpu_features being missing.

-- cpu_features package not found. Requiring cpu_features submodule ...
CMake Error at CMakeLists.txt:127 (message):
  cpu_features/CMakeLists.txt not found.  Did you forget to git clone
  recursively?

  Fix with: git submodule update --init

It was suggested that part of cpu_features was moved to a sub module and may have cause this issue:
#737

The tarballs that github automatically generates don't include submodules. I know it's possible to manually generate tarballs to handle things like this, but I don't know how so cannot provide advice on that at this time.

@argilo
Copy link
Member

argilo commented Jan 30, 2024

I think I was too quick to blame #737 since the error pertains to cpu_features, which has been a submodule for quite some time. Were you able to build prior VOLK versions without issue?

@ZeroChaos-
Copy link
Contributor Author

There may be many more ways to solve this issue, but I have two that I can suggest:

1.) Document the dep and tell the user to handle it manually. I don't prefer this solution, but it exists and needs to be considered.
2.) Use github actions to make a tarball and upload it to the release. I have found several more and less complex examples which may be helpful

https://github.com/pytorch/pytorch/blob/main/.github/workflows/create_release.yml
https://github.com/Return-To-The-Roots/s25client/blob/master/.github/workflows/release.yml
https://github.com/pytorch/pytorch/pull/63022/files

@argilo
Copy link
Member

argilo commented Jan 30, 2024

My understanding is that VOLK expects package maintainers to build against their packaged version of cpu_features, while end users building from source can obtain it through the git submodule.

@argilo
Copy link
Member

argilo commented Jan 30, 2024

Hmm, I see that the 3.1.0 tarball had cpu_features but the 3.1.1 tarball does not.

@argilo argilo added the bug label Jan 30, 2024
@argilo
Copy link
Member

argilo commented Jan 30, 2024

#737 looks to be unrelated, as that submodule was included in the tarball.

@argilo
Copy link
Member

argilo commented Jan 30, 2024

As discussed on Matrix, it looks like the cause is that the release script is broken and failed to include the cpu_features submodule in the tarball.

Issue #748 was opened for the release script bug(s).

@jdemel
Copy link
Contributor

jdemel commented Feb 24, 2024

I re-created the release tarballs and uploaded them to the website as well as the github release page. I hope they are correct this time. Thanks for the updated script.

@jdemel
Copy link
Contributor

jdemel commented Feb 29, 2024

Closing this issue now. If the issue persists, feel free to re-open it.

@jdemel jdemel closed this as completed Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants