Package Details: gr-fosphor 3.8-3

Git Clone URL: (read-only, click to copy)
Package Base: gr-fosphor
Description: GNU Radio block for RTSA-like spectrum visualization; repackaged from Ubuntu
Upstream URL:
Licenses: GPL
Submitter: Qyriad
Maintainer: Qyriad
Last Packager: Qyriad
Votes: 1
Popularity: 0.000018
First Submitted: 2019-11-15 04:52
Last Updated: 2019-11-16 21:11

Latest Comments

falbani commented on 2021-02-06 22:23


I'm having this error:

$ ./ 
[+] 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 is a minimal example containing a QT Fosphor Sink.

$ pacman -Qs opencl
    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 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

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

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/", line 152, in <module>
  File "/home/ikarus/Documents/hack/sdr/", line 130, in main
    tb = top_block_cls()
  File "/home/ikarus/Documents/hack/sdr/", 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

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

Did some testing. I get the error from even when I build it directly from Not sure what is causing this.

Although this will not fix my error, but why not build it directly from Is the debian stuff really needed?

Qyriad commented on 2019-11-16 21:12

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

Gnuradio is complaining:

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

ikarus commented on 2019-11-15 18:42

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.