From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106138 invoked by alias); 15 Nov 2015 08:58:54 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 105933 invoked by uid 89); 15 Nov 2015 08:58:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qk0-f175.google.com Received: from mail-qk0-f175.google.com (HELO mail-qk0-f175.google.com) (209.85.220.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 15 Nov 2015 08:58:51 +0000 Received: by qkfo3 with SMTP id o3so87606721qkf.1 for ; Sun, 15 Nov 2015 00:58:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=CJM140IcZ201xbKkjiEyD/l9ou62oGfWWBr7ZpX5jM4=; b=Khf5H7tYaYCbW7SDocllyZJKBVSxHQ/7EjWKSb7HHLZu6wDstYnCss3E+JyMuP+9t/ y8rwkYtVc7yVGkP2HPWIgUylTOYxDwFCBxMICkAtZ2TfeDvsjNxyCU0n7ogvA5V47iib xfYCEIbAjBbKwYPMrLZ1KQOYkgEMnUll+4ym6m2PhYL//ciq9vX47ZEIrMfT1L1Sh531 UCM5HMJQ3YLvG+wCapqMhsVIQbqEoKuLhqWB5bcEejGey9HQ5KU90z9aAgOtxclN5HIQ g0++gOXbm5d/Y5Koo8Xd3HSEBfR9gsP17USXNOoKuvrxluQEZuymb7rOIPEGtNBllL0q xUYA== X-Gm-Message-State: ALoCoQnQkOsVwLh9cVl542nBi7txdIda+rclUuGNRB/zj5UWVNJZR/ZZR2HMA3tiI1KaUKbIaH8A MIME-Version: 1.0 X-Received: by 10.55.73.207 with SMTP id w198mr30622866qka.27.1447577928948; Sun, 15 Nov 2015 00:58:48 -0800 (PST) Received: by 10.140.109.200 with HTTP; Sun, 15 Nov 2015 00:58:48 -0800 (PST) In-Reply-To: <20151114163223.GE2937@redhat.com> References: <20151112114049.GY2937@redhat.com> <20151112133947.GA2937@redhat.com> <20151113145219.GQ2937@redhat.com> <20151114163223.GE2937@redhat.com> Date: Sun, 15 Nov 2015 08:58:00 -0000 Message-ID: Subject: Re: [PATCH] Enable libstdc++ numeric conversions on Cygwin From: Christophe Lyon To: Jonathan Wakely Cc: Jennifer Yao , "libstdc++@gcc.gnu.org" , "gcc-patches@gcc.gnu.org" , Andreas Tobler Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01864.txt.bz2 On 14 November 2015 at 17:32, Jonathan Wakely wrote: > On 14/11/15 09:37 +0100, Christophe Lyon wrote: >> >> Hi, this commit makes the GCC build to fail for targets using newlib >> (I tested arm-none-eabi and aarch64-none-elf) >> >> I'm seeing errors such as: >> In file included from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/string:52:0, >> from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/bits/locale_classes.h:40, >> from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/bits/ios_base.h:41, >> from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/ios:42, >> from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/istream:38, >> from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/sstream:38, >> from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/complex:45, >> from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/ccomplex:38, >> from >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/sources/gcc-fsf/gccsrc/libstdc++-v3/include/precompiled/stdc++.h:52: >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/bits/basic_string.h: >> In function 'long long int std::__cxx11::stoll(const wstring&, >> std::size_t*, int)': >> >> /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/bits/basic_string.h:5524:31: >> error: 'wcstoll' is not a member of 'std' >> { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), >> ^ > > > This shouldn't be possible unless you're using --enable-cheaders=c > because we have an autoconf test for wcstoll, and if it's found then > it should get added to namespace std by . I configure newlib with: --enable-newlib-io-pos-args \ --enable-newlib-io-c99-formats \ --enable-newlib-io-long-long \ --enable-newlib-io-long-double \ --with-sysroot="${sysroot}" Ha, and my newlib copy is not very recent, it's from Oct 30th 2013: maybe it's too old? > > Could you let me know the output of: > > grep C_INCLUDE_DIR > /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/Makefile > C_INCLUDE_DIR = ${glibcxx_srcdir}/include/c_global c_base_srcdir = $(C_INCLUDE_DIR) > Or alternatively: > > ls -l > /tmp/9122162_8.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64_be-none-elf/gcc3/aarch64_be-none-elf/libstdc++-v3/include/cwchar it's a symlink to libstdc++-v3/include/c_global/cwchar in the srcdir >