delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/04/05:02:44

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=e8pzam5QEojCxNDwbzbifUCyj765tTJB6l7tfnuRiS43WZkPkoes9
HbrddvG9lA/kDCEVJBcQ7tDuWxtSW/XGFkvX7q3CRb7iXLvhet1h0Z617gh8M3N8
4LjqaEVjO3Q/1PFMP79sUs7C62Wvdn3BDFS5Dh3xCq7H5QSSlWfPf8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=pTbAPsf9zy2uqfpQraTnoNLUN9A=; b=AXwLpTHSznU81L/puNI0CFk4Bevi
4p+9Z8sxR/8Qzgg3Ka3lJ7gZb7cwfpZ8DlQX1rP1wJFKZsKH3L3sHZvqMNZq6osM
pB8tlF1WFjdEwMINY7DN4Hh2MHtHvo2tNG/YsrUrfTAQrQLX1FhZlnYZEpBbFfwz
2ncn1Ev0U9q50wo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-99.5 required=5.0 tests=AWL,BAYES_50,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=devel, sk:putchar, putchar, UD:3.0-2.src
X-HELO: drew.franken.de
Date: Mon, 4 Sep 2017 11:02:20 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: putchar and putchar_unlocked have different scope ?
Message-ID: <20170904090220.GA3532@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <e0a17c2e-d4de-ea3b-0476-68cb11ae6e76 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <e0a17c2e-d4de-ea3b-0476-68cb11ae6e76@gmail.com>
User-Agent: Mutt/1.8.3 (2017-05-23)

--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Marco,

On Sep  2 12:55, Marco Atzeri wrote:
> Trying to build gcc-6.3.0-2 with its source package on
> cygwin  2.9.0-0.2
>=20
>=20
> x86_64-pc-cygwin-g++ -std=3Dgnu++98 -c   -g -DIN_GCC     -fno-exceptions
> -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
> -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute
> -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
> -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE
> -fno-PIE -I. -Ibuild -I/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-=
6.3.0-2.x86_64/src/gcc-6.3.0/gcc -I/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-=
2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/build -I/cygdrive/e/cyg_pub/deve=
l/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/../include
>=20
> -I/cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gc=
c-6.3.0/gcc/../libcpp/include
> \
>         -o build/genchecksum.o /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.=
src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/genchecksum.c
> echo "      return Relocate_Path (S0, S2);" >>tmp-sdefault.adb
> echo "   end Object_Dir_Default_Name;" >>tmp-sdefault.adb
> echo "   function Target_Name return String_Ptr is" >>tmp-sdefault.adb
> In file included from /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6=
.3.0-2.x86_64/src/gcc-6.3.0/gcc/system.h:46:0,
>                  from /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6=
.3.0-2.x86_64/src/gcc-6.3.0/gcc/gengenrtl.c:22:
> /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-=
6.3.0/gcc/gengenrtl.c:
> In function =E2=80=98void genheader()=E2=80=99:
> /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-=
6.3.0/gcc/system.h:87:22:
> error: =E2=80=98_putchar_unlocked=E2=80=99 was not declared in this scope
>  #  define putchar(C) putchar_unlocked (C)
>                       ^
> /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-=
6.3.0/gcc/gengenrtl.c:298:3:
> note: in expansion of macro =E2=80=98putchar=E2=80=99
>    putchar ('\n');
>    ^~~~~~~

This is a bug in C++ handling introduced by a change in stdio.h.
I applied a fix and release another test release later today.


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--mP3DRpeJDSE+ciuQ
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZrRacAAoJEPU2Bp2uRE+gmdcP/37tc7osG4PCNHsDy+yh12vW
F+VSu+aAUXbX2PG8/6tz1wn8ALLo3BQKaLE9ixpoIgLjz8wCDxpsHU24NgEl6huv
eQzqKJzI4QLwKdlQImR6fVv+GOdZHKMukjxmgVrBd0P1q33/7yvNisRSJxRkONws
g0Lq7X8HRzL+oxZO3/AQl3MRVyT36ui+PLv56GtWhGsp1LIu1cj+/e6p23h/DIxQ
x7l60FWomgEJZGAkvmMLRoilagJfwaXMuoA0xAJuNNKMNDVCRr+nJcmpUTgkB3Qp
ZiiarZB09edK8vtv/oprJoLwg94RIBVfiXj22yKH8SK2FYYSQViEU84hE7tz0Rt3
ebpxm9zwgUb/rDcIGoi8O/yRLsJuPQyXiHTxeuT06y1g3xi5EjfFohxK7VYDzYIh
3upEVng7sPLIDLzkqvFviGDEBJuSniZ6wLAE4cKkkN4W83FHTJePmfasH8mXSjGo
ldcys9LKPBa7NEAVfAE6uYxumI9oWxt7vC10oUkePfN/79TigPHWPUibv2v1+is7
fvOsLk9Oj2NjiaCcSmkYA6Qfn0nfMwHUl9iEEe7lw3LDdxoBldzoIkijp8uiUpkB
2ZsxCubghHJsmEJvgwJgpdQNflR+2xrBPl8oEXkxJl4doWM2OeX3csXY8DjQBp29
xT+ZaxKizETsbYozn9NJ
=74MP
-----END PGP SIGNATURE-----

--mP3DRpeJDSE+ciuQ--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019