When installing from the AUR via yay, I get the following build errors:
[188/548] Building CXX object lib/scopehal/CMakeFiles/scopehal.dir/CopperMountainVNA.cpp.o
FAILED: [code=1] lib/scopehal/CMakeFiles/scopehal.dir/CopperMountainVNA.cpp.o
/usr/sbin/c++ -DGLSLANG_IS_SHARED_LIBRARY=1 -DHAS_LXI -Dscopehal_EXPORTS -I/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/cmake -I/usr/include/glslang/Include -I/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal -I/home/aaa/.cache/yay/scopehal-apps/src/build/lib/scopehal -I/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/log -isystem /home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal/../VkFFT/vkFFT -isystem /usr/include/hidapi -isystem /usr/include/sigc++-3.0 -isystem /usr/lib/sigc++-3.0/include -isystem /usr/include/tirpc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/aaa/.cache/yay/scopehal-apps/src=/usr/src/debug/scopehal-apps -flto=auto -O3 -DNDEBUG -std=c++17 -fPIC -Wall -Wextra -Wuninitialized -Wshadow -Wpedantic -Wcast-align -Wwrite-strings -Wmissing-declarations -Wvla -Werror -Wno-error=deprecated-declarations -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=unused-result -Wno-error=shadow -Woverloaded-virtual=1 -mtune=native -O3 -fopenmp -Winvalid-pch -include /home/aaa/.cache/yay/scopehal-apps/src/build/lib/scopehal/CMakeFiles/scopehal.dir/cmake_pch.hxx -MD -MT lib/scopehal/CMakeFiles/scopehal.dir/CopperMountainVNA.cpp.o -MF lib/scopehal/CMakeFiles/scopehal.dir/CopperMountainVNA.cpp.o.d -o lib/scopehal/CMakeFiles/scopehal.dir/CopperMountainVNA.cpp.o -c /home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal/CopperMountainVNA.cpp
/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal/CopperMountainVNA.cpp: In member function ‘CopperMountainVNA::CopperMountainVNA(SCPITransport*)’:
/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal/CopperMountainVNA.cpp:50:23: error: ‘_42->m_transport’ is used uninitialized [-Werror=uninitialized]
50 | auto snport = m_transport->SendCommandQueuedWithReply("SERV:PORT:COUN?");
| ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
and
[203/548] Building CXX object lib/scopehal/CMakeFiles/scopehal.dir/PicoVNA.cpp.o
FAILED: [code=1] lib/scopehal/CMakeFiles/scopehal.dir/PicoVNA.cpp.o
/usr/sbin/c++ -DGLSLANG_IS_SHARED_LIBRARY=1 -DHAS_LXI -Dscopehal_EXPORTS -I/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/cmake -I/usr/include/glslang/Include -I/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal -I/home/aaa/.cache/yay/scopehal-apps/src/build/lib/scopehal -I/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/log -isystem /home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal/../VkFFT/vkFFT -isystem /usr/include/hidapi -isystem /usr/include/sigc++-3.0 -isystem /usr/lib/sigc++-3.0/include -isystem /usr/include/tirpc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/aaa/.cache/yay/scopehal-apps/src=/usr/src/debug/scopehal-apps -flto=auto -O3 -DNDEBUG -std=c++17 -fPIC -Wall -Wextra -Wuninitialized -Wshadow -Wpedantic -Wcast-align -Wwrite-strings -Wmissing-declarations -Wvla -Werror -Wno-error=deprecated-declarations -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=unused-result -Wno-error=shadow -Woverloaded-virtual=1 -mtune=native -O3 -fopenmp -Winvalid-pch -include /home/aaa/.cache/yay/scopehal-apps/src/build/lib/scopehal/CMakeFiles/scopehal.dir/cmake_pch.hxx -MD -MT lib/scopehal/CMakeFiles/scopehal.dir/PicoVNA.cpp.o -MF lib/scopehal/CMakeFiles/scopehal.dir/PicoVNA.cpp.o.d -o lib/scopehal/CMakeFiles/scopehal.dir/PicoVNA.cpp.o -c /home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal/PicoVNA.cpp
/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal/PicoVNA.cpp: In member function ‘PicoVNA::PicoVNA(SCPITransport*)’:
/home/aaa/.cache/yay/scopehal-apps/src/scopehal-apps/lib/scopehal/PicoVNA.cpp:60:9: error: ‘_42->m_transport’ is used uninitialized [-Werror=uninitialized]
60 | m_transport->SendCommandQueuedWithReply("*RST");
| ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
The same warnings show up when building from a manually cloned version of the repo, but they aren't treated as errors, and the build succeeds. For whatever reason, building the AUR package specifically doesn't set the Wno-error=uninitialized flag, even when doing the build by hand instead of via yay.
When installing from the AUR via yay, I get the following build errors:
and
The same warnings show up when building from a manually cloned version of the repo, but they aren't treated as errors, and the build succeeds. For whatever reason, building the AUR package specifically doesn't set the
Wno-error=uninitializedflag, even when doing the build by hand instead of via yay.