compiler flag -Werror

akash kumar akashb503 at yahoo.co.in
Thu Jun 17 11:10:40 UTC 2010


Thanks Mark/kitsana for your help.
Its working for me now.

Thanks,
Akash.




________________________________
From: Mark Tinguely <marktinguely at gmail.com>
To: CyberLeo Kitsana <cyberleo at cyberleo.net>
Cc: akash kumar <akashb503 at yahoo.co.in>
Sent: Thu, 17 June, 2010 1:21:53 AM
Subject: Re: compiler flag -Werror

CyberLeo Kitsana wrote:
> 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
> 
>  
The kernel entry is in /sys/conf/kern.pre.mk

Mark Tinguely




More information about the freebsd-questions mailing list