From owner-freebsd-current@FreeBSD.ORG Wed Dec 21 09:31:21 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CD63106564A for ; Wed, 21 Dec 2011 09:31:21 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (lrosenman-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:3ad::2]) by mx1.freebsd.org (Postfix) with ESMTP id 043258FC0C for ; Wed, 21 Dec 2011 09:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:CC:To:Date:From:Subject:Content-Type:MIME-Version:In-Reply-To:References; bh=TyBO2l9mERaX8PSWVEpoIc9Wkf4s82SXApeTLYGzMsA=; b=ZgQ52UGwJ8yyMRTgKkiYzz8L5gvHK06WhY/EGqLYpo1DyzgeFtY9pQtmPrSP7VhLJIrYu1wKNUMxaCZEGKaUYt0QDt3amTL9n+uC1n9zgoCClDugynYi8pQseiNidDCh7665fHY6+xX7BBNxHHou/ZvTABxom+6flKn7Poo75RU=; Received: from cpe-72-177-69-180.austin.res.rr.com ([72.177.69.180]:34476 helo=[192.168.200.117]) by thebighonker.lerctr.org with esmtpa (Exim 4.77 (FreeBSD)) (envelope-from ) id 1RdIVy-0004PO-MT; Wed, 21 Dec 2011 03:31:16 -0600 References: <4EF0CCC6.6060606@lerctr.org> User-Agent: K-9 Mail for Android In-Reply-To: MIME-Version: 1.0 From: Larry Rosenman Date: Wed, 21 Dec 2011 03:31:26 -0600 To: Benjamin Kaduk Message-ID: <921cedf2-3850-43da-aca2-631beb8e2b58@email.android.com> X-Spam-Score: -2.9 (--) X-LERCTR-Spam-Score: -2.9 (--) X-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, HTML_MESSAGE=0.001 X-LERCTR-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, HTML_MESSAGE=0.001 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: clang (__builtin_ffs) vs /usr/include/string.h 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: Wed, 21 Dec 2011 09:31:21 -0000 Lsof...... And this seems like a contradiction between the string.h declara= tion and the built-in one. -- Sent from my Android phone with K-9 Mail. Pl= ease excuse my brevity. Benjamin Kaduk wrote: Hi Larry, = On Tue, 20 Dec 2011, Larry Rosenman wrote: > -----BEGIN PGP SIGNED MESSAGE= ----- > Hash: SHA1 > > Is anyone going to fix the following in the clang or= FreeBSD system? I haven't seen any mention of __builtin_ffs on any freebs= d lists since your thread in october, "system headers with clang?". That r= ather makes me suspect that no one else is seeing this "problem". It's har= d to fix something you don't know about. > > In file included from /usr/i= nclude/string.h:45: > /usr/include/strings.h:47:6: error: conflicting types= for '__builtin_ffs' > int ffs(int) __pure2; > ^ > /usr/include/machine/cpu= func.h:140:24: note: expanded from: > #define ffs(x) __builtin_ffs(x) > ^ >= /usr/include/strings.h:47:6: note: '__builtin_ffs' is a builtin with > typ= e 'int (unsigned int)' > 7 warnings and 1 error generated. > *** Error code= 1 > As such, since we don't know what the "problem" is, some context for = what is going on here would be useful -- what are you trying to compile? S= till lsof? > > This looks like something that needs to change in clang/Fr= eeBSD headers. Not necessarily -- things from the machine/ hierarchy are p= retty uncommon, and I wouldn't be surprised if they had dependencies and o= rdering requirements involved. It could well be an application error, but = we can't tell, since there is no context. -Ben Kaduk