delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/19/13:12:17

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=uuK
dkIAMLHPdOsAqdOgiII0FFQeFFHGLb1iaMSmcwfLDcTogTFmCoWjvy7gBKnC2oo6
9P3L5KP+e1tEnWApxK1tcfPiXcdN4SyAtL9ovOnYao0rBQ209Qfv1FxppaIiOXIF
Mwb6bnaN0st/bFio4BrWwfOZ8cXUzLKagz7fxUNU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=EvzggVrTz
/6r+6SYSTt9z0WnPzU=; b=vqLBRXz0A0SdsDXys0ytFacnvhh/R8h27fRzvUA7v
ItzlddKyStbpwOi0u896FpnYnWcv48oXK8k455Srk+bgCrgyvxJePKkE8W2p8U6y
nQgy6lomwMbNMMuA9HCNOxj8iIT9Ma2Zpk3txvldtMA/MY7IT97sdZoVFnNs195k
gw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 spammy=H*MI:online, HContent-Language:de-DE, MMD, HX-Languages-Length:1050
X-HELO: mailout01.t-online.de
To: cygwin AT cygwin DOT com
From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker AT t-online DOT de>
Subject: Fixes for gcc-8.3 broke compilation with gcc-7.4
Openpgp: preference=signencrypt
Message-ID: <844534de-aa4a-7146-a512-f8264f4ba503@t-online.de>
Date: Fri, 19 Jul 2019 19:11:20 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
MIME-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019