From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by sourceware.org (Postfix) with ESMTPS id 2B03F385DC0F for ; Mon, 20 Jul 2020 09:22:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2B03F385DC0F Received: by mail-io1-xd43.google.com with SMTP id i4so16771933iov.11 for ; Mon, 20 Jul 2020 02:22:54 -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=mN2a8gNtdhupH3KiMlgVaOr0+JdASjef+gsxA4FDsWQ=; b=jIwGCrvwABuAdk6KP0Jvk2T3LmDwXCNm75W5kGRrlqNqr4tIeotZzEpNtx4nB6F8nJ +mhJd4SnwRjaYbdiAm8E7o03ttjfiOowJHi2EEAszagGys2FaVgUsKRAHlOXquQ6qhBL gbOGhyKRVKWEiZARw8TD8IiaOfv4DVjSIcmu+MNNzyoNH6Kmm44ngDIwuWszZqlC3T3i H/z4cFWMtCzVXjtVudf5MtIFXiH6wcuH2FnsNFhwLz/KB18VTyock2BN7MSqI7JKidO6 og4TwNv3euKld0kNO7jvhdaJ1aXeGh0xIL+2SYjVNRsIoRpEK3kggIdGg1iynml6bsvO nGYQ== X-Gm-Message-State: AOAM530bYOb89MivDOZOMuVum3Gc8M+4gJ0MEe4Gufag1O+o8yNruPlM 29K75aRxJSfEcEDHpNDklqd48RXgClAgnx/Gsh8= X-Google-Smtp-Source: ABdhPJz1izLGiIQ+NO2xhxiDP+LyoTvCqTLxhxQHa4Djfr/lW17m5YqD3fp+Z9LaHjdPJNiO7I05dA1Avisz7S6ng4M= X-Received: by 2002:a05:6602:2ac8:: with SMTP id m8mr22479639iov.36.1595236973629; Mon, 20 Jul 2020 02:22:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Mon, 20 Jul 2020 10:22:42 +0100 Message-ID: Subject: Re: avr: freestanding libstdc++ To: "Matwey V. Kornilov" Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 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 09:22:55 -0000 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=/usr/avr/sys-root -mmcu=avrxmega3 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=/usr/avr/sys-root -mmcu=avrxmega3 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=/usr/avr/sys-root -mmcu=avrxmega3 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=/usr/avr/sys-root -mmcu=avrxmega3 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=/usr/avr/sys-root -mmcu=avrxmega3 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=/usr/avr/sys-root -mmcu=avrxmega3 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=/usr/avr/sys-root -mmcu=avrxmega3 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.