[smartmontools-support] info about C++11 support
Christian Franke
Christian.Franke at t-online.de
Mon Feb 26 14:05:10 CET 2018
Hi,
Niclas Borlin wrote:
> A per the request of the configure script for smartmontools-6.6, here
> is the info (I think) you wanted.
Thanks for the info. Actually this is the very first report for this issue.
> ...
> checking for g++ option to accept C++11... unknown
> configure: error:
> This version of smartmontools does not use C++11 features, but future
> versions possibly will.
> This script was unable to determine a compiler option to enable C++11.
> Use option '--with-cxx11-option=OPTION' to specify the compiler option
> (it will be checked, but not used in the actual build).
> Use option '--without-cxx11-option' to suppress this error message if the
> compiler lacks C++11 support.
> In both cases, please send info about compiler and platform to
> smartmontools-support at listi.jpberlin.de - Thanks!
> ...
>
> eddie:~/src/smartctl/smartmontools-6.6> uname -a
> Linux eddie 3.16.0-0.bpo.4-kirkwood #1 Debian 3.16.39-1+deb8u1~bpo70+1
> (2017-02-24) armv5tel GNU/Linux
Which kind of armv5tel hardware is this?
> eddie:~/src/smartctl/smartmontools-6.6> sudo lsb_release -a
> No LSB modules are available.
> Distributor ID: Debian
> Description: Debian GNU/Linux 7.11 (wheezy)
> Release: 7.11
> Codename: wheezy
>
> eddie:~/src/smartctl/smartmontools-6.6> g++ --version
> g++ (Debian 4.6.3-14) 4.6.3
> ...
GCC 4.6 supports some C++11 subset with the -std=*++0x options:
https://gcc.gnu.org/gcc-4.6/cxx0x_status.html
Please check which C++ level is reported in the __cplusplus macro, for
example:
$ echo 'level=__cplusplus' | g++ -std=c++0x -xc++ -E - | grep level
level=201103L
Debian wheezy is still supported. This may be one reason to avoid C++11
features for the next release(s).
BTW, there may be also a GCC 4.7 available:
https://packages.debian.org/wheezy/g++-4.7
https://gcc.gnu.org/gcc-4.7/cxx0x_status.html
Thanks,
Christian
More information about the Smartmontools-support
mailing list