From owner-freebsd-questions@FreeBSD.ORG Wed Jun 16 18:45:14 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1682A106566C for ; Wed, 16 Jun 2010 18:45:14 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id E51368FC12 for ; Wed, 16 Jun 2010 18:45:13 +0000 (UTC) Received: from [172.16.44.4] (h-74-2-96-2.chcgilgm.static.covad.net [74.2.96.2]) by paka.cyberleo.net (Postfix) with ESMTPSA id CEB8A29602; Wed, 16 Jun 2010 14:45:12 -0400 (EDT) Message-ID: <4C191BB7.1080708@cyberleo.net> Date: Wed, 16 Jun 2010 13:45:11 -0500 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100508 Thunderbird/3.0.4 MIME-Version: 1.0 To: akash kumar References: <36481.65110.qm@web95106.mail.in2.yahoo.com> In-Reply-To: <36481.65110.qm@web95106.mail.in2.yahoo.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: compiler flag -Werror X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2010 18:45:14 -0000 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 Furry Peace! - http://wwww.fur.com/peace/