Project

General

Profile

Bug #3882

Cannot compile gr-osmosdr!

Added by masterplayer31 5 months ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/01/2019
Due date:
% Done:

0%


Description

This is where I am having the problem at while compiling:

[ 30%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/soapy/soapy_common.cc.o
In file included from /usr/include/c++/5/type_traits:35:0,
from /usr/local/include/SoapySDR/Types.hpp:14,
from /home/bobby/gr-osmosdr/lib/soapy/soapy_common.h:25,
from /home/bobby/gr-osmosdr/lib/soapy/soapy_common.cc:21:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from /home/bobby/gr-osmosdr/lib/soapy/soapy_common.h:25:0,
from /home/bobby/gr-osmosdr/lib/soapy/soapy_common.cc:21:
/usr/local/include/SoapySDR/Types.hpp:174:15: error: ‘enable_if’ in namespace ‘std’ does not name a template type
typename std::enable_if<std::is_same<Type, bool>::value, Type>::type StringToSe
^
/usr/local/include/SoapySDR/Types.hpp:174:24: error: expected unqualified-id before ‘<’ token
typename std::enable_if<std::is_same<Type, bool>::value, Type>::type StringToSe
^
/usr/local/include/SoapySDR/Types.hpp:189:15: error: ‘enable_if’ in namespace ‘std’ does not name a template type
typename std::enable_if<not std::is_same<Type, bool>::value and std::is_integra
^
/usr/local/include/SoapySDR/Types.hpp:189:24: error: expected unqualified-id before ‘<’ token
typename std::enable_if<not std::is_same<Type, bool>::value and std::is_integra
^
In file included from /home/bobby/gr-osmosdr/lib/soapy/soapy_common.h:25:0,
from /home/bobby/gr-osmosdr/lib/soapy/soapy_common.cc:21:
/usr/local/include/SoapySDR/Types.hpp:195:15: error: ‘enable_if’ in namespace ‘std’ does not name a template type
typename std::enable_if<not std::is_same<Type, bool>::value and std::is_integra
^
/usr/local/include/SoapySDR/Types.hpp:195:24: error: expected unqualified-id before ‘<’ token
typename std::enable_if<not std::is_same<Type, bool>::value and std::is_integra
^
/usr/local/include/SoapySDR/Types.hpp:201:15: error: ‘enable_if’ in namespace ‘std’ does not name a template type
typename std::enable_if<std::is_floating_point<Type>::value, Type>::type String
^
/usr/local/include/SoapySDR/Types.hpp:201:24: error: expected unqualified-id before ‘<’ token
typename std::enable_if<std::is_floating_point<Type>::value, Type>::type String
^
/usr/local/include/SoapySDR/Types.hpp:207:15: error: ‘enable_if’ in namespace ‘std’ does not name a template type
typename std::enable_if<std::is_same<typename std::decay<Type>::type, std::stri
^
/usr/local/include/SoapySDR/Types.hpp:207:24: error: expected unqualified-id before ‘<’ token
typename std::enable_if<std::is_same<typename std::decay<Type>::type, std::stri
^
/usr/local/include/SoapySDR/Types.hpp: In function ‘std::__cxx11::string SoapySDR::Detail::SettingToString(const Type&)’:
/usr/local/include/SoapySDR/Types.hpp:230:12: error: ‘to_string’ is not a member of ‘std’
return std::to_string(s);
^
/usr/local/include/SoapySDR/Types.hpp: In function ‘Type SoapySDR::StringToSetting(const string&)’:
/usr/local/include/SoapySDR/Types.hpp:238:12: error: ‘StringToSetting’ is not a member of ‘SoapySDR::Detail’
return SoapySDR::Detail::StringToSetting<Type>(s);
^
/usr/local/include/SoapySDR/Types.hpp:238:12: note: suggested alternative:
/usr/local/include/SoapySDR/Types.hpp:236:6: note: ‘SoapySDR::StringToSetting’
Type SoapySDR::StringToSetting(const std::string &s)
^
/usr/local/include/SoapySDR/Types.hpp:238:50: error: expected primary-expression before ‘>’ token
return SoapySDR::Detail::StringToSetting<Type>(s);
^
lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:350: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/soapy/soapy_common.cc.o' failed
make2: * [lib/CMakeFiles/gnuradio-osmosdr.dir/soapy/soapy_common.cc.o] Error 1
CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/all' failed
make1:
[lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *
* [all] Error 2

Can this be fixed?

Bobby Burgess

History

#1 Updated by roh 5 months ago

your gcc is 'old'

try cmake -std:UNINITIALIZED=c++11
or similar variants as the error says:

from /home/bobby/gr-osmosdr/lib/soapy/soapy_common.cc:21:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

#2 Updated by masterplayer31 5 months ago

Thanks for replying.

Right now I am using a release version of SoapySDR and I was able to do the
gr-osmosdr then.

Bobby Burgess

On Mon, Apr 1, 2019 at 5:24 PM roh [REDMINE] <>
wrote:

Issue #3882 has been updated by roh.

your gcc is 'old'

try cmake -std:UNINITIALIZED=c++11
or similar variants as the error says:

> from /home/bobby/gr-osmosdr/lib/soapy/soapy_common.cc:21:
> /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file
> requires compiler and library support for the ISO C++ 2011 standard. This
> support must be enabled with the -std=c++11 or -std=gnu++11 compiler
> options.
> 

#3 Updated by laforge about 1 month ago

  • Assignee set to horiz0n

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)