[arch-general] [arch-dev-public] GCC 11 and new toolchain on [testing]

Genes Lists lists at sapience.com
Sat May 15 17:26:29 UTC 2021


On 5/15/21 6:33 AM, Lone_Wolf via arch-general wrote:
> 
> On 15-05-2021 12:25, Lone_Wolf via arch-general wrote:
>>
...

>> It seems gcc11 in C++11 mode has only partial support for thread 
>> safety and the thread class[1] .
>>
>> Does it work if you build with -std=c++11 or -std=gnu++11 ?
>>
>> LW
>>
>>
>>
>> [1] 
>> https://gcc.gnu.org/onlinedocs/gcc-11.1.0/libstdc++/manual/manual/status.html#status.iso.2011 
>>
> 
> 
> found another possible cause in 
> https://gcc.gnu.org/gcc-11/porting_to.html .
> 
>  > The following headers are used less widely in libstdc++ and may need 
> to be included explicitly when compiled with GCC 11:
> 
>  > <limits> (for std::numeric_limits)
>  > <memory> (for std::unique_ptr, std::shared_ptr etc.)
>  > <utility> (for std::pair, std::tuple_size, std::index_sequence etc.)
>  > <thread> (for members of namespace std::this_thread.)
> 

Thanks LM - perhaps you can offer your thoughts upstream by adding to 
the issue:

https://gitlab.isc.org/isc-projects/kea/-/issues/1871

This problem exists with the released version in community as well as 
git master, fyi.


More information about the arch-general mailing list