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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




On 15-05-2021 12:25, Lone_Wolf via arch-general wrote:

On 14-05-2021 23:06, Genes Lists via arch-general wrote:
On 5/13/21 9:29 PM, Giancarlo Razzolini via arch-dev-public wrote:
Hi,

...

Also, if you guys notice any issues, let me know.

Regards,
Giancarlo Razzolini


Hi

FYI, I've come across one issue which was triggered after updating to gcc 11.

Building kea (from git) worked fine using gcc 10, I am now seeing fail :

checking thread support... no
configure: WARNING: unsupported C++11 feature
configure: retrying by adding --std=c++1x to g++ --std=c++0x
checking --std=c++1x support... no
configure: error: thread (a C++11 feature) is not supported

gene


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.)

P.S. sorry for the bad formatting in previous message.

LW



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux