putchar and putchar_unlocked have different scope ?

Marco Atzeri marco.atzeri@gmail.com
Sat Sep 2 10:55:00 GMT 2017


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



More information about the Cygwin mailing list