setup.py uses CFLAGS - and builds with warnings

Bug #126913 reported by Robert Collins
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

setup.py honours CFLAGS. this is probably a feature.

However, my CFLAGS have -Werror, which makes 'make' in the bzr tree
fail.

We should either not honour CFLAGS, strip -Werror from CFLAGS, or build
without errors.

-Rob
 affects /products/bzr
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Matthew Fuller (fullermd) wrote :

It's definitely a Feature. Not honoring CFLAGS would be a bug.

The simplest solution would be to just unconditionally append a "-Wno-error" to the end of the CFLAGS. That shouldn't have any side effects, and should work with or without -Werror being present.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 126913] Re: setup.py uses CFLAGS - and builds with warnings

> It's definitely a Feature. Not honoring CFLAGS would be a bug.
>
> The simplest solution would be to just unconditionally append a "-Wno-
> error" to the end of the CFLAGS. That shouldn't have any side effects,
> and should work with or without -Werror being present.

I agree that it seems to be a feature. If you don't want to build
with that option, don't do so.

I don't think we can unconditionally append that flag because we're
not guaranteed to be using gcc.

--
Martin

Revision history for this message
Aaron Bentley (abentley) wrote :

The only solution everyone seems happy with is rewriting the code so it doesn't emit warnings. This seems hard, especially given that we use Pyrex as an intermediary. And there's an easy workaround. "Doctor, it hurts when I do this" "So stop doing that!"

There are many projects that build with warnings and honour CFLAGS.

Changed in bzr:
importance: Undecided → Low
status: New → Triaged
Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: extensions
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.