gr-tempest icon indicating copy to clipboard operation
gr-tempest copied to clipboard

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

Open EltonBR opened this issue 2 years ago • 10 comments

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)

EltonBR avatar Jan 18 '23 10:01 EltonBR

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

ckoval7 avatar Jan 21 '23 22:01 ckoval7

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.

sfernandezr avatar Feb 04 '23 16:02 sfernandezr

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 ?

Jackjiang313 avatar Mar 10 '23 09:03 Jackjiang313

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.

sfernandezr avatar Mar 14 '23 16:03 sfernandezr

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.

ruggdoll avatar Nov 01 '23 12:11 ruggdoll

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.

pierreay avatar Jul 22 '24 10:07 pierreay

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

JYK2001 avatar Aug 05 '24 02:08 JYK2001

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

clcjess avatar Sep 25 '24 13:09 clcjess

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 .

paollacq avatar Sep 26 '24 03:09 paollacq

Wow, thanks!

git-artes avatar Sep 26 '24 11:09 git-artes

Should be solved now in the newest version in the repo.

git-artes avatar Feb 19 '25 19:02 git-artes