From owner-freebsd-current@FreeBSD.ORG Fri Nov 16 10:00:45 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 217B280E; Fri, 16 Nov 2012 10:00:45 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id BBB538FC08; Fri, 16 Nov 2012 10:00:44 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1TZIix-0008lm-Al; Fri, 16 Nov 2012 12:00:35 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: Andriy Gapon Subject: Re: compiler info in kernel identification string In-reply-to: <50A606E7.5000302@FreeBSD.org> References: <20121113234303.GA15319@dft-labs.eu> <50A3639C.9050200@FreeBSD.org> <1352907497.1217.147.camel@revolution.hippie.lan> <50A57623.4020108@FreeBSD.org> <50A5EC7C.5050303@FreeBSD.org> <5B4DE1FD-5DD3-49A5-B8DB-6D4C03ABD742@cederstrand.dk> <50A606E7.5000302@FreeBSD.org> Comments: In-reply-to Andriy Gapon message dated "Fri, 16 Nov 2012 11:27:03 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 16 Nov 2012 12:00:34 +0200 From: Daniel Braniss Message-ID: Cc: Ian Lepore , Mateusz Guzik , Dimitry Andric , Erik Cederstrand , freebsd-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: Fri, 16 Nov 2012 10:00:45 -0000 > on 16/11/2012 11:20 Erik Cederstrand said the following: > > Den 16/11/2012 kl. 08.34 skrev Andriy Gapon : > > > >> on 16/11/2012 01:09 Dimitry Andric said the following: > >>> And as I remarked in another reply, now that I have thought about it a > >>> bit, I would much rather see this information moved to a sysctl or dmesg > >>> line, than in uname. With the happy side effect that no existing uname > >>> parsers would be confused! > >> > >> I would still like to have at least compiler's "base name" or type or > >> something in uname. > > > > This has been brought up before, but what about putting all this in a > > separate file, e.g. /etc/buildinfo? > > There is a chance this file could be out of sync with kernel. > > > At least I'd like this to be configurable. I'm trying to get FreeBSD code in > > a shape where it can optionally produce deterministic binaries from two > > This is a very good goal. I also would like to see it achieved. > > > different builds (i.e. comparable with md5) as long as the binaries are > > functionally equivalent, and "irrelevant" info like compiler version, > > I agree about the following items, but not about compilers / compiler versions. > Different compilers can (and do) produce different binaries already (and > sometimes bugs). > While, indeed, time of compilation should not affect the binaries (unless the > phase of the Moon plays a role). > > > hostname, username, timestamp, absolute path etc. are a nuisance if they > > can't be turned off with -fno-ident, -frandom-seed, -DSTRIP_FBSDID, ar -D and > > the like. > the question as to what compiler was used to compile the kernel is a bit of an oxymoron, since the kernel is made up of many different modules, which get compiled either by different compilers, or different compiler flags. since the compiler does 'sign' the modules it compiles (and clang will/should do it soon: http://llvm.org/bugs/show_bug.cgi?id=7292) some tool like file(1) could be modified to provide it, or config -x (8) ... IMHO, the only meaningfull information added to uname was the svn/git(and hopefully hg) rev. version. as usual, my 3c, danny