Hi Mattias! On 10/8/21 09:54, Mattias Ellert wrote: > The std::stoi, std::stol, std::stoul, ... functions should be available > in two versions. One accepting a std::string and one accepting a > std::wstring. > > In g++ version 10.3.0-11 on sh4 only the std::wstring version is > available, so when it tries to compile code that uses the std::string > version it fails. > > The problem is that for some reason the the file > > /usr/include/sh4-linux-gnu/c++/10/bits/c++config.h > > provided by libstdc++-10-dev_10.3.0-11_sh4.deb contains the line > > /* #undef _GLIBCXX11_USE_C99_STDLIB */ > > The corresponding file for other architectures contains > > #define _GLIBCXX11_USE_C99_STDLIB 1 > > This is a regression wrt earlier versions, since this used to work > without problems.
Thanks so much for tracking this down. I have seen this issue before and didn't understand what the problem was. At least I do now. I will try to build cmake with gcc-11 and see if that makes any difference. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913