delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/02/12/05:11:30

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EDB93858D38
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1707732688;
bh=3Sv8yXoB8/+zOKYhk+Dp1bSM9RsVmD81q8PFWN2BBEc=;
h=Subject:To:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=Y4EbPUc9HMQedetwx75yr6efLR1VuSEctgwnOZ/8z+IGjqsTz/nygXUiN1Eh2TAZl
Xv3RaD5TvkiOERC39GKGwD9R42oP2+dd3M5sbiJWtzFilEbhtaCvT07ICpijAvkPwS
wjzS8YE1JKNJb8BZOIepsjIyrG38ehUfqgzHYew0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3D3613858D37
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3D3613858D37
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707732667; cv=none;
b=eyaqhGe+DQadyQd2Qfa2S3DvAd4lvUhuf7gXRDrQdfZb2S0X2Rb96+KOpUozIjWczlmz4T6JFT6HU9cNbWo2daq+FavYpuW9MvvfKGAg9GUKxzrVBNibO64KdnGFaWosFvbvP80ke/tZp+Y7o+XcLjz1ozSKf2SPuS06Z3L+6Dk=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1707732667; c=relaxed/simple;
bh=0PCVTXh+vdizd3qY7OzaUu71/5Xyvys8J1B2JAuoKGw=;
h=From:Subject:To:Message-ID:Date:MIME-Version;
b=GQBfeDR1pw/RPV91Me1IcugeULPW8L93BmA6RFeZLSNTLqGfkzWI4XHc7TOlMXq5F5BvDsOOsJvjdqD64LrUXWzr/5B7vOJROp8aKhdnaX5N48oP4DdePof12uLpU14uSlMJU247adNuAWtqodMr8B7Y/mE2CS0NxfahIS8z6/k=
ARC-Authentication-Results: i=1; server2.sourceware.org
Subject: Cygwin build from source is broken since binutils-2.42-1
To: cygwin AT cygwin DOT com
Message-ID: <ad23413c-3b72-884a-178f-4b1e8be3ee65@t-online.de>
Date: Mon, 12 Feb 2024 11:10:58 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
SeaMonkey/2.53.16
MIME-Version: 1.0
X-TOI-EXPURGATEID: 150726::1707732660-CB7FDDC7-0F62A910/0/0 CLEAN NORMAL
X-TOI-MSGID: b6a0bd2b-f4c5-4c7c-a454-e3db787f6dc2
X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, FREEMAIL_FROM,
KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Christian Franke via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Christian Franke <Christian DOT Franke AT t-online DOT de>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 41CABTa1009763

This is not a binutils regression: A build from cygwin 3.5.0-1 src 
package or current newlib-cygwin git main (bfb68a9) with new 
binutils-2.42-1 fails with:

"
In file included from ../../../../winsup/utils/dumper.cc:23:
/usr/include/bfd.h:2748:1: error: expected initializer before 
‘ATTRIBUTE_WARN_UNUSED_RESULT’
"

Downgrading to binutils 2.41-3 fixes the problem.

A diff of /usr/include/bsd.h shows that ATTRIBUTE_WARN_UNUSED_RESULT is 
a new addition in 2.42-1. This requires /usr/include/ansidecl.h. It is 
included by /usr/include/bsd.h but this has no effect because Cygwin 
source tree provides its own ansidecl.h which lacks 
ATTRIBUTE_WARN_UNUSED_RESULT:

$ g++ ....MANY_OPTIONS... -E ../../../../winsup/utils/dumper.cc
...
# 1 "../../../../winsup/utils/dumper.cc"
...
# 1 "../../../../winsup/../include/ansidecl.h" 1  <== #define _ANSIDECL_H
...
# 1 "/usr/include/bfd.h" 1 3 4
...
# 1 "/usr/include/ansidecl.h" 1 3 4  <== #ifndef _ANSIDECL_H
...

-- 
Regards,
Christian


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

- Raw text -


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