GNU bug report logs -
#44535
grep-3.6 released [stable]
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44535 in the body.
You can then email your comments to 44535 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-grep <at> gnu.org
:
bug#44535
; Package
grep
.
(Mon, 09 Nov 2020 16:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andreas Schwab <schwab <at> suse.de>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Mon, 09 Nov 2020 16:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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."
Information forwarded
to
bug-grep <at> gnu.org
:
bug#44535
; Package
grep
.
(Mon, 09 Nov 2020 16:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 44535 <at> debbugs.gnu.org (full text, mbox):
On Mon, Nov 9, 2020 at 8:14 AM Andreas Schwab <schwab <at> suse.de> wrote:
> 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
Thanks for the report.
Please also tell us which compiler you're using.
Note that for most this would only be a warning.
In order to make it a build-blocking error, you must have run
configure with --enable-gcc-warnings.
Information forwarded
to
bug-grep <at> gnu.org
:
bug#44535
; Package
grep
.
(Tue, 10 Nov 2020 11:03:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 44535 <at> debbugs.gnu.org (full text, mbox):
https://build.opensuse.org/package/live_build_log/home:Andreas_Schwab:Factory/grep/f/x86_64
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."
Information forwarded
to
bug-grep <at> gnu.org
:
bug#44535
; Package
grep
.
(Fri, 13 Nov 2020 07:40:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 44535 <at> debbugs.gnu.org (full text, mbox):
On 11/9/20 8:12 AM, Andreas Schwab wrote:
> 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
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.
> https://build.opensuse.org/package/live_build_log/home:Andreas_Schwab:Factory/grep/f/x86_64
This says you're configuring with CFLAGS='... -Werror=return-type ...'. If you
omit the "-Werror=return-type" option the problem should go away. For 'grep',
that option is more trouble than it's worth. (Perhaps someone should file a GCC
bug report....)
For the recommended set of warning options for compiling 'grep', you can use
'./configure --enable-gcc-warnings' instead.
[1]
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=bd90572c031a25e559907ae0c2b9fd3aa632893b
Information forwarded
to
bug-grep <at> gnu.org
:
bug#44535
; Package
grep
.
(Fri, 13 Nov 2020 18:28:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 44535 <at> debbugs.gnu.org (full text, mbox):
On Thu, Nov 12, 2020 at 11:40 PM Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> On 11/9/20 8:12 AM, Andreas Schwab wrote:
> > 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
>
> 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.
>
> > https://build.opensuse.org/package/live_build_log/home:Andreas_Schwab:Factory/grep/f/x86_64
>
> This says you're configuring with CFLAGS='... -Werror=return-type ...'. If you
> omit the "-Werror=return-type" option the problem should go away. For 'grep',
> that option is more trouble than it's worth. (Perhaps someone should file a GCC
> bug report....)
>
> For the recommended set of warning options for compiling 'grep', you can use
> './configure --enable-gcc-warnings' instead.
>
> [1]
> https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=bd90572c031a25e559907ae0c2b9fd3aa632893b
This led me to realize that grep had not enabled warnings on its
compilation of gnulib-tests/.
I've begun to fix that, which has including filing this gcc bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97817
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Sun, 22 Nov 2020 02:16:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Andreas Schwab <schwab <at> suse.de>
:
bug acknowledged by developer.
(Sun, 22 Nov 2020 02:16:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 44535-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (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)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 20 Dec 2020 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.