Open capsulecorplab opened 2 years ago
Ran a pip install mako requests numpy
, followed by pybombs prefix init ~/gr38 -R gnuradio38
in the same virtual environment, but still running into a libvolk error in same virtual environment
[INFO] Prefix Python version is: 3.8.10
[INFO] PyBOMBS Version 2.3.5
[WARNING] There already is a prefix in `/home/captainpike/gr38'.
Continue using this path Y/[N]? Y
[INFO] Prefix Python version is: 3.8.10
[INFO] Prefix Python version is: 3.8.10
[INFO] Installing default packages for prefix...
[INFO]
- gnuradio
[INFO] Install python-apt to speed up apt processing.
[INFO] Phase 1: Creating install tree and installing binary packages:
Install tree:
|
\- gnuradio
|
+- libvolk
|
+- soapysdr
|
\- uhd
[INFO] Phase 1 complete: All binary dependencies installed.
[INFO] Phase 2: Recursively installing source packages to prefix:
[INFO] Installing package: uhd
[INFO] Install python-apt to speed up apt processing.
remote: Enumerating objects: 191, done.
remote: Counting objects: 100% (148/148), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 191 (delta 138), reused 148 (delta 138), pack-reused 43
Receiving objects: 100% (191/191), 65.45 KiB | 515.00 KiB/s, done.
Resolving deltas: 100% (147/147), completed with 69 local objects.
From https://github.com/EttusResearch/uhd
197cdc4f6..04d14cd76 UHD-4.2 -> uhd/UHD-4.2
197cdc4f6..5333d3d12 master -> uhd/master
* [new tag] v4.2.0.0 -> v4.2.0.0
Cloning into 'uhd'...
remote: Enumerating objects: 1286, done.
remote: Counting objects: 100% (693/693), done.
remote: Total 1286 (delta 693), reused 693 (delta 693), pack-reused 593
Receiving objects: 100% (1286/1286), 1.15 MiB | 1.49 MiB/s, done.
Resolving deltas: 100% (896/896), completed with 210 local objects.
[INFO] Install python-apt to speed up apt processing.
Configuring: (100%) [=======================================================================================================================]
Building: (100%) [=======================================================================================================================]
Installing: (100%) [=======================================================================================================================]
[INFO] Installation successful.
[INFO] Installing package: soapysdr
warning: no common commits
remote: Enumerating objects: 10065, done.
remote: Counting objects: 100% (2026/2026), done.
remote: Compressing objects: 100% (657/657), done.
remote: Total 10065 (delta 1340), reused 1978 (delta 1325), pack-reused 8039
Receiving objects: 100% (10065/10065), 4.76 MiB | 2.41 MiB/s, done.
Resolving deltas: 100% (7710/7710), done.
From https://github.com/pothosware/SoapySDR
* [new branch] arg_info_work2 -> soapysdr/arg_info_work2
* [new branch] convert_work -> soapysdr/convert_work
* [new branch] feat-py3find -> soapysdr/feat-py3find
* [new branch] fix-windows-ci -> soapysdr/fix-windows-ci
* [new branch] fix_travis -> soapysdr/fix_travis
* [new branch] get-specific-setting-info -> soapysdr/get-specific-setting-info
* [new branch] gh-pages -> soapysdr/gh-pages
* [new branch] luajit-support -> soapysdr/luajit-support
* [new branch] maint -> soapysdr/maint
* [new branch] master -> soapysdr/master
* [new branch] swig-python-shadow-warning -> soapysdr/swig-python-shadow-warning
* [new branch] swig-reorganize -> soapysdr/swig-reorganize
* [new branch] time_work -> soapysdr/time_work
* [new branch] wip/csharp -> soapysdr/wip/csharp
* [new branch] wip/java -> soapysdr/wip/java
* [new branch] wip/octave -> soapysdr/wip/octave
* [new tag] soapy-sdr-0.1.0 -> soapy-sdr-0.1.0
* [new tag] soapy-sdr-0.1.1 -> soapy-sdr-0.1.1
* [new tag] soapy-sdr-0.2.0 -> soapy-sdr-0.2.0
* [new tag] soapy-sdr-0.2.1 -> soapy-sdr-0.2.1
* [new tag] soapy-sdr-0.2.2 -> soapy-sdr-0.2.2
* [new tag] soapy-sdr-0.2.3 -> soapy-sdr-0.2.3
* [new tag] soapy-sdr-0.3.0 -> soapy-sdr-0.3.0
* [new tag] soapy-sdr-0.3.1 -> soapy-sdr-0.3.1
* [new tag] soapy-sdr-0.4.0 -> soapy-sdr-0.4.0
* [new tag] soapy-sdr-0.4.1 -> soapy-sdr-0.4.1
* [new tag] soapy-sdr-0.4.2 -> soapy-sdr-0.4.2
* [new tag] soapy-sdr-0.4.3 -> soapy-sdr-0.4.3
* [new tag] soapy-sdr-0.4.4 -> soapy-sdr-0.4.4
* [new tag] soapy-sdr-0.5.0 -> soapy-sdr-0.5.0
* [new tag] soapy-sdr-0.5.1 -> soapy-sdr-0.5.1
* [new tag] soapy-sdr-0.5.2 -> soapy-sdr-0.5.2
* [new tag] soapy-sdr-0.5.3 -> soapy-sdr-0.5.3
* [new tag] soapy-sdr-0.5.4 -> soapy-sdr-0.5.4
* [new tag] soapy-sdr-0.5.5 -> soapy-sdr-0.5.5
* [new tag] soapy-sdr-0.6.0 -> soapy-sdr-0.6.0
* [new tag] soapy-sdr-0.6.1 -> soapy-sdr-0.6.1
* [new tag] soapy-sdr-0.7.0 -> soapy-sdr-0.7.0
* [new tag] soapy-sdr-0.7.1 -> soapy-sdr-0.7.1
* [new tag] soapy-sdr-0.7.2 -> soapy-sdr-0.7.2
* [new tag] soapy-sdr-0.8.0 -> soapy-sdr-0.8.0
* [new tag] soapy-sdr-0.8.1 -> soapy-sdr-0.8.1
Cloning into 'soapysdr'...
Configuring: (100%) [=======================================================================================================================]
Building: (100%) [=======================================================================================================================]
Installing: (100%) [=======================================================================================================================]
[INFO] Installation successful.
[INFO] Installing package: libvolk
[WARNING] A source build for package libvolk was requested, but binary install was found!
Install libvolk from source despite binary install available Y/[N]? Y
`\Y' is not a valid response.
Install libvolk from source despite binary install available Y/[N]? Y
[WARNING] Build dir already exists: /home/captainpike/gr38/src/libvolk/build
Building: (100%) [=======================================================================================================================]
[ 72%] Built target volk_obj
[ 74%] Linking C shared library libvolk.so
/usr/bin/ld: cannot find -lcpu_features
collect2: error: ld returned 1 exit status
make[2]: *** [lib/CMakeFiles/volk.dir/build.make:105: lib/libvolk.so.2.5.1] Error 1
make[1]: *** [CMakeFiles/Makefile2:227: lib/CMakeFiles/volk.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
[ERROR] Build failed. See output above for error messages.
[ERROR] Problem occurred while building package libvolk:
Build failed.
[ERROR] Error installing package libvolk. Aborting.
I am having the same issue. I rebuilt a Docker I had that worked a few weeks ago and now it won't get past libvolk. I tried forcing the libvolk to v2.0.0 because that was a known good version, but that did not resolve the problem (makes me think pybombs as opposed to libvolk). The command I had used was: pip3 install --upgrade git+https://github.com/gnuradio/pybombs.git
still doesn't work. running into the same issue within a pyenv
installation.
Might not be relevant to what everyone here is experiencing - I encountered this issue while I tried to init a new pybombs 3.9 and 3.10 prefix. However, I had activated my existing pybombs3.8 prefix environment source ~/gnuradio38/setup_env.sh
. After trying again ensuring this environment wasn't activated pybombs prefix init ~/gnuradio3.10.3.0 -R gnuradio310
was successful.
Per a recommendation someone else gave me, I am using a particular commit of the recipes now
pybombs -y -p $PREFIX recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git@15157e7
pybombs -y -p $PREFIX recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git@506e0f5
That seems to do the trick.
I have a similar problem with libvolk while executing recipe gnuradio39: /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lcpu_features collect2: error: ld returned 1 exit status After inspecting the file "prefix/gr39/src/libvolk/build/CMakeCache.txt" I noticed that CpuFeatures_DIR:PATH was given the value pertaining to a local installation of volk (~/.local/lib64). I renamed this directory with the consequence that "CpuFeatures_DIR:PATH=CpuFeatures_DIR-NOTFOUND." Installing gnuradio with "pybombs -vv -p gr39 install gnuradio" was successful. This seems like a kludge so if I wanted to keep the local installation of volk, what would I do? Forging ahead, I will uninstall the local installation of volk.
I fixed this by installing an older version of mako ( 0.8.0 ) before the installer, running:
python3 -m pip install mako==0.8.0
worked for me. It seems that it isn't checking the major version, just the minor.
Reinstalled
pybombs
from source (cloning repo and runningpython setup.py build
) in a virtual environment, using apt installedpython3.8-venv
, then ranpybombs auto-config
, followed bypybombs recipes add-defaults
without issues. Encountered error installing packagelibvolk
after runningpybombs prefix init ~/gr38 -R gnuradio-default