This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fixes for gcc-8.3 broke compilation with gcc-7.4

Hello one and all,

As of commit b66dddb56d14a4032969fe8bb92d64baa6e0362e,
winsup/cygwin/ no longer compiles with the current GCC version
installed with cygwin itself.  The newly added __attribute__ is unknown
to GCC 7, and thus triggers a -Werror for unused/unknown attributes:

$ LANG=C make
c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall
-Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin
-fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer
-mcmodel=small -std=gnu++98 -c -o uname.o
../../../../cygwin-clean-copy/winsup/cygwin/ In function 'int
../../../../cygwin-clean-copy/winsup/cygwin/ error:
'nonstring' attribute directive ignored [-Werror=attributes]
       char buf[NI_MAXHOST + 1] __attribute__ ((nonstring));
cc1plus: all warnings being treated as errors
make: ***
uname.o] Error 1

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]