Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6D94C001B0 for ; Tue, 15 Aug 2023 13:54:32 +0000 (UTC) Subject: Re: GCC configuration issue: nanosleep does not seems to be available To: poky@lists.yoctoproject.org From: "Nicolas Wirth" X-Originating-Location: Baechli, Nidwalden, CH (146.4.107.86) X-Originating-Platform: Windows Chrome 115 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 15 Aug 2023 06:54:30 -0700 References: <29355.1692106655155071796@lists.yoctoproject.org> In-Reply-To: <29355.1692106655155071796@lists.yoctoproject.org> Message-ID: <29355.1692107670535769906@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="gfqfOxKHN3x36W0wyMLr" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 15 Aug 2023 13:54:32 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13125 --gfqfOxKHN3x36W0wyMLr Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From to console.log under: builds/my-build/work/cortexa72-cortexa53-poky-li= nux/gcc-runtime/11.2.0-r0/gcc-11.2.0/build.aarch64-poky-linux.aarch64-poky-= linux/aarch64-poky-linux/libstdc++-v3/config.log configure: 81215 : WARNING : unrecognized options: --disable-dependency-tra= cking, --with-libtool-sysroot, --enable-languages, --enable-threads, --enab= le-default-pie, --without-local-prefix, --disable-install-libiberty, --disa= ble-libssp, --enable-libitm, --enable-lto, --disable-bootstrap, --with-syst= em-zlib, --with-linker-hash-style, --enable-linker-build-id, --with-ppl, --= with-cloog, --enable-checking, --without-isl, --with-sysroot, --with-build-= sysroot, --enable-standard-branch-protection, --with-glibc-version, --enabl= e-initfini-array, --enable-__cxa_atexit, --enable-libstdccxx-time It looks like the option I'm using is not supported. I found out why: " *Another update:* GCC 4.9.0 is out and now defaults to automatically enab= ling nanosleep and sched_yield on platforms that are known to support them.= There is no longer any need to use --enable-libstdcxx-time." Which cause me troubles to understand why I still get the following error: >=20 >=20 >=20 > error: 'sleep_for' is not a member of >=20 >=20 >=20 > 'std::this_thread' >=20 >=20 >=20 > 126 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 > std::this_thread::sleep_for(std::chrono::milliseconds(500)); >=20 > --gfqfOxKHN3x36W0wyMLr Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

From to console.log under: builds/my-build/work/cortexa72-cortexa53-poky= -linux/gcc-runtime/11.2.0-r0/gcc-11.2.0/build.aarch64-poky-linux.aarch64-po= ky-linux/aarch64-poky-linux/libstdc++-v3/config.log

configure:81215: WARNING: unrecognized options: --disable-dep= endency-tracking, --with-libtool-sysroot, --enable-languages, --enable-thre= ads, --enable-default-pie, --without-local-prefix, --disable-install-libibe= rty, --disable-libssp, --enable-libitm, --enable-lto, --disable-bootstrap, = --with-system-zlib, --with-linker-hash-style, --enable-linker-build-id, --w= ith-ppl, --with-cloog, --enable-checking, --without-isl, --with-sysroot, --= with-build-sysroot, --enable-standard-branch-protection, --with-glibc-versi= on, --enable-initfini-array, --enable-__cxa_atexit, --enable-libstdccxx-tim= e

It looks like the option I'm using is not supported. I = found out why:

"Another update: GCC 4.9.0 is out an= d now defaults to automatically enabling nanosleep and sched_yield on platforms that are kn= own to support them. There is no longer any need to use --enable-libstdcxx-time."
<= /span>
Which cause me troubles to understand why I still get the follo= wing error:

error: 'sleep_for' is not a member of

    'std::this_thread'

126 |                 std::= this_thread::sleep_for(std::chrono::milliseconds(500));

 

 
--gfqfOxKHN3x36W0wyMLr--