From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: putchar and putchar_unlocked have different scope ?
Date: Mon, 04 Sep 2017 09:02:00 -0000 [thread overview]
Message-ID: <20170904090220.GA3532@calimero.vinschen.de> (raw)
In-Reply-To: <e0a17c2e-d4de-ea3b-0476-68cb11ae6e76@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2348 bytes --]
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
>
>
> x86_64-pc-cygwin-g++ -std=gnu++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/devel/gcc/gcc-6.3.0-2.src/gcc-6.3.0-2.x86_64/src/gcc-6.3.0/gcc/../include
>
> -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/../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 ‘void genheader()’:
> /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: ‘_putchar_unlocked’ 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 ‘putchar’
> 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
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2017-09-04 9:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-02 10:55 Marco Atzeri
2017-09-04 9:02 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170904090220.GA3532@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).