From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id DB67C3858406 for ; Tue, 8 Nov 2022 12:47:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DB67C3858406 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667911621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=T2cg/eMsCi5cvGE/l5nSsRLLljXFODJuY7PuRbsBItM=; b=TLZauFVxcTDbWf6gZEqE6jUj2pNzOLhPc2SMfdM8Kx6pnzQy0nrDQh9cSPc0dztRXdiGWk sSBlsaO77O9rLlv5F7FqYPi6+FkrH+xlb+bxPcz2dwuWAqjhn5e8qFAB1r848QgGLbEFvZ O7VXGVS2XKeDE02HRNjqwOyRZfKMPBk= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-85-_KRoEJyOOGub1jzODI0HNA-1; Tue, 08 Nov 2022 07:47:00 -0500 X-MC-Unique: _KRoEJyOOGub1jzODI0HNA-1 Received: by mail-ej1-f70.google.com with SMTP id xh12-20020a170906da8c00b007413144e87fso8319897ejb.14 for ; Tue, 08 Nov 2022 04:47:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=T2cg/eMsCi5cvGE/l5nSsRLLljXFODJuY7PuRbsBItM=; b=2Ni8XX7NuwWK0YA/fYLGuRbIccyuRJjVEJARP1MmuMQzx6BR30wx8j/+MfA5so5n5o ZRBQ65BD/NRHStMYVG3XQAV/Cn2ow4ns+SDxciUH+UU7lcKvJLnixb7++qI+maHbTVqF zcnIGQsRAymt4r3KcNpmhoUH1q+yOnMglIZUSr1kPCYj6ueXc0oCRCmOK7NaLExJbhVO Lv72lMnbYkujq81HQ12rKjeh7mBQNG4LFopeChVHXODeXJNSiQm6+7MF2Jk8Y2ifclt9 RDEIHXzS5Q7naiuzVWIwcyqb1kxc8j0p65J4jut1qrEkVTrFZ/G9vzTzF7lVJa1Y4LD1 6L9Q== X-Gm-Message-State: ACrzQf1Jlsky6fAlCU7+iMCdKglKb1z3ksNR3+WUsVrDisXAASOPEDla 3w/8Q6LlJ6S0E95Kec5HSA5TJtuWI302jA3kBnyvFIyoBHpZmKVb2n8OYf6NlEe7+YX/2/qw/rC NpAQclSmecVxLT0fzGlx/cLI= X-Received: by 2002:a17:906:fe46:b0:73d:939a:ec99 with SMTP id wz6-20020a170906fe4600b0073d939aec99mr53372212ejb.169.1667911619218; Tue, 08 Nov 2022 04:46:59 -0800 (PST) X-Google-Smtp-Source: AMsMyM4oZUCYaJ060mYmagNzcEfQ4Z0zgHQ5vGVtis5RfJ6n6/0FbcuvSEPQeMvVQx1MGC19nmhqtVt1vOWZnrYxjdc= X-Received: by 2002:a17:906:fe46:b0:73d:939a:ec99 with SMTP id wz6-20020a170906fe4600b0073d939aec99mr53372194ejb.169.1667911619003; Tue, 08 Nov 2022 04:46:59 -0800 (PST) MIME-Version: 1.0 References: <878rklk7ws.fsf@oldenburg.str.redhat.com> In-Reply-To: From: Jonathan Wakely Date: Tue, 8 Nov 2022 12:46:48 +0000 Message-ID: Subject: Re: msp430-elf cross-compiler: libstdc++ supported? To: Florian Weimer Cc: gcc@gcc.gnu.org, libstdc++@gcc.gnu.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 8 Nov 2022 at 12:37, Jonathan Wakely wrote: > > On Tue, 8 Nov 2022 at 11:22, Florian Weimer via Libstdc++ > wrote: > > > > I'm trying to validate a change to gcc/config/msp430/msp430.cc. > > The cross-compiler builds as far as I can tell, but I hit a snag while > > configuring libstdc++: > > > > checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. > > make[1]: *** [Makefile:12334: configure-target-libstdc++-v3] Error 1 > > make[1]: Leaving directory '/root/msp/build-gcc' > > > > Is this expected? Is libstdc++ even supported for this target? > > Yes. What's your configure command? You probably need at least --with-newlib. > > I think my last successful msp430 build was using: > > .../gcc/configure --target=msp430-elf --prefix=$HOME/gcc/msp430-elf > --disable-libcc1 --disable-libgomp --disable-libitm --disable-libssp > --disable-libvtv --disable-nls --with-system-zlib > target_alias=msp430-elf --disable-libstdcxx-pch > --disable-full-memory-range --with-newlib --enable-libstdcxx > --enable-languages=c,c++ > > With the cross binutils already installed to $PREFIX/gcc/msp430-elf Oh actually the libstdc++ build fails on trunk, but that is a very recent regression and happens after configure succeeds: /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc: In function 'std::from_chars_result std::{anonymous}::__floating_from_chars_hex(const char*, const char*, T&)': /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:786:9: error: 'fast_float' has not been declared 786 | = fast_float::binary_format::mantissa_explicit_bits(); | ^~~~~~~~~~ /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:786:36: error: expected primary-expression before '>' token 786 | = fast_float::binary_format::mantissa_explicit_bits(); | ^ libtool: compile: /home/jwakely/src/gcc/build-16bit/./gcc/xgcc -shared-libgcc -B/home/jwakely/src/gcc/build-16bit/./gcc -nostdinc++ -L/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/src -L/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/src/.libs -L/home/jwakely/src/gcc/build-16bit/msp430-elf/li bstdc++-v3/libsupc++/.libs -nostdinc -B/home/jwakely/src/gcc/build-16bit/msp430-elf/newlib/ -isystem /home/jwakely/src/gcc/build-16bit/msp430-elf/newlib/targ-include -isystem /home/jwakely/src/gcc/gcc/newlib/libc/include -B/home/jwakely/src/gcc/build-16bit/msp430-elf/libgloss/msp430 -L/home/jwakely/src/gcc/build-16 bit/msp430-elf/libgloss/libnosys -L/home/jwakely/src/gcc/gcc/libgloss/msp430 -B/home/jwakely/gcc/msp430-elf/msp430-elf/bin/ -B/home/jwakely/gcc/msp430-elf/msp430-elf/lib/ -isystem /home/jwakely/gcc/msp430-elf/msp430-elf/include -isystem /home/jwakely/gcc/msp430-elf/msp430-elf/sys-include -I/home/jwakely/src/gcc/gcc /libstdc++-v3/../libgcc -I/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/include/msp430-elf -I/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/include -I/home/jwakely/src/gcc/gcc/libstdc++-v3/libsupc++ -std=gnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wa bi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=string-inst.lo -fimplicit-templates -g -O2 -c /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/string-inst.cc -o string-inst.o /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=compile /home/jwakely/src/gcc/build-16bit/./gcc/xgcc -shared-libgcc -B/home/jwakely/src/gcc/build-16bit/./gcc -nostdinc++ -L/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/src -L/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/src/.lib s -L/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/libsupc++/.libs -nostdinc -B/home/jwakely/src/gcc/build-16bit/msp430-elf/newlib/ -isystem /home/jwakely/src/gcc/build-16bit/msp430-elf/newlib/targ-include -isystem /home/jwakely/src/gcc/gcc/newlib/libc/include -B/home/jwakely/src/gcc/build-16bit/msp430-e lf/libgloss/msp430 -L/home/jwakely/src/gcc/build-16bit/msp430-elf/libgloss/libnosys -L/home/jwakely/src/gcc/gcc/libgloss/msp430 -B/home/jwakely/gcc/msp430-elf/msp430-elf/bin/ -B/home/jwakely/gcc/msp430-elf/msp430-elf/lib/ -isystem /home/jwakely/gcc/msp430-elf/msp430-elf/include -isystem /home/jwakely/gcc/msp430-elf /msp430-elf/sys-include -I/home/jwakely/src/gcc/gcc/libstdc++-v3/../libgcc -I/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/include/msp430-elf -I/home/jwakely/src/gcc/build-16bit/msp430-elf/libstdc++-v3/include -I/home/jwakely/src/gcc/gcc/libstdc++-v3/libsupc++ -std=gnu++17 -nostdinc++ -fno-implic it-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=cow-string-inst.lo -fimplicit-templates -g -O2 -c -o cow-string-inst.lo /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/cow-string-inst.cc /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:786:39: error: '::mantissa_explicit_bits' has not been declared 786 | = fast_float::binary_format::mantissa_explicit_bits(); | ^~~~~~~~~~~~~~~~~~~~~~ /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:789:24: error: 'fast_float' was not declared in this scope 789 | : is_same_v ? 5 : 8; | ^~~~~~~~~~ /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:789:11: error: parse error in template argument list 789 | : is_same_v ? 5 : 8; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:947:30: error: parse error in template argument list 947 | || is_same_v) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:1132:24: error: parse error in template argument list 1132 | else if constexpr (is_same_v) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~