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

Switched to gnuradio-3.9 #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

yarda
Copy link

@yarda yarda commented Feb 8, 2021

This is untested and absolutely without any warranty. I have just followed https://wiki.gnuradio.org/index.php/GNU_Radio_3.9_OOT_Module_Porting_Guide
It was successfully compiled on Fedora Rawhide.

Fixes #111

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
@bistromath
Copy link
Owner

bistromath commented Feb 9, 2021 via email

@bistromath
Copy link
Owner

bistromath commented Feb 11, 2021 via email

@bistromath
Copy link
Owner

bistromath commented Feb 11, 2021 via email

@yarda
Copy link
Author

yarda commented Feb 11, 2021

I am getting the following error when trying to compile the gr3.9 branch:

CMake Error at python/bindings/CMakeLists.txt:41 (install):
  install TARGETS given target "air_modes_python" which does not exist.

@bistromath
Copy link
Owner

bistromath commented Feb 11, 2021 via email

@yarda
Copy link
Author

yarda commented Feb 11, 2021

Complete build log (I am building master branch patched by diff made form the gr3.9 branch):

Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1613001600
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.X7RPrl
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e
+ /usr/bin/gzip -dc /builddir/build/SOURCES/gr-air-modes-20200807git9e2515a5.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /builddir/build/SOURCES/gr-air-modes-0-gnuradio-3.9.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.IqcuJK
+ umask 022
+ cd /builddir/build/BUILD
+ cd gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ /usr/bin/cmake -S . -B x86_64-redhat-linux-gnu -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_DOXYGEN=on
-- The CXX compiler identification is GNU 11.0.0
-- The C compiler identification is GNU 11.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - 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/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found PythonInterp: /usr/bin/python3.9 (found version "3.9.1") 
-- Found PythonLibs: /usr/lib64/libpython3.9.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /usr/include (found version "2.6.2" )
-- Found LOG4CPP: /usr/lib64/liblog4cpp.so
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:67 (find_package_handle_standard_args)
  /usr/lib64/cmake/gnuradio/FindGMP.cmake:2 (include)
  /usr/lib64/cmake/gnuradio/FindMPLIB.cmake:1 (find_package)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake:14 (find_dependency)
  CMakeLists.txt:97 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") 
-- Checking for module 'gmp'
--   Found gmp, version 6.2.0
-- Found GMP: /usr/lib64/libgmpxx.so  
-- Checking for module 'mpir >= 3.0'
--   Package 'mpir', required by 'virtual:world', not found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) 
-- Found MPLIB: /usr/lib64/libgmpxx.so  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Boost: /usr/include (found suitable version "1.75.0", minimum required is "1.75.0") found components: date_time program_options filesystem system regex thread unit_test_framework chrono atomic 
-- Found Volk: Volk::volk  
-- User set python executable /usr/bin/python3
-- Found PythonInterp: /usr/bin/python3 (found version "3.9.1") 
-- Could NOT find PythonLibs (missing: PYTHON_INCLUDE_DIRS) (Required is exact version "3.9")
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
-- Using install prefix: /usr
-- Building for version: v1.0-compat-xxx-xunknown / 1.0.0git
-- Python checking for pygccxml - not found
CMake Error: File /builddir/build/BUILD/gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e/docs/doxygen/pydoc_macros.h does not exist.
CMake Error at /usr/lib64/cmake/gnuradio/GrPybind.cmake:241 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  python/bindings/CMakeLists.txt:36 (GR_PYBIND_MAKE_OOT)


CMake Warning at res/CMakeLists.txt:28 (find_package):
  By not providing "FindPyQt4.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "PyQt4", but
  CMake did not find one.

  Could not find a package configuration file provided by "PyQt4" with any of
  the following names:

    PyQt4Config.cmake
    pyqt4-config.cmake

  Add the installation prefix of "PyQt4" to CMAKE_PREFIX_PATH or set
  "PyQt4_DIR" to a directory containing one of the above files.  If "PyQt4"
  provides a separate development package or SDK, be sure it has been
  installed.


-- PyQt4 not found, not installing GUI application
-- Configuring incomplete, errors occurred!
See also "/builddir/build/BUILD/gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e/x86_64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log".
See also "/builddir/build/BUILD/gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e/x86_64-redhat-linux-gnu/CMakeFiles/CMakeError.log".
error: Bad exit status from /var/tmp/rpm-tmp.IqcuJK (%build)
    Bad exit status from /var/tmp/rpm-tmp.IqcuJK (%build)

It seems Fedora python3-PyQt4-devel package doesn't have the cmake files. I will investigate this later.

@yarda
Copy link
Author

yarda commented Feb 11, 2021

Sorry the above cmake log is wrong, will provide the right one.

@yarda
Copy link
Author

yarda commented Feb 11, 2021

Build log:

Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1612915200
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LVDb8u
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e
+ /usr/bin/gzip -dc /builddir/build/SOURCES/gr-air-modes-20200807git9e2515a5.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /builddir/build/SOURCES/gr-air-modes-0-gnuradio-3.9.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.QqV0GQ
+ umask 022
+ cd /builddir/build/BUILD
+ cd gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ /usr/bin/cmake -S . -B x86_64-redhat-linux-gnu -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_DOXYGEN=on
-- The CXX compiler identification is GNU 11.0.0
-- The C compiler identification is GNU 11.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - 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/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found PythonInterp: /usr/bin/python3.9 (found version "3.9.1") 
-- Found PythonLibs: /usr/lib64/libpython3.9.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /usr/include (found version "2.6.2" )
-- Found LOG4CPP: /usr/lib64/liblog4cpp.so
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:67 (find_package_handle_standard_args)
  /usr/lib64/cmake/gnuradio/FindGMP.cmake:2 (include)
  /usr/lib64/cmake/gnuradio/FindMPLIB.cmake:1 (find_package)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake:14 (find_dependency)
  CMakeLists.txt:97 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") 

-- Checking for module 'gmp'
--   Found gmp, version 6.2.0
-- Found GMP: /usr/lib64/libgmpxx.so  
-- Checking for module 'mpir >= 3.0'
--   Package 'mpir', required by 'virtual:world', not found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) 
-- Found MPLIB: /usr/lib64/libgmpxx.so  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Boost: /usr/include (found suitable version "1.75.0", minimum required is "1.75.0") found components: date_time program_options filesystem system regex thread unit_test_framework chrono atomic 
-- Found Volk: Volk::volk  
-- User set python executable /usr/bin/python3
-- Found PythonInterp: /usr/bin/python3 (found version "3.9.1") 
-- Could NOT find PythonLibs (missing: PYTHON_INCLUDE_DIRS) (Required is exact version "3.9")
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
-- Using install prefix: /usr
-- Building for version: v1.0-compat-xxx-xunknown / 1.0.0git
-- Python checking for pygccxml - not found
CMake Error: File /builddir/build/BUILD/gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e/docs/doxygen/pydoc_macros.h does not exist.
CMake Error at /usr/lib64/cmake/gnuradio/GrPybind.cmake:241 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  python/bindings/CMakeLists.txt:36 (GR_PYBIND_MAKE_OOT)


CMake Error at python/bindings/CMakeLists.txt:41 (install):
  install TARGETS given target "air_modes_python" which does not exist.


CMake Warning at res/CMakeLists.txt:28 (find_package):
  By not providing "FindPyQt4.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "PyQt4", but
  CMake did not find one.

  Could not find a package configuration file provided by "PyQt4" with any of
  the following names:

    PyQt4Config.cmake
    pyqt4-config.cmake

  Add the installation prefix of "PyQt4" to CMAKE_PREFIX_PATH or set
  "PyQt4_DIR" to a directory containing one of the above files.  If "PyQt4"
  provides a separate development package or SDK, be sure it has been
  installed.


-- PyQt4 not found, not installing GUI application
-- Configuring incomplete, errors occurred!
See also "/builddir/build/BUILD/gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e/x86_64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log".
See also "/builddir/build/BUILD/gr-air-modes-9e2515a56609658f168f0c833a14ca4d2332713e/x86_64-redhat-linux-gnu/CMakeFiles/CMakeError.log".
error: Bad exit status from /var/tmp/rpm-tmp.QqV0GQ (%build)
    Bad exit status from /var/tmp/rpm-tmp.QqV0GQ (%build)

@bistromath
Copy link
Owner

bistromath commented Feb 12, 2021 via email

@yarda
Copy link
Author

yarda commented Feb 23, 2021

Thanks, it works now.

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

Successfully merging this pull request may close these issues.

Please add support for gnuradio-3.9.0.0
2 participants