GNU bug report logs -
#19935
Checking whether C compiler handles -Wenum-compare does not work
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19935 in the body.
You can then email your comments to 19935 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#19935
; Package
grep
.
(Tue, 24 Feb 2015 17:53:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lukasz Dorau <lukasz.dev.dorau <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-grep <at> gnu.org
.
(Tue, 24 Feb 2015 17:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Checking whether C compiler handles -Wenum-compare does not work:
configure:34007: checking whether C compiler handles -Wenum-compare
configure:34026: gcc -std=gnu99 -o conftest -g -O2 -Wenum-compare
conftest.c >&5
cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++
but not for C
configure:34026: $? = 0
configure:34037: result: yes
Whole config.log is attached.
As a result make fails:
$ make
make all-recursive
make[1]: Entering directory `/mnt/files/repos/grep'
Making all in po
make[2]: Entering directory `/mnt/files/repos/grep/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/files/repos/grep/po'
Making all in lib
make[2]: Entering directory `/mnt/files/repos/grep/lib'
make all-am
make[3]: Entering directory `/mnt/files/repos/grep/lib'
CC binary-io.o
cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++
but not for C
cc1: warnings being treated as errors
In file included from binary-io.c:3:
binary-io.h:53: error: no previous prototype for 'set_binary_mode'
[-Wmissing-prototypes]
make[3]: *** [binary-io.o] Error 1
make[3]: Leaving directory `/mnt/files/repos/grep/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/files/repos/grep/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/files/repos/grep'
make: *** [all] Error 2
--
Lukasz
[Message part 2 (text/html, inline)]
[config.log.gz (application/x-gzip, attachment)]
Information forwarded
to
bug-grep <at> gnu.org
:
bug#19935
; Package
grep
.
(Sun, 20 Sep 2015 01:18:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 19935 <at> debbugs.gnu.org (full text, mbox):
On Tue, Feb 24, 2015 at 3:02 AM, Lukasz Dorau
<lukasz.dev.dorau <at> gmail.com> wrote:
> Checking whether C compiler handles -Wenum-compare does not work:
>
> configure:34007: checking whether C compiler handles -Wenum-compare
> configure:34026: gcc -std=gnu99 -o conftest -g -O2 -Wenum-compare
> conftest.c >&5
> cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++
> but not for C
> configure:34026: $? = 0
> configure:34037: result: yes
>
> Whole config.log is attached.
>
> As a result make fails:
> $ make
> make all-recursive
> make[1]: Entering directory `/mnt/files/repos/grep'
> Making all in po
> make[2]: Entering directory `/mnt/files/repos/grep/po'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/mnt/files/repos/grep/po'
> Making all in lib
> make[2]: Entering directory `/mnt/files/repos/grep/lib'
> make all-am
> make[3]: Entering directory `/mnt/files/repos/grep/lib'
> CC binary-io.o
> cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++
> but not for C
Thanks for the report and sorry about the delay.
I'm guessing that is due to your use of an older version of gcc.
Can you still reproduce that problem using grep-2.21? If so, can you
try a newer version of gcc?
Which version of gcc are you using?
Information forwarded
to
bug-grep <at> gnu.org
:
bug#19935
; Package
grep
.
(Mon, 21 Sep 2015 07:17:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 19935 <at> debbugs.gnu.org (full text, mbox):
On Sun, Sep 20, 2015 at 3:16 AM, Jim Meyering <jim <at> meyering.net> wrote:
>
> On Tue, Feb 24, 2015 at 3:02 AM, Lukasz Dorau
> <lukasz.dev.dorau <at> gmail.com> wrote:
> > Checking whether C compiler handles -Wenum-compare does not work:
> >
> > configure:34007: checking whether C compiler handles -Wenum-compare
> > configure:34026: gcc -std=gnu99 -o conftest -g -O2 -Wenum-compare
> > conftest.c >&5
> > cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++
> > but not for C
> > configure:34026: $? = 0
> > configure:34037: result: yes
> >
> > Whole config.log is attached.
> >
> > As a result make fails:
> > $ make
> > make all-recursive
> > make[1]: Entering directory `/mnt/files/repos/grep'
> > Making all in po
> > make[2]: Entering directory `/mnt/files/repos/grep/po'
> > make[2]: Nothing to be done for `all'.
> > make[2]: Leaving directory `/mnt/files/repos/grep/po'
> > Making all in lib
> > make[2]: Entering directory `/mnt/files/repos/grep/lib'
> > make all-am
> > make[3]: Entering directory `/mnt/files/repos/grep/lib'
> > CC binary-io.o
> > cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++
> > but not for C
>
> Thanks for the report and sorry about the delay.
> I'm guessing that is due to your use of an older version of gcc.
> Can you still reproduce that problem using grep-2.21? If so, can you
> try a newer version of gcc?
>
> Which version of gcc are you using?
I do not use CentOS anymore.
Now I am using Fedora 21 and I cannot reproduce it on Fedora 21.
You can close this bug as for me.
Thanks,
Lukasz
Reply sent
to
Jim Meyering <jim <at> meyering.net>
:
You have taken responsibility.
(Mon, 21 Sep 2015 07:47:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Lukasz Dorau <lukasz.dev.dorau <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 21 Sep 2015 07:47:03 GMT)
Full text and
rfc822 format available.
Message #16 received at 19935-done <at> debbugs.gnu.org (full text, mbox):
On Mon, Sep 21, 2015 at 8:16 AM, Lukasz Dorau
<lukasz.dev.dorau <at> gmail.com> wrote:
...
>
> I do not use CentOS anymore.
> Now I am using Fedora 21 and I cannot reproduce it on Fedora 21.
> You can close this bug as for me.
Closing with this message, by inserting "-done" into
the 19935-done <at> debbugs.gnu.org address.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 19 Oct 2015 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 338 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.