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

Compilation error: Python bindings for Hsync.h are out of sync #24

Open
EltonBR opened this issue Jan 18, 2023 · 10 comments
Open

Compilation error: Python bindings for Hsync.h are out of sync #24

EltonBR opened this issue Jan 18, 2023 · 10 comments

Comments

@EltonBR
Copy link

EltonBR commented Jan 18, 2023

Hello, i trying compile gr-tempest on xubuntu 22.04

cmake ..
-- Build type not specified: defaulting to release.
-- Using GMP.
-- User set python executable /usr/bin/python3
-- Extracting version information from git describe...
-- Using install prefix: /usr/local
-- Building for version: 1.0.0.0 / 1.0.0
-- No C++ unit tests... skipping
-- PYTHON and GRC components are enabled
-- Python checking for pygccxml - found
-- Found pybind11: /usr/include (found version "2.9.1")
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrPybind.cmake:221 (message):
Python bindings for Hsync.h are out of sync
Call Stack (most recent call first):
python/tempest/bindings/CMakeLists.txt:42 (GR_PYBIND_MAKE_OOT)

-- Configuring incomplete, errors occurred!
See also "/home/elton/softwares-linux/gr-tempest/build/CMakeFiles/CMakeOutput.log".

I have GNU Radio companion 3.10.1.1 (Python 3.10.6)

@ckoval7
Copy link

ckoval7 commented Jan 21, 2023

I am having this problem as well. Gnu radio 3.10.1.1 (Python 3.10.6) n Linux Mint 21.

`corey@laptop:~/gr-tempest/build$ cmake ..
-- The CXX compiler identification is GNU 11.3.0
-- The C compiler identification is GNU 11.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'gmp'
-- Found gmp, version 6.2.1
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Using GMP.
-- Found MPLIB: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.74.0") found components: date_time program_options system regex thread unit_test_framework
-- Found Volk: Volk::volk
-- User set python executable /usr/bin/python3
-- Found PythonInterp: /usr/bin/python3 (found version "3.10.6")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found suitable exact version "3.10.6")
-- Checking for module 'sndfile'
-- Found sndfile, version 1.0.31
-- Found SNDFILE: /usr/lib/x86_64-linux-gnu/libsndfile.so
-- Checking for module 'fftw3f >= 3.0'
-- Found fftw3f , version 3.3.8
-- Found FFTW3f: /usr/lib/x86_64-linux-gnu/libfftw3f.so
-- Performing Test HAVE_VISIBILITY_HIDDEN
-- Performing Test HAVE_VISIBILITY_HIDDEN - Success
-- Performing Test HAVE_WARN_SIGN_COMPARE
-- Performing Test HAVE_WARN_SIGN_COMPARE - Success
-- Performing Test HAVE_WARN_ALL
-- Performing Test HAVE_WARN_ALL - Success
-- Performing Test HAVE_WARN_NO_UNINITIALIZED
-- Performing Test HAVE_WARN_NO_UNINITIALIZED - Success
-- Found Git: /usr/bin/git
-- Extracting version information from git describe...
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Using install prefix: /usr/local
-- Building for version: 1.0.0.0 / 1.0.0
-- No C++ unit tests... skipping
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- PYTHON and GRC components are enabled
-- Python checking for pygccxml - found
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /usr/include (found version "2.9.1")
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrPybind.cmake:221 (message):
Python bindings for Hsync.h are out of sync
Call Stack (most recent call first):
python/tempest/bindings/CMakeLists.txt:42 (GR_PYBIND_MAKE_OOT)

-- Configuring incomplete, errors occurred!
See also "/home/corey/gr-tempest/build/CMakeFiles/CMakeOutput.log".`

CMakeOutput.log

@sfernandezr
Copy link

Hello!

It looks like your target bindings associated with the Hsync block are out of date. cmake does not update them automatically. You have to rebind it yourself.

Try the command "gr-modtool bind [name of block]" on the main directory of gr-tempest. This command will set up the correct bindings.

Let me know if this helps.

@Jackjiang313
Copy link

Hello!

It looks like your target bindings associated with the Hsync block are out of date. cmake does not update them automatically. You have to rebind it yourself.

Try the command "gr-modtool bind [name of block]" on the main directory of gr-tempest. This command will set up the correct bindings.

Let me know if this helps.

Hi, I am having the same problem. But when I run the command "gr_modtool bind Hsync" on the main directory of gr-tempest, it returns with
"
GNU Radio module name identified: tempest
Unknown -std=c++xx flag used
"
What should I do next ?

@sfernandezr
Copy link

Hello!

Check out this thread: https://www.mail-archive.com/[email protected]/msg75004.html

Here apparently the problem is fixed by updating pygccxml via: python -m pip install --upgrade pygccxml

Hope this helps.

@ruggdoll
Copy link

ruggdoll commented Nov 1, 2023

You want an ugly workaround, here comes an ugly workaround.

From your gr-tempest dir :
#for item in `ls include/gnuradio/tempest/*.h |cut -d "/" -f4 | cut -d "." -f1`; do gr_modtool bind $item ;done

/!\ mind the #

Not my proudest moment.

@pierreay
Copy link

You want an ugly workaround, here comes an ugly workaround.

From your gr-tempest dir : #for item in ls include/gnuradio/tempest/*.h |cut -d "/" -f4 | cut -d "." -f1; do gr_modtool bind $item ;done

/!\ mind the #

Not my proudest moment.

Being "ugly", this is still sufficient for a quick test of the project! That worked. Thanks.

@JYK2001
Copy link

JYK2001 commented Aug 5, 2024

Hello, I still don't know how to go about fixing this error, can someone tell me how to do it,thanks

@clcjess
Copy link

clcjess commented Sep 25, 2024

I'm having the same issue as mentioned by the user above. None of the solutions in this thread have worked for me :'(

@paollacq
Copy link

It took me two full days to figure it out, and here it is:

To resolve binding errors in your code, follow these steps:

  1. Run gr_modtool bind Hsync inside the /gr_tempest directory to generate bindings for the Hsync file.
  2. Navigate to the build directory and run cmake .. to reconfigure the project.
  3. Check the next file that needs binding and use gr_modtool bind for each file sequentially.
  4. Repeat these steps until all necessary bindings are processed manually.

This process ensures all syncs are correctly bound manually .

@git-artes
Copy link
Owner

Wow, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants