GNU bug report logs - #19935
Checking whether C compiler handles -Wenum-compare does not work

Previous Next

Package: grep;

Reported by: Lukasz Dorau <lukasz.dev.dorau <at> gmail.com>

Date: Tue, 24 Feb 2015 17:53:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

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: Jim Meyering <jim <at> meyering.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#19935: closed (Checking whether C compiler handles
 -Wenum-compare does not work)
Date: Mon, 21 Sep 2015 07:47:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 21 Sep 2015 08:46:37 +0100
with message-id <CA+8g5KFqre875mg-SJ7A_EVkFOaZ6g4eo=vircZ0Ra4MjerHOg <at> mail.gmail.com>
and subject line Re: bug#19935: Checking whether C compiler handles -Wenum-compare does not work
has caused the debbugs.gnu.org bug report #19935,
regarding Checking whether C compiler handles -Wenum-compare does not work
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
19935: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19935
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Lukasz Dorau <lukasz.dev.dorau <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: Checking whether C compiler handles -Wenum-compare does not work
Date: Tue, 24 Feb 2015 12:02:45 +0100
[Message part 3 (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 4 (text/html, inline)]
[config.log.gz (application/x-gzip, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: Lukasz Dorau <lukasz.dev.dorau <at> gmail.com>
Cc: 19935-done <at> debbugs.gnu.org
Subject: Re: bug#19935: Checking whether C compiler handles -Wenum-compare
 does not work
Date: Mon, 21 Sep 2015 08:46:37 +0100
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.


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.