This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: Build fails for: -Werror
- From: Roland McGrath <roland at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 03 Mar 2010 03:43:52 -0800
- Subject: Re: Build fails for: -Werror
> Hi, I was trying to build elfutils on i686-F12 machine. It fails with
> error messages about - unused parameters - http://fpaste.org/NZzi/
Well, that's rather odd, as of course it built fine in F-12 koji.
> Where could I disable -Werror?
That's not what you need to do. You just don't want the -Wunused errors.
That's why the makefile already doesn't pass -Wunued -Wextra for that file.
But your make output shows that you got CFLAGS='-g -O2 -Wall -Wextra' from
configure. You can't pass extra warning options in CFLAGS with elfutils.
It already has plenty. If you want -g -O2, then just don't set CFLAGS and
that's what you'll get by default anyway. If you want some particular -g
or -O settings or other such things in CFLAGS, that's fine. But don't put
-W* options in there.
Thanks,
Roland