From owner-freebsd-current@FreeBSD.ORG Tue Aug 28 20:21:16 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 11DD61065688; Tue, 28 Aug 2012 20:21:16 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id BAD3F8FC12; Tue, 28 Aug 2012 20:21:15 +0000 (UTC) Received: by ialo14 with SMTP id o14so14705480ial.13 for ; Tue, 28 Aug 2012 13:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=lNARPO+QxEi5VvGE8kWypJ4PdG/nHde9Ksc97Nuhu+4=; b=tWg6NuPDPRuc/jq7eeRFK4BZ4TpPzHJP6K2NPTOQ8JH8AbUcfk60xoS0bgjrhvk9IW wOGepaRvwtev5q2brrvyj3ii1WS9+mLVV0QscQ9m6/1EeSl1jKvd/GODtJlxOemLUpEz dxSbCaGcLmNeDCk9IqGkeo6BqKQswCg5JIe9PKoMvtzxarWNHmnq5IKDoMF/TsVhAdiH JKr5tg8KNy36S6ZTQ+v42GPnvDZtEWo/u5+nIW4Zls0QjKtTrWNw5DgqZih2ngrcLNh9 zA72JWTt0t0AbV5/XI4aCgqNyJruJ0S5Oz51odz6QfX14sc5se++LPRwVwVUg8Zqhmjx DF+w== Received: by 10.50.195.132 with SMTP id ie4mr15247157igc.59.1346185274901; Tue, 28 Aug 2012 13:21:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.46.41 with HTTP; Tue, 28 Aug 2012 13:20:54 -0700 (PDT) In-Reply-To: References: <503D12CB.4000208@FreeBSD.org> From: Eir Nym Date: Wed, 29 Aug 2012 00:20:54 +0400 Message-ID: To: Dimitry Andric Content-Type: multipart/mixed; boundary=14dae9340a7f1cc4fe04c8592f81 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 20:21:16 -0000 --14dae9340a7f1cc4fe04c8592f81 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable -- Eir Nym On 28 August 2012 23:51, Eir Nym wrote: > -- Eir Nym > > > On 28 August 2012 22:49, Dimitry Andric wrote: >> 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? >> >> > i386 never failed, amd64 =E2=80=94 always >> >>> 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 use to be sure I use latest clang > make kernel-toolchain buildkernel ${other_args} > >> >>> 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) !=3D 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. > > I know about ignorance, but compiler fails at them. my simple make world script is in attachment --14dae9340a7f1cc4fe04c8592f81--