Package Details: gr-fosphor 3.8-3

Git Clone URL: https://aur.archlinux.org/gr-fosphor.git (read-only, click to copy)
Package Base: gr-fosphor
Description: GNU Radio block for RTSA-like spectrum visualization; repackaged from Ubuntu
Upstream URL: http://sdr.osmocom.org/trac/wiki/fosphor
Licenses: GPL
Submitter: Qyriad
Maintainer: Qyriad
Last Packager: Qyriad
Votes: 1
Popularity: 0.000000
First Submitted: 2019-11-15 04:52 (UTC)
Last Updated: 2019-11-16 21:11 (UTC)

Latest Comments

dreieck commented on 2021-09-30 16:35 (UTC)

Fails to build for me with

CMake Error at swig/CMakeLists.txt:28 (include):
  include could not find requested file:

    GrSwig


CMake Error at swig/CMakeLists.txt:48 (GR_SWIG_MAKE):
  Unknown CMake command "GR_SWIG_MAKE".

Installed is the currently latest gnuradio from the community repository, version 3.9.2.0-3.

I suspect that you need to update the source to a gnuradio 3.9-branch.

Full build() output:

==> Starting build()...
-- The CXX compiler identification is GNU 11.1.0
-- The C compiler identification is GNU 11.1.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.
-- Found LOG4CPP: /usr/lib/liblog4cpp.so
CMake Warning (dev) at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (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-3.21/Modules/FindPkgConfig.cmake:70 (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-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake:14 (find_dependency)
  CMakeLists.txt:87 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Checking for module 'gmp'
--   Found gmp, version 6.2.1
-- Found GMP: /usr/lib/libgmpxx.so  
-- Using GMP.
-- Found MPLIB: /usr/lib/libgmpxx.so  
-- Found Boost: /usr/lib64/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.76.0") found components: date_time program_options filesystem 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.9.7") 
-- Found PythonLibs: /usr/lib/libpython3.9.so (found suitable exact version "3.9.7") 
-- Checking for module 'fftw3f >= 3.0'
--   Found fftw3f , version 3.3.10
-- Found FFTW3f: /lib/libfftw3f.so  
-- Found Git: /usr/bin/git  
-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - found
-- Found OpenCL: /usr/lib/libOpenCL.so (found version "2.0") 
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.11.0") 
CMake Warning (dev) at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GLFW3).  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-3.21/Modules/FindPkgConfig.cmake:70 (find_package_handle_standard_args)
  cmake/Modules/FindGLFW3.cmake:2 (INCLUDE)
  CMakeLists.txt:145 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'glfw3'
--   Found glfw3, version 3.3.4
-- Found GLFW3: /usr/include, /usr/lib/libglfw.so
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.2") found components: doxygen dot 
-- 
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
-- 
-- Configuring GLFW support...
--   Dependency GLFW3_FOUND = TRUE
--   Enabling GLFW support.
--   Override with -DENABLE_GLFW=ON/OFF
-- 
-- Configuring QT support...
--   Dependency Qt5_FOUND = 1
--   Enabling QT support.
--   Override with -DENABLE_QT=ON/OFF
-- Found SWIG: /usr/bin/swig (found version "4.0.2")  
-- Found PythonLibs: /usr/lib/libpython3.9.so (found version "3.9.7") 
CMake Error at swig/CMakeLists.txt:28 (include):
  include could not find requested file:

    GrSwig


CMake Error at swig/CMakeLists.txt:48 (GR_SWIG_MAKE):
  Unknown CMake command "GR_SWIG_MAKE".


-- Configuring incomplete, errors occurred!
See also "/[...]/gr-fosphor/src/gr-fosphor-3.8~1.278b66e/build/CMakeFiles/CMakeOutput.log".
See also "/[...]/gr-fosphor/src/gr-fosphor-3.8~1.278b66e/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...

Thanks for maintaining!

falbani commented on 2021-02-06 22:23 (UTC)

Hi!

I'm having this error:

$ ./testphor.py 
[+] Selected device: AMD Radeon(TM) Vega 10 Graphics (RAVEN, DRM 3.40.0, 5.10.13-arch1-1, LLVM 11.0.1)
[!] CL Error (-59, /home/asd/.cache/aurman/gr-fosphor/src/gr-fosphor-3.8~1.278b66e/lib/fosphor/cl.c:522): Unable to create waterfall image
gr::log :ERROR: qt_sink_c0 - Failed to initialize fosphor

testphor.py is a minimal example containing a QT Fosphor Sink.

$ pacman -Qs opencl
local/clinfo 3.0.20.11.20-1
    Simple OpenCL application that enumerates all available platform and device properties
local/libclc 11.0.1-1
    Library requirements of the OpenCL C programming language
local/ocl-icd 2.2.14-1
    OpenCL ICD Bindings
local/opencl-headers 2:2020.12.18-1
    OpenCL (Open Computing Language) header files
local/opencl-mesa 20.3.4-1
    OpenCL support for AMD/ATI Radeon mesa drivers
local/pocl 1.6-1
    Portable OpenCL is an open-source implementation of OpenCL which can be easily adapted for new targets

Machine is a Thinkpad T495.

$ lspci | grep 'VGA '
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev d1)

clinfo runs with no problems (its output its too long)

$ clinfo | grep -i 'device name' | head -n 1
  Device Name                                     AMD Radeon(TM) Vega 10 Graphics (RAVEN, DRM 3.40.0, 5.10.11-arch1-1, LLVM 11.0.1)

I tried many different setups with opencl-amd and amdgpu (and pro) and I get the same -59 error (CL_INVALID_OPERATION).

I'm using gnuradio 3.8.2.0-1 in an up-to-date Arch.

How can I test opencl independently of fosphor? How can I continue debugging?

Many many thanks for your help!

ikarus commented on 2020-04-07 07:49 (UTC)

Since the last updates of gnuradio and gnuradio-osmosdr this gr-fosphor packet started to work! Great! Please add swig to the PKGBUILD dependencies and we are good to go.

ikarus commented on 2020-02-24 20:59 (UTC)

Thanks @raitech for the swig tip. Unfortunately I'm no stuck with the following error message, when I try to use the fosphor sink:

Traceback (most recent call last):
  File "/home/ikarus/Documents/hack/sdr/fosphor.py", line 152, in <module>
    main()
  File "/home/ikarus/Documents/hack/sdr/fosphor.py", line 130, in main
    tb = top_block_cls()
  File "/home/ikarus/Documents/hack/sdr/fosphor.py", line 85, in __init__
    self.fosphor_qt_sink_c_0 = fosphor.qt_sink_c()
AttributeError: type object 'fosphor' has no attribute 'qt_sink_c'

raitech commented on 2020-01-15 02:40 (UTC) (edited on 2020-01-15 02:47 (UTC) by raitech)

I did solve the ModuleNotFoundError: No module named 'gnuradio.fosphor.fosphor_swig' problem by adding swig into the PKGBUILD dependency list.

ikarus commented on 2019-11-21 20:59 (UTC)

Did some testing. I get the error from https://aur.archlinux.org/packages/gr-fosphor#comment-716471 even when I build it directly from https://github.com/bastibl/gr-fosphor. Not sure what is causing this.

Although this will not fix my error, but why not build it directly from https://github.com/bastibl/gr-fosphor? Is the debian stuff really needed?

Qyriad commented on 2019-11-16 21:12 (UTC)

Thank you; I added cmake, opencl-headers, and ocl-icd as makedepends. I'm not sure what's up with the ModuleNotFoundError, but I almost definitely still don't have all the dependencies marked correctly. I'll play with it.

ikarus commented on 2019-11-15 18:47 (UTC)

Gnuradio is complaining:

Traceback (most recent call last):
  File "/tmp/defautestlt.py", line 25, in <module>
    from gnuradio import fosphor
  File "/usr/lib/python3.8/site-packages/gnuradio/fosphor/__init__.py", line 27, in <module>
    from .fosphor_swig import *
ModuleNotFoundError: No module named 'gnuradio.fosphor.fosphor_swig'

ikarus commented on 2019-11-15 18:42 (UTC) (edited on 2019-11-15 18:47 (UTC) by ikarus)

Thanks for trying to make gr-fosphor available for Arch again. For now it is not working for me, but this might be an issue specific to my system. However, cmake, opencl-headers and ocl-icd were missing as dependency to compile it.