public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* putchar and putchar_unlocked have different scope ?
@ 2017-09-02 10:55 Marco Atzeri
  2017-09-04  9:02 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Atzeri @ 2017-09-02 10:55 UTC (permalink / raw)
  To: cygwin

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');
    ^~~~~~~

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: putchar and putchar_unlocked have different scope ?
  2017-09-02 10:55 putchar and putchar_unlocked have different scope ? Marco Atzeri
@ 2017-09-04  9:02 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2017-09-04  9:02 UTC (permalink / raw)
  To: cygwin

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-04  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-02 10:55 putchar and putchar_unlocked have different scope ? Marco Atzeri
2017-09-04  9:02 ` Corinna Vinschen

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).