public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Fixes for gcc-8.3 broke compilation with gcc-7.4
@ 2019-07-19 17:11 Hans-Bernhard Bröker
  2019-07-19 18:12 ` Ken Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Hans-Bernhard Bröker @ 2019-07-19 17:11 UTC (permalink / raw)
  To: cygwin

Hello one and all,

As of commit b66dddb56d14a4032969fe8bb92d64baa6e0362e,
winsup/cygwin/uname.cc 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/uname.cc
../../../../cygwin-clean-copy/winsup/cygwin/uname.cc: In function 'int
uname_x(utsname*)':
../../../../cygwin-clean-copy/winsup/cygwin/uname.cc:28:58: error:
'nonstring' attribute directive ignored [-Werror=attributes]
       char buf[NI_MAXHOST + 1] __attribute__ ((nonstring));
                                                          ^
cc1plus: all warnings being treated as errors
make: ***
[../../../../cygwin-clean-copy/winsup/cygwin/../Makefile.common:41:
uname.o] Error 1



--
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: Fixes for gcc-8.3 broke compilation with gcc-7.4
  2019-07-19 17:11 Fixes for gcc-8.3 broke compilation with gcc-7.4 Hans-Bernhard Bröker
@ 2019-07-19 18:12 ` Ken Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Ken Brown @ 2019-07-19 18:12 UTC (permalink / raw)
  To: cygwin

On 7/19/2019 1:11 PM, Hans-Bernhard Bröker wrote:
> Hello one and all,
> 
> As of commit b66dddb56d14a4032969fe8bb92d64baa6e0362e,
> winsup/cygwin/uname.cc 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:

Sorry about that.  I'll send a fix to cygwin-patches shortly.

Ken

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

end of thread, other threads:[~2019-07-19 18:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-19 17:11 Fixes for gcc-8.3 broke compilation with gcc-7.4 Hans-Bernhard Bröker
2019-07-19 18:12 ` Ken Brown

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