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

[staging-next] Build failure: gnuradio (due to Numpy 2) #365721

Open
FliegendeWurst opened this issue Dec 16, 2024 · 1 comment
Open

[staging-next] Build failure: gnuradio (due to Numpy 2) #365721

FliegendeWurst opened this issue Dec 16, 2024 · 1 comment
Labels
0.kind: build failure A package fails to build

Comments

@FliegendeWurst
Copy link
Member

Steps To Reproduce

  1. build gnuradio on staging-next

Build log

Build Log
178/267 Test #192: qa_correlate_access_code_XX_ts ...............***Failed    0.34 sec
......E
======================================================================
ERROR: test_payload_lengths (__main__.test_correlate_access_code_XX_ts.test_payload_lengths)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/source/gr-digital/python/digital/qa_correlate_access_code_XX_ts.py", line 104, in test_payload_lengths
    self._variable_payload_t(length)
  File "/build/source/gr-digital/python/digital/qa_correlate_access_code_XX_ts.py", line 77, in _variable_payload_t
    self.assertEqual(header[0] * 256 + header[1], header[2] * 256 + header[3])
                     ~~~~~~~~~~^~~~~
OverflowError: Python integer 256 out of bounds for uint8

----------------------------------------------------------------------
Ran 7 tests in 0.051s

FAILED (errors=1)

Additional context

Seems related to https://numpy.org/neps/nep-0050-scalar-promotion.html

Metadata

Notify maintainers

@doronbehar @bjornfor @fpletz @jiegec


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@FliegendeWurst FliegendeWurst added the 0.kind: build failure A package fails to build label Dec 16, 2024
@doronbehar
Copy link
Contributor

Thanks for opening the issue and thanks for working on the staging-next merge! PR is at:

I tested that patch on Nix's community builders and:

  • On aarch64-darwin I encountered a build error with pycairo - shouldn't
  • On x86_64-linux it fixed the issue.

Please merge it unless you want to fix also the Darwin issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

2 participants