From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id ACEB8385800B for ; Tue, 8 Dec 2020 08:13:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org ACEB8385800B Received: by mail-ej1-x62f.google.com with SMTP id qw4so23339873ejb.12 for ; Tue, 08 Dec 2020 00:13:01 -0800 (PST) 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=3igK4YAA8bLbboQjzR2M5J6vF3T0P8jaKOxxR1DnuhQ=; b=Uc1yw2eSdRd1m/l2v4ONbzbgBNUm4tXIKYrX4AlGoqS+pm5VNK3bB23K8cVHEiRZW/ SVtsp1TR109xEiHUQMfP8g2YJ4eypXsRfBquY52t6/phPWnYV8pnl8ux8NmC4NAwOsVW 1g25AOn6UR+HFK88T94mh5pdD46R+SYSl5/kE1aL3WtXzW1oCPT4WVFYzMr+aXBIgYDy qeenXZSCZPeXySn9d0UvkvsHGekKLT4GZayhFhmWGVNFCq7xTIRZIoQjWxtckSpB+uUW slUEUU5e9zCRVY2RpvBMlL2kJ+p2bCk/jfi54qee9e/d51hNOOL/O3NEu/KcpHR6b5eA GeuA== X-Gm-Message-State: AOAM533ibPLSFT+w4kkUIvCxVUzCvoLz0Tfvfin+Yy8uJsMT8Ak3FShX gW0CSUK/fVR+E2daJ2g8BAup8aAXYG5CHY3jPV8= X-Google-Smtp-Source: ABdhPJzg/fpYp6NmTuEzspIMioJvHDgjPjDo8NVhUNbiQNi/7yJYv5pE59EX5R/UE9dHLhkq+GlmDGLdzMGIlkp0YgE= X-Received: by 2002:a17:906:6d47:: with SMTP id a7mr15892518ejt.340.1607415180410; Tue, 08 Dec 2020 00:13:00 -0800 (PST) MIME-Version: 1.0 References: <20201207203033.GI2309743@redhat.com> <87sg8h8i2e.fsf@keithp.com> <87mtyp8bmi.fsf@keithp.com> In-Reply-To: <87mtyp8bmi.fsf@keithp.com> From: Vladimir V Date: Tue, 8 Dec 2020 09:12:48 +0100 Message-ID: Subject: Re: Problem building libstdc++ for the avr target To: Keith Packard Cc: Jonathan Wakely , libstdc++@gcc.gnu.org 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, 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: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2020 08:13:03 -0000 The library provides unistd header with a small subset of POSIX io function declarations. I had to extend it to satisfy build dependencies of the filesystem. Might be my patch covered iostream dependencies as well. Vladimir =D0=B2=D1=82, 8 =D0=B4=D0=B5=D0=BA. 2020 =D0=B3. =D0=B2 00:00, Keith Packar= d : > Vladimir V writes: > > > It looks like the existing stdio was at least sufficient to build the > > iostream. > > I was mostly focusing on basic headers so haven't yet tested if it is > > functional. > > It "shouldn't" work as iostream uses fileno to get a POSIX file > descriptor, then uses read and write directly, instead of stdio > functions like putc and getc. Presumably it compiles because there are > definitions of all of the relevant interfaces somewhere? > > -- > -keith >