Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2010 13:45:11 -0500
From:      CyberLeo Kitsana <cyberleo@cyberleo.net>
To:        akash kumar <akashb503@yahoo.co.in>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: compiler flag -Werror
Message-ID:  <4C191BB7.1080708@cyberleo.net>
In-Reply-To: <36481.65110.qm@web95106.mail.in2.yahoo.com>
References:  <36481.65110.qm@web95106.mail.in2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/16/2010 08:02 AM, akash kumar wrote:
> Hi all,
> 
> I am working on building a freebsd kernel for mips. As part of this i built cross  tool chain for mips from my host machine(i386).
> After that i was building my kernel using make buildkernel KERNCONF="configfile"
> 
> I noticed that the compiler flags -Werror is invoked  default with my compiler. 
> I want to remove this flag because all the warning as taken as errors due to which my compilation stops.
> 
> Can you please help me how/where to remove this flag. 

I have run across this in the past, when building for a VIA C3-2 CPU; so
I have this in my /etc/make.conf:

# Inline limit warnings?
# Userland:
NO_WERROR=yes
# Kernel: Just turn off inline warnings
WERROR=-Wno-inline -Werror

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<CyberLeo@CyberLeo.Net>

Furry Peace! - http://wwww.fur.com/peace/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C191BB7.1080708>