dl1ksv / gr-funcube

Provide a gnuradio oot module for the for the funcube and the funcube pro plus dongle, requires gnuradio 3.9 and pybind
GNU General Public License v3.0
5 stars 5 forks source link

Tests fail with gcc-12 #7

Closed sbrun closed 1 year ago

sbrun commented 2 years ago

Hello,

During a rebuild with gcc-12 on Debian, we notice that some tests failed

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/python/qa_fcdpp.py", line 18, in <module>
    from funcube_python import fcdpp
ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"

5: Traceback (most recent call last):
5:   File "/<<PKGBUILDDIR>>/python/qa_fcd_control.py", line 12, in <module>
5:     from funcube_python import fcd_control
5: ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"
5: 
5: During handling of the above exception, another exception occurred:
5: 
5: Traceback (most recent call last):
5:   File "/<<PKGBUILDDIR>>/python/qa_fcd_control.py", line 18, in <module>
5:     from funcube_python import fcd_control
5: ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"
7: Traceback (most recent call last):
7:   File "/<<PKGBUILDDIR>>/python/qa_fcdpp_control.py", line 12, in <module>
7:     from funcube_python import fcdpp_control
7: ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"
7: 
7: During handling of the above exception, another exception occurred:
7: 
7: Traceback (most recent call last):
7:   File "/<<PKGBUILDDIR>>/python/qa_fcdpp_control.py", line 18, in <module>
7:     from funcube_python import fcdpp_control
7: ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"
7/8 Test #5: qa_fcd_control ...................***Failed    0.24 sec
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/python/qa_fcd_control.py", line 12, in <module>
    from funcube_python import fcd_control
ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/python/qa_fcd_control.py", line 18, in <module>
    from funcube_python import fcd_control
ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"

8/8 Test #7: qa_fcdpp_control .................***Failed    0.26 sec
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/python/qa_fcdpp_control.py", line 12, in <module>
    from funcube_python import fcdpp_control
ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/python/qa_fcdpp_control.py", line 18, in <module>
    from funcube_python import fcdpp_control
ImportError: generic_type: type "fcd_control" referenced unknown base type "gr::block"

50% tests passed, 4 tests failed out of 8

Total Test time (real) =   0.27 sec

The following tests FAILED:
      5 - qa_fcd_control (Failed)
      6 - qa_fcd (Failed)
      7 - qa_fcdpp_control (Failed)
      8 - qa_fcdpp (Failed)
Errors while running CTest

The build was made on version 1.0.0 but I also reproduce the issue with the latest version of gr-funcube.

Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012940

dl1ksv commented 2 years ago

You should use gnuradio with patch

Otherwise GrPython.make will give wrong results under some circumstances. And you should use either the latest gr-funcube or the maint-3.10 branch. I tested on F36 with gcc-12 and it works fine.

df7cb commented 2 years ago

@dl1ksv, could you tag a new release with the fixes? Debian really likes to build packages from tarballs.

Thanks!

dl1ksv commented 2 years ago

@df7cb Is v3.10.0.rc2 ok?

df7cb commented 2 years ago

Perfect, thanks!