From owner-freebsd-current@FreeBSD.ORG Sun Apr 12 20:19:08 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 461C5A42; Sun, 12 Apr 2015 20:19:08 +0000 (UTC) Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu [18.9.25.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5B4E98; Sun, 12 Apr 2015 20:19:07 +0000 (UTC) X-AuditID: 1209190d-f79676d000000da0-2d-552ad33391f0 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id 32.1D.03488.333DA255; Sun, 12 Apr 2015 16:19:00 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id t3CKIx5d021470; Sun, 12 Apr 2015 16:18:59 -0400 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id t3CKIuKE010485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 12 Apr 2015 16:18:58 -0400 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id t3CKIunJ021091; Sun, 12 Apr 2015 16:18:56 -0400 (EDT) Date: Sun, 12 Apr 2015 16:18:56 -0400 (EDT) From: Benjamin Kaduk To: Rui Paulo Subject: Re: WARNING: FOO.c: enum pmc_event has too many values: 1930 > 1023 In-Reply-To: <3993727.Uyr34jnAqW@akita> Message-ID: References: <3993727.Uyr34jnAqW@akita> User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDIsWRmVeSWpSXmKPExsUixG6nrmtyWSvU4NxHRosJV34wWcx584HJ 4vXkK4wWt/pXsTqweMz4NJ/FY+ubdnaPF+crApijuGxSUnMyy1KL9O0SuDIWtF9gL5jNWbH6 TgNzA+MO9i5GTg4JAROJbbPbWSBsMYkL99azdTFycQgJLGaSeH77CZSzkVGipfkwK4RziEli /vaLLBBOA6PE2tbLYP0sAtoS986/B7PZBFQkZr7ZyAZiiwjISsw69BcsziyQIzH50BFWEFtY wE9i3ex/YDangLrEs3mNYDW8Ao4SXzffZQaxhQSyJa53bgSzRQV0JFbvnwJVIyhxcuYTqJla Esunb2OZwCg4C0lqFpLUAkamVYyyKblVurmJmTnFqcm6xcmJeXmpRbpGermZJXqpKaWbGEGB zCnJu4Px3UGlQ4wCHIxKPLxLl2iFCrEmlhVX5h5ilORgUhLl1dkJFOJLyk+pzEgszogvKs1J LT7EKMHBrCTCO2MeUI43JbGyKrUoHyYlzcGiJM676QdfiJBAemJJanZqakFqEUxWhoNDSYL3 60WgRsGi1PTUirTMnBKENBMHJ8hwHqDh/iA1vMUFibnFmekQ+VOMilLivG9AEgIgiYzSPLhe WKJ5xSgO9Iowr+UloCoeYJKC634FNJgJaHCWCtjgkkSElFQDY8wyt+2bUzdtyj6h/0vMdcZq l61NT2W3n9HJXeNUa/1hotTJ678D2Aor33HaOHvq+ObJXnOvFAn990ft/9ZDS45ItjK/3Ryd t/jNA84NRpOV6ibxrO4NVMg37u150ZrEvdrd/8OJi0JO6WcFUo5a6SxO2Lwx58KJ/hzlmufc lzz7xB9WS1Z+V2Ipzkg01GIuKk4EAOi8JZwPAwAA Cc: freebsd-current@freebsd.org, current@freebsd.org, Oliver Pinter X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 12 Apr 2015 20:19:08 -0000 On Sat, 11 Apr 2015, Rui Paulo wrote: > On Saturday 11 April 2015 15:53:41 Oliver Pinter wrote: > > Hi all! > > > > I just found the line in the subject in our jenkinsbuild log in both > > amd64 and i386 case (we don't modified these files): > > > > http://nyi-01.build.hardenedbsd.org:8180/jenkins/job/HardenedBSD-master-i386 > > /56/console > > http://nyi-01.build.hardenedbsd.org:8180/jenkins/job/HardenedBSD-master-amd > > 64/58/consoleFull > > > > And more similar lines: > > > > WARNING: kern_pmc.c: enum pmc_event has too many values: 1930 > 1023 > > This is a known problem. PMC abuses enums and CTF can't cope with it. Looking at the actual build log posted, the warning is emitted by cc, not ctfconvert. It is perfectly reasonable for a compiler to emit a warning when encountering code that uses more than 1023 values in a single enumeration, since C99 does not require a compiler to support more than that number of enumeration constants in a single enum (section 5.2.4.1). The warning indicates that the code may not be portable, even if the current compiler supports more than 1023 enumeration constants in an enumeration. -Ben