https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100285
--- Comment #8 from Christophe Lyon <clyon at gcc dot gnu.org> --- Sorry I am still seeing errors on trunk and gcc-11: FAIL: experimental/net/socket/socket_base.cc (test for excess errors) Excess errors: /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v8-m.main/nofp/libstdc++-v3/include/experimental/socket:717: error: 'linger' is not a member of 'std::experimental::net::v1::socket_base' /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v8-m.main/nofp/libstdc++-v3/include/experimental/socket:898: error: 'shutdown_type' has not been declared [...] FAIL: experimental/net/headers.cc (test for excess errors) Excess errors: /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v8-m.main/nofp/libstdc++-v3/include/experimental/socket:717: error: 'linger' is not a member of 'std::experimental::net::v1::socket_base' /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v8-m.main/nofp/libstdc++-v3/include/experimental/socket:898: error: 'shutdown_type' has not been declared [...] FAIL: experimental/net/socket/basic_socket.cc (test for excess errors) Excess errors: /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v8-m.main/nofp/libstdc++-v3/include/experimental/socket:717: error: 'linger' is not a member of 'std::experimental::net::v1::socket_base' /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v8-m.main/nofp/libstdc++-v3/include/experimental/socket:898: error: 'shutdown_type' has not been declared On some configs (low end CPU), I get in addition: FAIL: experimental/net/timer/waitable/cons.cc (test for excess errors) Excess errors: /aci-gcc-fsf/builds/gcc-fsf-gccsrc/tools/arm-none-eabi/bin/ld: /cc6v7KWK.o: in function `_ZNSt13__atomic_baseIjEmmEv': /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v6-m/nofp/libstdc++-v3/include/bits/atomic_base.h:386: undefined reference to `__atomic_fetch_sub_4' collect2: error: ld returned 1 exit status FAIL: experimental/net/timer/waitable/dest.cc (test for excess errors) Excess errors: /aci-gcc-fsf/builds/gcc-fsf-gccsrc/tools/arm-none-eabi/bin/ld: /ccKgSt10.o: in function `_ZNSt13__atomic_baseIjEppEv': /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v6-m/nofp/libstdc++-v3/include/bits/atomic_base.h:378: undefined reference to `__atomic_fetch_add_4' /aci-gcc-fsf/builds/gcc-fsf-gccsrc/tools/arm-none-eabi/bin/ld: /ccKgSt10.o: in function `_ZNSt13__atomic_baseIjEmmEv': /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v6-m/nofp/libstdc++-v3/include/bits/atomic_base.h:386: undefined reference to `__atomic_fetch_sub_4' collect2: error: ld returned 1 exit status FAIL: experimental/net/timer/waitable/ops.cc (test for excess errors) Excess errors: /aci-gcc-fsf/builds/gcc-fsf-gccsrc/tools/arm-none-eabi/bin/ld: /cc5uZ7RA.o: in function `_ZNSt13__atomic_baseIjEppEv': /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v6-m/nofp/libstdc++-v3/include/bits/atomic_base.h:378: undefined reference to `__atomic_fetch_add_4' /aci-gcc-fsf/builds/gcc-fsf-gccsrc/tools/arm-none-eabi/bin/ld: /cc5uZ7RA.o: in function `_ZNSt13__atomic_baseIjEmmEv': /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/arm-none-eabi/thumb/v6-m/nofp/libstdc++-v3/include/bits/atomic_base.h:386: undefined reference to `__atomic_fetch_sub_4' collect2: error: ld returned 1 exit status but that's a different problem