After the cleanup from Juli 14th 2023 I have the following experience.
cmake -Wno-dev ../
-- The CXX compiler identification is GNU 10.2.1
-- 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
-- Build type not specified: defaulting to release.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libairspy'
-- Found libairspy, version 1.0
-- Found LIBAIRSPY: /usr/local/lib/libairspy.so
-- Found Git: /usr/bin/git (found version "2.30.2")
-- Module airspySupport configured with version: 0.2.0-12744c4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/janvg/source/git/ast/SoapyAirspy/build
janvg@canberra:~/source/git/ast/SoapyAirspy/build$ make
Scanning dependencies of target airspySupport
[ 20%] Building CXX object CMakeFiles/airspySupport.dir/Registration.cpp.o
/home/janvg/source/git/ast/SoapyAirspy/Registration.cpp: In function ‘SoapySDR::Device* makeAirspy(const Kwargs&)’:
/home/janvg/source/git/ast/SoapyAirspy/Registration.cpp:78:30: warning: ‘new’ of type ‘SoapyAirspy’ with extended alignment 64 [-Waligned-new=]
78 | return new SoapyAirspy(args);
| ^
/home/janvg/source/git/ast/SoapyAirspy/Registration.cpp:78:30: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
/home/janvg/source/git/ast/SoapyAirspy/Registration.cpp:78:30: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
[ 40%] Building CXX object CMakeFiles/airspySupport.dir/Settings.cpp.o
In file included from /home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:25:
/home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp: In constructor ‘SoapyAirspy::SoapyAirspy(const Kwargs&)’:
/home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp:76:10: warning: ‘SoapyAirspy::currentBandwidth_’ will be initialized after [-Wreorder]
76 | double currentBandwidth_;
| ^~~~~~~~~~~~~~~~~
/home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp:67:9: warning: ‘SoapyAirspy::Gains SoapyAirspy::gains_’ [-Wreorder]
67 | Gains gains_;
| ^~~~~~
/home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:29:1: warning: when initialized here [-Wreorder]
29 | SoapyAirspy::SoapyAirspy(const SoapySDR::Kwargs &args)
| ^~~~~~~~~~~
In file included from /home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp:39,
from /home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:25:
/home/janvg/source/git/ast/SoapyAirspy/RingBuffer.hpp: In instantiation of ‘RingBuffer<T>::RingBuffer(size_t) [with T = unsigned char; size_t = long unsigned int]’:
/home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:32:43: required from here
/home/janvg/source/git/ast/SoapyAirspy/RingBuffer.hpp:27:53: error: use of deleted function ‘std::atomic<long unsigned int>::atomic(const std::atomic<long unsigned int>&)’
27 | cacheline_aligned std::atomic<size_t> read_pos_ = 0;
| ^
In file included from /home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp:32,
from /home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:25:
/usr/include/c++/10/atomic:828:7: note: declared here
828 | atomic(const atomic&) = delete;
| ^~~~~~
/usr/include/c++/10/atomic:832:17: note: after user-defined conversion: ‘constexpr std::atomic<long unsigned int>::atomic(std::atomic<long unsigned int>::__integral_type)’
832 | constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
| ^~~~~~
In file included from /home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp:39,
from /home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:25:
/home/janvg/source/git/ast/SoapyAirspy/RingBuffer.hpp:28:54: error: use of deleted function ‘std::atomic<long unsigned int>::atomic(const std::atomic<long unsigned int>&)’
28 | cacheline_aligned std::atomic<size_t> write_pos_ = 0;
| ^
In file included from /home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp:32,
from /home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:25:
/usr/include/c++/10/atomic:828:7: note: declared here
828 | atomic(const atomic&) = delete;
| ^~~~~~
/usr/include/c++/10/atomic:832:17: note: after user-defined conversion: ‘constexpr std::atomic<long unsigned int>::atomic(std::atomic<long unsigned int>::__integral_type)’
832 | constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
| ^~~~~~
make[2]: *** [CMakeFiles/airspySupport.dir/build.make:95: CMakeFiles/airspySupport.dir/Settings.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/airspySupport.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
And this build isn't successful and can't be used.
cmake -Wno-dev ../
-- The CXX compiler identification is GNU 12.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
-- Build type not specified: defaulting to release.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for module 'libairspy'
-- Found libairspy, version 1.0
-- Found LIBAIRSPY: /usr/local/lib/libairspy.so
-- Found Git: /usr/bin/git (found version "2.40.1")
-- Module airspySupport configured with version: 0.2.0-12744c4
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/janvg/source/git/ast/SoapyAirspy/build
janvg@goldstone:~/source/git/ast/SoapyAirspy/build$ make
[ 20%] Building CXX object CMakeFiles/airspySupport.dir/Registration.cpp.o
[ 40%] Building CXX object CMakeFiles/airspySupport.dir/Settings.cpp.o
In file included from /home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:25:
/home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp: In constructor ‘SoapyAirspy::SoapyAirspy(const SoapySDR::Kwargs&)’:
/home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp:76:10: warning: ‘SoapyAirspy::currentBandwidth_’ will be initialized after [-Wreorder]
76 | double currentBandwidth_;
| ^~~~~~~~~~~~~~~~~
/home/janvg/source/git/ast/SoapyAirspy/SoapyAirspy.hpp:67:9: warning: ‘SoapyAirspy::Gains SoapyAirspy::gains_’ [-Wreorder]
67 | Gains gains_;
| ^~~~~~
/home/janvg/source/git/ast/SoapyAirspy/Settings.cpp:29:1: warning: when initialized here [-Wreorder]
29 | SoapyAirspy::SoapyAirspy(const SoapySDR::Kwargs &args)
| ^~~~~~~~~~~
[ 60%] Building CXX object CMakeFiles/airspySupport.dir/Streaming.cpp.o
[ 80%] Building CXX object CMakeFiles/airspySupport.dir/Version.cpp.o
[100%] Linking CXX shared module libairspySupport.so
[100%] Built target airspySupport
SoapySDRUtil --probe="driver=airspy"
######################################################
## Soapy SDR -- the SDR abstraction library ##
######################################################
Probe device driver=airspy
[DEBUG] SoapyAirspy::SoapyAirspy()
[DEBUG] SoapyAirspy::SoapyAirspy(driver) = airspy
[DEBUG] SoapyAirspy::SoapyAirspy(label) = AirSpy One [b58069dc396e3913]
[DEBUG] SoapyAirspy::SoapyAirspy(serial) = b58069dc396e3913
[DEBUG] Found AirSpy device: serial = b58069dc396e3913
[DEBUG] Supported sample rate: 2500000
[DEBUG] Supported sample rate: 10000000
[DEBUG] SoapyAirspy::setGain(1, 0, 0.000000)
[DEBUG] SoapyAirspy::listAntennas(1, 0)
[DEBUG] SoapyAirspy::hasDCOffsetMode(1, 0)
[DEBUG] getBandwidth: 0.000000
[DEBUG] listBandwidths(1, 0)
----------------------------------------------------
-- Device identification
----------------------------------------------------
driver=Airspy
hardware=Airspy
serial=b58069dc396e3913
----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
Channels: 1 Rx, 0 Tx
Timestamps: NO
Other Settings:
* Bias tee - Enable the 4.5v DC Bias tee to power SpyVerter / LNA / etc. via antenna connection.
[key=biastee, default=false, type=bool]
* Bit pack - Enable packing 4 12-bit samples into 3 16-bit words for 25% less USB trafic.
[key=bitpack, default=false, type=bool]
* Gain Mode - linearity | sensitivity | manual
[key=gainmode, default=linearity, type=int]
----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
Full-duplex: NO
Supports AGC: YES
Stream formats: CS16, CF32
Native format: CS16 [full-scale=32767]
Antennas: RX
Full gain range: [0, 21] dB
LIN gain range: [0, 21] dB
Full freq range: [24, 1800] MHz
RF freq range: [24, 1800] MHz
Sample rates: 2.5, 10 MSps
Filter bandwidths: 1.875, 7.5 MHz