From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by sourceware.org (Postfix) with ESMTPS id 16675385DC0F for ; Mon, 20 Jul 2020 11:08:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 16675385DC0F Received: by mail-io1-xd34.google.com with SMTP id c16so17094588ioi.9 for ; Mon, 20 Jul 2020 04:08:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K90V/MbdWD/32oouibX1vqfccf0uwcyFfbGV46md4Jo=; b=UyKArOMpFHKROBxmyuMzgEYmVLC3Qzow8P9izQQ76iQkSDFik7Ci+dPwggb56p/UxF oG/SYQzQREFFUgZXzhZxVvzWR+Rqse9+whFFFERQ5unMn8cj0Oo2Sqwj901a6jveUqff Y7aDMTheZX1mC3f6zSOFyVhnGQcWq/q/lcGlZCV0aSAtElOXsqRc4KWo0efGHnpJRF2w yf/0YyJ2y0I7HJ5wNYTBk/p0pTpfXx7E3tbcw9eUTQPQ+/obD04qr970FQI/3dNfzLYG URvV0lhBVsQG9dTKPywLHbFp0TcF+qsBnLV4rt+wopIGZShx3L2WZtwnVLnY+auFq2hi lcOA== X-Gm-Message-State: AOAM5320RvpWsk3qj6tvDAe6CfpTKS9XizYigajQgNMPdcPPUEa7wfXz qv7e+AbatjsiT+aMGZPWLiD2sID9fv6IJtEaoXg= X-Google-Smtp-Source: ABdhPJy0Aw5vDLn0uiWIAaMygL/V1RanlkwSItNh2Y4PmdsKYM9gbBnfQ42DSr3kyuXYAr8Il4U/OpL7vGsHwg239dQ= X-Received: by 2002:a5e:9b0e:: with SMTP id j14mr22571737iok.169.1595243286183; Mon, 20 Jul 2020 04:08:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Matwey V. Kornilov" Date: Mon, 20 Jul 2020 14:07:54 +0300 Message-ID: Subject: Re: avr: freestanding libstdc++ To: Jonathan Wakely Cc: gcc-help X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2020 11:08:08 -0000 =D0=BF=D0=BD, 20 =D0=B8=D1=8E=D0=BB. 2020 =D0=B3. =D0=B2 12:22, Jonathan Wa= kely : > On Sun, 19 Jul 2020 at 10:04, Matwey V. Kornilov via Gcc-help > wrote: > > > > Hi, > > > > I am trying to build freestanding libstdc++ [1] for avr target in gcc > > 10.1. Initially, I wanted to play with coroutines, so I need . > > > > I use --enable-libstdcxx --disable-host-libstdcxx for configure. > > > > ./configure script runs fine with this arguments, but then make fails > > with the following: > > > > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc > > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/ > > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include > > --sysroot=3D/usr/avr/sys-root -mmcu=3Davrxmega3 supports -fno-rtti > > -fno-exceptions... no > > checking for /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc > > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/ > > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include > > --sysroot=3D/usr/avr/sys-root -mmcu=3Davrxmega3 option to produce PIC.= .. > > -fPIC -DPIC > > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc > > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/ > > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include > > --sysroot=3D/usr/avr/sys-root -mmcu=3Davrxmega3 PIC flag -fPIC -DPIC > > works... no > > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc > > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/ > > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include > > --sysroot=3D/usr/avr/sys-root -mmcu=3Davrxmega3 static flag -static > works... no > > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc > > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/ > > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include > > --sysroot=3D/usr/avr/sys-root -mmcu=3Davrxmega3 supports -c -o file.o.= .. yes > > checking if /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc > > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/ > > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include > > --sysroot=3D/usr/avr/sys-root -mmcu=3Davrxmega3 supports -c -o file.o.= .. > > (cached) yes > > checking whether the /home/matwey/temp/gcc-10.1.0/build/./gcc/xgcc > > -B/home/matwey/temp/gcc-10.1.0/build/./gcc/ -B/usr/avr/bin/ > > -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include > > --sysroot=3D/usr/avr/sys-root -mmcu=3Davrxmega3 linker > > (/home/matwey/temp/gcc-10.1.0/build/./gcc/collect-ld) supports shared > > libraries... yes > > checking whether -lc should be explicitly linked in... yes > > checking dynamic linker characteristics... no > > checking how to hardcode library paths into programs... immediate > > checking for shl_load... configure: error: Link tests are not allowed > > after GCC_NO_EXECUTABLES. > > make[1]: *** [Makefile:10635: configure-target-libstdc++-v3] Error 1 > > make[1]: Leaving directory '/home/matwey/temp/gcc-10.1.0/build' > > make: *** [Makefile:954: all] Error 2 > > > > > > Is it configuration supported for avr architecture? > > I think it's not supported for avr. But I've been meaning to try it > for a few months and try to fix what fails, because I think it would > be really good to be able to use the freestanding parts of the C++ > library for Arduino projects. > Thank you. It would be great to see working freestanding libstdcxx for avr. --=20 With best regards, Matwey V. Kornilov