From owner-freebsd-current@FreeBSD.ORG Thu May 2 13:42:53 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5E2DFBF9 for ; Thu, 2 May 2013 13:42:53 +0000 (UTC) (envelope-from mailer-daemon@vniz.net) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by mx1.freebsd.org (Postfix) with ESMTP id 2365C1D29 for ; Thu, 2 May 2013 13:42:51 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id t10so528231lbi.18 for ; Thu, 02 May 2013 06:42:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:openpgp:content-type :content-transfer-encoding:x-gm-message-state; bh=drjB2P7EEdSuMcLPgTkL50ONQhTcaGksGSrRtkufQ34=; b=a4Ery64tK6dy/N8a/bFw/ZNrNUN9VTK7dpNPmJXSGqtyjr7YQjJAIteFA9Qz4j0EF9 cKj1qE6kIPBMCkcO58mjGWhJfzUmzTHlhtG7oZITGblQ3ucBZxA1g6ybuYvlAoT4Ljs/ FaJX4kQjfhuC519kRHIzy27arrSz35mSAUmg4t6yumJddqGI30lbYqS58n8Y6jbXPBAf 9I/suGB6IZesIIbr+Xdc6Wy77RrUx/CpaWIHndReZNnZfMFI7WB77aX2JRVocsjCjDo8 G0ru+lbZJzCjjftNHgqnVLH9DCxA8b4YWvN4j+nj9XQDu2AgDiD0qLUPWbvOk7u/yzec 0IKg== X-Received: by 10.112.149.97 with SMTP id tz1mr2411585lbb.134.1367502163962; Thu, 02 May 2013 06:42:43 -0700 (PDT) Received: from [192.168.1.2] ([89.169.163.3]) by mx.google.com with ESMTPSA id rn10sm2740059lbb.16.2013.05.02.06.42.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 06:42:43 -0700 (PDT) Message-ID: <51826D52.6030403@freebsd.org> Date: Thu, 02 May 2013 17:42:42 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Davide Italiano Subject: Re: Kernel build error in hwpmc with system GNU cc References: <51820AFD.1030607@freebsd.org> In-Reply-To: OpenPGP: id=964474DD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlaYhc6ELs7YxV4Xnq44cXg3HPPMTA2fUOW39viZbUXcyW25AphuzHUF9WiZjLVCMYowHaG Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 02 May 2013 13:42:53 -0000 On 02.05.2013 14:06, Davide Italiano wrote: >> /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_core.c:1935: warning: 'map' may be used uninitialized in this function >> *** [hwpmc_core.o] Error code 1 > You can find a patch attached at the end of this mail that should fix > the problem. Thanks, it fix this warning. > More generally speaking, why are you building -CURRENT using GCC while > the default compiler has been clang since November 2012? 1) clang is not ready for production, it is too buggy. See its fixes rate for very common things 'must work' in every compiler. It is included into -current not because of its quality, but to involve developers into clang bugfixes to make its progress faster, and personally me don't want to find clang bugs. 2) Its build time is too long. 3) It generates bigger code. > Putting the additional burden of > testing on the committer because two compilers are supported at the > same time doesn't scale really well, at least according to me. You'll hit this error later in any case, attempting to MFC your changes to -stable with GNU cc. -- bitcoin:13fGiNutKNHcVSsgtGQ7bQ5kgUKgEQHn7N