From owner-freebsd-current@FreeBSD.ORG Tue Aug 28 18:49:53 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CE5F106566C for ; Tue, 28 Aug 2012 18:49:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5907D8FC18 for ; Tue, 28 Aug 2012 18:49:53 +0000 (UTC) Received: from [192.168.0.6] (spaceball.home.andric.com [192.168.0.6]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 72AE95C59; Tue, 28 Aug 2012 20:49:51 +0200 (CEST) Message-ID: <503D12CB.4000208@FreeBSD.org> Date: Tue, 28 Aug 2012 20:49:47 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120815 Thunderbird/15.0 MIME-Version: 1.0 To: Eir Nym References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mail Lists Subject: Re: Can't build FreeBSD-head with CLANG X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2012 18:49:53 -0000 On 2012-08-28 18:31, Eir Nym wrote: > I can't build FreeBSD (GENERIC & custom kernel) with clang. Build > finishes for i386 and fails for amd64 for same kernels What is the error you were getting on amd64? > I have bsd box with following clang version: >> FreeBSD clang version 3.0 (branches/release_30 142614) 20111021 >> Target: x86_64-unknown-freebsd10.0 >> Thread model: posix This is rather old, we went through clang 3.1 some time ago, and recently updated it to 3.2. > I try to compile it with /dev/null as make.conf and following src.conf: ... > but I constantly get warnings (not long ago they was errors) in kernel > like this: > /usr/head/src/sys/netgraph/ng_parse.c:1263:14: warning: comparison of > unsigned expression < 0 is always false [-Wtautological-compare] > if (index < 0 || eptr - (s + *off) != len) { > ~~~~~ ^ ~ > 1 warning generated. > > Also I get not initialized warnings and so on. You can safely ignore those. They are just an incentive for the maintainers to fix them eventually. Those tautological comparison warnings specifically are quite harmless: the compiler will optimize the unused code away anyhow.