GNU bug report logs - #44535
grep-3.6 released [stable]

Previous Next

Package: grep;

Reported by: Andreas Schwab <schwab <at> suse.de>

Date: Mon, 9 Nov 2020 16:14:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andreas Schwab <schwab <at> suse.de>
Subject: bug#44535: closed (Re: bug#44535: grep-3.6 released [stable])
Date: Sun, 22 Nov 2020 02:16:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#44535: grep-3.6 released [stable]

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 44535 <at> debbugs.gnu.org.

-- 
44535: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44535
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Andreas Schwab <schwab <at> suse.de>
Cc: Gnulib bugs <bug-gnulib <at> gnu.org>, 44535-done <at> debbugs.gnu.org
Subject: Re: bug#44535: grep-3.6 released [stable]
Date: Sat, 21 Nov 2020 18:15:20 -0800
[Message part 3 (text/plain, inline)]
On 11/12/20 11:39 PM, Paul Eggert wrote:
> We have dueling compilers here, as Sun C complains if the return statements are 
> present[1], whereas gcc -Wreturn-type complains if they're absent. Since the 
> return statements are clearly bogus and unnecessary I'm inclined to continue to 
> omit them.

I looked into this some more, and found out that it's a known GCC bug. I 
installed the attached patch into Gnulib to work around the bug. Thanks for 
reporting the problem.
[0001-nl_langinfo-tests-work-around-GCC-bug-44511.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Andreas Schwab <schwab <at> suse.de>
To: bug-grep <at> gnu.org
Subject: Re: grep-3.6 released [stable]
Date: Mon, 09 Nov 2020 17:12:54 +0100
grep 3.6 fails to build:

test-nl_langinfo-mt.c: In function 'threadN_func':
test-nl_langinfo-mt.c:185:1: error: no return statement in function returning non-void [-Werror=return-type]
  185 | }
      | ^
cc1: some warnings being treated as errors
make[4]: *** [Makefile:4221: test-nl_langinfo-mt.o] Error 1

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



This bug report was last modified 4 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.