cmake or gcc issue; filesystem not found

Linux has an “alternatives” mechanism – sadly there’s not so much openSUSE documentation but, there’s SUSE documentation – <SUSE Documentation.

  • On openSUSE, the man page – “update-alternatives”.
  • And, there’s a mention at the bottom of this openSUSE SDB: <https://en.opensuse.org/SDB:Change_Display_Manager&gt;
  • And, there’s a YaST module package – “yast2-alternatives” – which adds “Alternatives” the “Miscellaneous” section.

I don’t have multiple GCC versions installed – I’ll use the Display Manager as an example –


 # update-alternatives --list default-displaymanager
/usr/lib/X11/displaymanagers/console
/usr/lib/X11/displaymanagers/lightdm
/usr/lib/X11/displaymanagers/sddm
/usr/lib/X11/displaymanagers/xdm
 #

What you’ll have to do for GCC is, either use the YaST module or, by means of a user “root” Console CLI – “update-alternatives --config gcc”.

Not at all – this is only perfectly normal programming work – which is what I pointed out in my very first reply …

Programming computers is the most difficult and complex task human beings have imposed on themselves

  • The only opposition to this view is demonstrated by over-paid upper management attempting to maximise their bonus payments and salary negotiations … >:)

Can you compile this?

#include <filesystem>

int main() {
  return 0;
}

Put it in a file name test.cpp and run gcc test.cpp.

If it fails, send output of gcc -v test.cpp

If it works, likely a makefile issue and make VERBOSE=1 when compiling gnuradio or SDRplusplus might help.

If, ‘filesystem’ ain’t in the GCC search path, it will not compile …

Hi
Just an observation…

From SDRPlusPlus;

Note: make sure you’re using GCC 8 or later as older versions do not have std::filesystem built-in.

From gnuradio 3.10.0.0 CHANGELOG.md;

  • replace boost::filesystem with std::filesystem
  • Remove #include <filesystem> (C++17 feature) from one file

You did not show any evidence or proof of it. The only lines that include gcc version are for gcc7 which does not support [noparse]std::filesystem[/noparse]; everything else are several log lines without any indication what compiler was used.

gcc10 most certainly does not fail:

bor@leap15:~> cat /tmp/foo.cpp
#include <filesystem>


int main() {
  return 0;
}
bor@leap15:~> gcc-10 -c /tmp/foo.cpp
bor@leap15:~> gcc -c /tmp/foo.cpp
/tmp/foo.cpp:1:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.
bor@leap15:~> 

Hi
This was only released a few hours ago assuming the OP was using the RC versions, the fix indicated in the change log may be the issue that is being hit…

Here is test.cpp:


:~/test_dir> cat test.cpp
#include <filesystem>


int main() {
  return 0;
}

And the unsuccessful compilation using the default gcc7:


 gcc -v test.cpp   
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 7.5.0 (SUSE Linux) 
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
 /usr/lib64/gcc/x86_64-suse-linux/7/cc1plus -quiet -v -D_GNU_SOURCE test.cpp -quiet -dumpbase test.cpp -mtune=generic -march=x86-64 -auxbase test -version -o /tmp/cceDnirJ.s
GNU C++14 (SUSE Linux) version 7.5.0 (x86_64-suse-linux)
        compiled by GNU C version 7.5.0, GMP version 6.1.2, MPFR version 4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP


GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/7
 /usr/include/c++/7/x86_64-suse-linux
 /usr/include/c++/7/backward
 /usr/lib64/gcc/x86_64-suse-linux/7/include
 /usr/local/include
 /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed
 /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/include
 /usr/include
End of search list.
GNU C++14 (SUSE Linux) version 7.5.0 (x86_64-suse-linux)
        compiled by GNU C version 7.5.0, GMP version 6.1.2, MPFR version 4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP


GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 6382e6e95418232cdb97da9bdda1863e
test.cpp:1:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.

A successful compilation with gcc-10:


 gcc-10 -v test.cpp
Using built-in specs.
COLLECT_GCC=gcc-10
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go,d --enable-offload-targets=nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/10 --enable-ssp --disable-libssp --disable-libvtv --enable-cet=auto --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-libphobos --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-10 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.3.0 (SUSE Linux) 
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
 /usr/lib64/gcc/x86_64-suse-linux/10/cc1plus -quiet -v -D_GNU_SOURCE test.cpp -quiet -dumpbase test.cpp -mtune=generic -march=x86-64 -auxbase test -version -o /tmp/ccLwmZLd.s
GNU C++14 (SUSE Linux) version 10.3.0 (x86_64-suse-linux)
        compiled by GNU C version 10.3.0, GMP version 6.1.2, MPFR version 4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP


GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/10
 /usr/include/c++/10/x86_64-suse-linux
 /usr/include/c++/10/backward
 /usr/lib64/gcc/x86_64-suse-linux/10/include
 /usr/local/include
 /usr/lib64/gcc/x86_64-suse-linux/10/include-fixed
 /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/include
 /usr/include
End of search list.
GNU C++14 (SUSE Linux) version 10.3.0 (x86_64-suse-linux)
        compiled by GNU C version 10.3.0, GMP version 6.1.2, MPFR version 4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP


GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 00000000000000000000000000000000
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
 /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/as -v --64 -o /tmp/ccD74tfh.o /tmp/ccLwmZLd.s
GNU assembler version 2.37 (x86_64-suse-linux) using BFD version (GNU Binutils; SUSE Linux Enterprise 15) 2.37.20211103-7.26
COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/10/:/usr/lib64/gcc/x86_64-suse-linux/10/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/10/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/
LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/10/:/usr/lib64/gcc/x86_64-suse-linux/10/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/10/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
 /usr/lib64/gcc/x86_64-suse-linux/10/collect2 -plugin /usr/lib64/gcc/x86_64-suse-linux/10/liblto_plugin.so -plugin-opt=/usr/lib64/gcc/x86_64-suse-linux/10/lto-wrapper -plugin-opt=-fresolution=/tmp/cc0bDvpf.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib64/gcc/x86_64-suse-linux/10/../../../../lib64/crt1.o /usr/lib64/gcc/x86_64-suse-linux/10/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/10/crtbegin.o -L/usr/lib64/gcc/x86_64-suse-linux/10 -L/usr/lib64/gcc/x86_64-suse-linux/10/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/10/../../.. /tmp/ccD74tfh.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib64/gcc/x86_64-suse-linux/10/crtend.o /usr/lib64/gcc/x86_64-suse-linux/10/../../../../lib64/crtn.o
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'

A simple ./a.out doesn’t do anything as expected but then again it doesn’t crash either.

Now with gcc-11:


 gcc-11 -v test.cpp  
Using built-in specs.
COLLECT_GCC=gcc-11
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortr
an,obj-c++,ada,go,d --enable-offload-targets=nvptx-none,amdgcn-amdhsa, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c
++/11 --enable-ssp --disable-libssp --disable-libvtv --enable-cet=auto --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Lin
ux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-libphobos --enable-version-specific-runtime-libs --with-gcc-ma
jor-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-11 --without-system-libunwind --enable-multilib --with-arch-3
2=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f293f6] (SUSE Linux)  
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
 cc1plus -quiet -v -D_GNU_SOURCE test.cpp -quiet -dumpdir a- -dumpbase test.cpp -dumpbase-ext .cpp -mtune=generic -march=x86-64 -version -o /tmp/ccrCw8ox.s
**gcc-11:****fatal error: **cannot execute ‘**cc1plus**’: execvp: No such file or directory
compilation terminated.

I included that bombed compilation just so you know I didn’t pull a fast one, I ran yast and installed gcc11-c++. And another compilation with gcc-11:


 gcc-11 -v test.cpp
Using built-in specs.
COLLECT_GCC=gcc-11
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go,d --enable-offload-targets=nvptx-none,amdgcn-amdhsa, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/11 --enable-ssp --disable-libssp --disable-libvtv --enable-cet=auto --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-libphobos --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-11 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f293f6] (SUSE Linux) 
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
 /usr/lib64/gcc/x86_64-suse-linux/11/cc1plus -quiet -v -D_GNU_SOURCE test.cpp -quiet -dumpdir a- -dumpbase test.cpp -dumpbase-ext .cpp -mtune=generic -march=x86-64 -version -o /tmp/cc8KPgvb.s
GNU C++17 (SUSE Linux) version 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f293f6] (x86_64-suse-linux)
        compiled by GNU C version 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f293f6], GMP version 6.1.2, MPFR version 4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP


GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/11
 /usr/include/c++/11/x86_64-suse-linux
 /usr/include/c++/11/backward
 /usr/lib64/gcc/x86_64-suse-linux/11/include
 /usr/local/include
 /usr/lib64/gcc/x86_64-suse-linux/11/include-fixed
 /usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/include
 /usr/include
End of search list.
GNU C++17 (SUSE Linux) version 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f293f6] (x86_64-suse-linux)
        compiled by GNU C version 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f293f6], GMP version 6.1.2, MPFR version 4.0.2-p6, MPC version 1.1.0, isl version isl-0.18-GMP


GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 00000000000000000000000000000000
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
 /usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/as -v --64 -o /tmp/ccuKREI8.o /tmp/cc8KPgvb.s
GNU assembler version 2.37 (x86_64-suse-linux) using BFD version (GNU Binutils; SUSE Linux Enterprise 15) 2.37.20211103-7.26
COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/11/:/usr/lib64/gcc/x86_64-suse-linux/11/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/11/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/
LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/11/:/usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/11/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a.'
 /usr/lib64/gcc/x86_64-suse-linux/11/collect2 -plugin /usr/lib64/gcc/x86_64-suse-linux/11/liblto_plugin.so -plugin-opt=/usr/lib64/gcc/x86_64-suse-linux/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccxBH2Oa.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crt1.o /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/11/crtbegin.o -L/usr/lib64/gcc/x86_64-suse-linux/11 -L/usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/11/../../.. /tmp/ccuKREI8.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib64/gcc/x86_64-suse-linux/11/crtend.o /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crtn.o
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a.'

And again ./a.out does nothing but doesn’t bomb.

In my other post I included a complication of the latest gnuradio. Unfortunately I hit a character limit and had to delete the output which was still the same. It still didn’t compile.

I will verify your change is in what I git cloned.

There is a 10 minute limit to edit a post so I’m doing another post. Do you think this is a fair method to detect the changes?


linux-yxjo:/usr/local/src/gnuradio_interim # grep -R "boost::filesystem" build
Nothing found.



linux-yxjo:/usr/local/src/gnuradio_interim # grep -R "std::filesystem" build
build/gnuradio-runtime/lib/constants.cc:using std::filesystem::path;
build/gnuradio-runtime/lib/constants.cc:    path canonical_lib_path = std::filesystem::canonical(gr_runtime_lib_path);
linux-yxjo:/usr/local/src/gnuradio_interim # 

So I never find the boost:filesystem just the std:filesystem. This was done on the intermediate github code I was using.

Here is it on the latest github clone:


linux-yxjo:/usr/local/src/gnuradio # grep -R "std::filesystem" build
build/gnuradio-runtime/lib/constants.cc:using std::filesystem::path;
build/gnuradio-runtime/lib/constants.cc:    path canonical_lib_path = std::filesystem::canonical(gr_runtime_lib_path);

Looks the same.

What still do not know what compiler is used to compile it.

Use update alternatives method that was suggested earlier to make gcc10 or 11 your default. See https://en.opensuse.org/User:Tsu2/gcc_update-alternatives#Configuring_GCC_and_Update-alternatives.

Or, heavy handed, uninstall gcc7, 10 should then become your default.

Whichever approach, aftwerwards confirm gcc points to gcc-10/11 (e.g. gcc --version) before compiling.

Apologies. I tried 7,10, and 11. None Compiled.

I noticed GitHub - merbanan/rtl_433: Program to decode radio transmissions from devices on the ISM bands (and other frequencies) which all though the instructions don’t show it it set up to use cmake, it has all the necessary files. It compiled fine under gcc-7,10 and 11 and I am running the version under gcc-11 at the moment. (Apparently I have a few weather stations nearby.)

So lets summarize this. I was missing a file for gcc-11. Otherwise the compilers are fine and at least one case of cmake worked fine. So gnuradio is using some element of cmake that may not be working on 15.3. I will ask the gnuradio list to help me use git to get some older releases.

How exactly you “tried” it? If your application actually used GCC 10 or 11, you would not get these errors. So apparently although you think you are using GCC 10 or 11 in reality you are using default compiler which is GCC 7. But as you continue to be silent about what you did, it is impossible to guess what could go wrong.

I am using the flag for cmake to set the gcc compiler. That flag works fine.


cmake -DCMAKE_C_COMPILER=gcc-11  -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../

Using the instructions from
InstallingGR - GNU Radio I have built and tested the 3.9 maintenance release on opensue15.3 using gcc-11.


building release 3.9.0.0
100% tests passed, 0 tests failed out of 252
Total Test time (real) = 149.09 sec

Using the 3.10 release it has the namespace error. I will take this up with the gnuradio forum and report back. I gather they are using debian based linux.

OK, thank you for sharing. If anything, this may help someone else in similar situation.


cmake -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER=gcc-11 -DENABLE_GR_SOAPY=ON -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../

The addition of -DCMAKE_CXX_COMPILER=g+±11 got rid of the namespace error.

I’m working on some dependencies that cropped up once I added -DCMAKE_CXX_COMPILER=g+±11

FYI,
As a challenge, I tried to compile gnuradio on leap 15.3 That was unsuccessful even with gcc version changes.

I tried on an updated to current level tumbleweed in a vm. That was successful. It was done with no tinkering with the gcc version settings. There are however many hidden dependencies that needed to be installed for cmake to finish configutation. Took many hours but worked. You need to dedicate some time to it but can get it done.

In the meantime, I went back and installed package management version of gnu radio onto leap 15.3 . It opens up the gui ok.

tom kosvic

I built gnuradio 3.9 on 15.3. I am pretty sure I have the dependencies though some show up in red on yast meaning there is no appropriate version for 15.3. Trust me I have spent hours.

For some reason it doesn’t find numpy when building 3.10, but does for 3.9.