From owner-freebsd-current@freebsd.org Sun Jun 4 21:19:28 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02441BEF8BA for ; Sun, 4 Jun 2017 21:19:28 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-4.reflexion.net [208.70.210.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ABC6EC25 for ; Sun, 4 Jun 2017 21:19:27 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 1122 invoked from network); 4 Jun 2017 21:20:41 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 4 Jun 2017 21:20:41 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.0) with SMTP; Sun, 04 Jun 2017 17:19:20 -0400 (EDT) Received: (qmail 17605 invoked from network); 4 Jun 2017 21:19:20 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 4 Jun 2017 21:19:20 -0000 Received: from [192.168.1.114] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 686D4EC805D for ; Sun, 4 Jun 2017 14:19:19 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [Help] Linux low level data structures < - > FreeBSD low level data structures Message-Id: <4EAE8582-14C1-4B25-A4E6-2000D8A23F33@dsl-only.net> Date: Sun, 4 Jun 2017 14:19:18 -0700 To: FreeBSD Current X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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, 04 Jun 2017 21:19:28 -0000 Hans Petter Selasky hps at selasky.org write on Sun Jun 4 16:09:25 UTC 2017: > I recently found a > piece of code in a header file, which works with GCC and causes a > panic() when compiled with clang. I reported it to one of the Linux > kernel team members and they didn't care about it. Even if you get > everything compiling it doesn't it will work I do not know if it would help anyone but I'm aware of one linux distribution for x86_64 that uses clang instead of gcc as the main compiler: OpenMandriva Lx . https://wiki.openmandriva.org/en/3.01/Release_Notes says: > OpenMandriva decided to give a go for a switch to LLVM/clang 3.9.1 as > the default compiler, and finally has replaced GCC. Over 90% of > packages in our main repository are built with LLVM/clang. It reports kernels 4.9.0 and 4.1.18 nrJQL. Downloads are of the current version at: https://sourceforge.net/projects/openmandriva/files/release/3.01/3.01.1/ but there is only the x86_64 variant there. As I understand being clang based started with V3.0 . Notes: There is an earlier clang-based release for i586 (V3.0). (V3.0 was apparently kernel 4.6.5 based.) See: https://en.wikipedia.org/wiki/OpenMandriva_Lx and: https://sourceforge.net/projects/openmandriva/files/release/3.0/ There is a 2015-03-02 release for the Raspberry-Pi 2 but it appears to have been someone's one-off experiment rather than a regular build/release: http://comments.gmane.org/gmane.linux.openmandriva.cooker.devel/4841 It likely predates clang as the main compiler. I have no clue if the said header file's code is valid or not vs. if clang has a problem or not --or some mix. But checking the file's content as used in/for OpenMandriva Lx and the related material in the source for the clang OpenMandriva Lx uses might give additional clues about whatever issues are involved. I've never installed or used OpenMandriva Lx. But if a question of comparison to clang use on FreeBSD vs. Linux ever came up it would seem to be a candidate for use in making the comparison -- at least when amd64/x86_64 is a useful context for the comparison. === Mark Millard markmi at dsl-only.net