Re: compiler info in kernel identification string

2012-12-23 Thread Mateusz Guzik
On Sun, Dec 23, 2012 at 03:18:14PM +0200, Andriy Gapon wrote: > on 15/11/2012 22:43 Andriy Gapon said the following: > > on 14/11/2012 01:43 Mateusz Guzik said the following: > >> Hello, > >> > >> avg@ suggested to include compiler version in the kernel so that it's > >> present in uname (and one c

Re: compiler info in kernel identification string

2012-12-23 Thread Andriy Gapon
on 15/11/2012 22:43 Andriy Gapon said the following: > on 14/11/2012 01:43 Mateusz Guzik said the following: >> Hello, >> >> avg@ suggested to include compiler version in the kernel so that it's >> present in uname (and one can easly tell what was used to compile it). >> >> Here is my attempt: >> h

Re: compiler info in kernel identification string

2012-11-16 Thread David Chisnall
On 16 Nov 2012, at 07:41, Dimitry Andric wrote: > And regarding clang, I don't have the time to implement this very soon, > and I doubt it is very high on the bug priority list with upstream > either. They just branched for the 3.2 release, and they are much > busier squashing bugs now. :) Imple

Re: compiler info in kernel identification string

2012-11-16 Thread Dimitry Andric
On 2012-11-16 11:00, Daniel Braniss wrote: on 16/11/2012 11:20 Erik Cederstrand said the following: Den 16/11/2012 kl. 08.34 skrev Andriy Gapon : ... hostname, username, timestamp, absolute path etc. are a nuisance if they can't be turned off with -fno-ident, -frandom-seed, -DSTRIP_FBSDID, ar

Re: compiler info in kernel identification string

2012-11-16 Thread Chris Hoy Poy
BeBei Sent from my HTC Velocity 4G on the Next G network - Reply message - From: "Erik Cederstrand" To: "Andriy Gapon" Cc: "Ian Lepore" , "Mateusz Guzik" , "Dimitry Andric" , Subject: compiler info in kernel identification string

Re: compiler info in kernel identification string

2012-11-16 Thread Andriy Gapon
on 16/11/2012 12:54 Daniel Braniss said the following: >> >> This is starting to turn into a bikeshed, but anyway... >> >> on 16/11/2012 12:00 Daniel Braniss said the following: >>> the question as to what compiler was used to compile the kernel is a bit of >>> an >>> oxymoron, since the kernel is

Re: compiler info in kernel identification string

2012-11-16 Thread Andriy Gapon
[cc list trimmed] on 16/11/2012 12:43 Erik Cederstrand said the following: > Den 16/11/2012 kl. 11.18 skrev Andriy Gapon : > >> This is starting to turn into a bikeshed, but anyway... >> >> on 16/11/2012 12:00 Daniel Braniss said the following: >>> the question as to what compiler was used to c

Re: compiler info in kernel identification string

2012-11-16 Thread Daniel Braniss
> > This is starting to turn into a bikeshed, but anyway... > > on 16/11/2012 12:00 Daniel Braniss said the following: > > 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 > > compil

Re: compiler info in kernel identification string

2012-11-16 Thread Erik Cederstrand
Den 16/11/2012 kl. 11.18 skrev Andriy Gapon : > This is starting to turn into a bikeshed, but anyway... > > on 16/11/2012 12:00 Daniel Braniss said the following: >> 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

Re: compiler info in kernel identification string

2012-11-16 Thread Andriy Gapon
This is starting to turn into a bikeshed, but anyway... on 16/11/2012 12:00 Daniel Braniss said the following: > 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 diff

Re: compiler info in kernel identification string

2012-11-16 Thread Daniel Braniss
> 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 informa

Re: compiler info in kernel identification string

2012-11-16 Thread Andriy Gapon
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 t

Re: compiler info in kernel identification string

2012-11-16 Thread Erik Cederstrand
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

Re: compiler info in kernel identification string

2012-11-15 Thread 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 con

Re: compiler info in kernel identification string

2012-11-15 Thread Andriy Gapon
on 16/11/2012 01:05 Dimitry Andric said the following: > For starters, this hardcodes the compiler names "gcc" and "clang", and > this will include incorrect information into the kernel version string, > if you use another setting for ${CC}. Oops, I agree. The script should definitely make use of

Re: compiler info in kernel identification string

2012-11-15 Thread Mateusz Guzik
On Fri, Nov 16, 2012 at 12:05:33AM +0100, Dimitry Andric wrote: > For starters, this hardcodes the compiler names "gcc" and "clang", and > this will include incorrect information into the kernel version string, > if you use another setting for ${CC}. > Yes, I blindly assumed that both gcc and cla

Re: compiler info in kernel identification string

2012-11-15 Thread Dimitry Andric
On 2012-11-14 16:38, Ian Lepore wrote: On Wed, 2012-11-14 at 10:25 +0100, Dimitry Andric wrote: ... That way, you are sure never to lose information. This also works for gcc from ports (which is the reason for the space after 'version' in the grep command): $ gcc47 -v 2>&1 | grep 'version

Re: compiler info in kernel identification string

2012-11-15 Thread Dimitry Andric
On 2012-11-15 21:43, Andriy Gapon wrote:> on 14/11/2012 01:43 Mateusz Guzik said the following: Hello, avg@ suggested to include compiler version in the kernel so that it's present in uname (and one can easly tell what was used to compile it). Here is my attempt: http://people.freebsd.org/~mjg

Re: compiler info in kernel identification string

2012-11-15 Thread Andriy Gapon
on 14/11/2012 01:43 Mateusz Guzik said the following: > Hello, > > avg@ suggested to include compiler version in the kernel so that it's > present in uname (and one can easly tell what was used to compile it). > > Here is my attempt: > http://people.freebsd.org/~mjg/patches/newvers-compiler.diff

Re: compiler info in kernel identification string

2012-11-15 Thread Mateusz Guzik
On Tue, Nov 13, 2012 at 03:57:55PM -0800, David Wolfskill wrote: > I like the idea, but I have long found the idea of putting this type of > logic (including VCS-awareness) in newvers.sh itself something that is > prone to turn what should be a rather simple script into a ... mess. I don't think n

Re: compiler info in kernel identification string

2012-11-14 Thread Ian Lepore
On Wed, 2012-11-14 at 10:25 +0100, Dimitry Andric wrote: > On 2012-11-14 00:43, Mateusz Guzik wrote: > > avg@ suggested to include compiler version in the kernel so that it's > > present in uname (and one can easly tell what was used to compile it). > > > > Here is my attempt: > > http://people.fre

Re: compiler info in kernel identification string

2012-11-14 Thread Dimitry Andric
On 2012-11-14 08:01, Daniel Braniss wrote: in the old days (I'm talking before C :-) I remmeber one compiler putting such info in the code it produced, I wonder if that's the case with gcc/clang, and if so it would be nice if file(1) could show it. my 3c, As far as I know, gcc has always includ

Re: compiler info in kernel identification string

2012-11-14 Thread Dimitry Andric
On 2012-11-14 00:43, Mateusz Guzik wrote: avg@ suggested to include compiler version in the kernel so that it's present in uname (and one can easly tell what was used to compile it). Here is my attempt: http://people.freebsd.org/~mjg/patches/newvers-compiler.diff Basically adds compiler name an

Re: compiler info in kernel identification string

2012-11-13 Thread Daniel Braniss
> Hello, > > avg@ suggested to include compiler version in the kernel so that it's > present in uname (and one can easly tell what was used to compile it). > > Here is my attempt: > http://people.freebsd.org/~mjg/patches/newvers-compiler.diff > > Basically adds compiler name and version/revision

Re: compiler info in kernel identification string

2012-11-13 Thread Jov
good idea. show version cmd in postgresql prints os version,compiler info etc. useful for problem report. jov 在 2012-11-14 上午7:43,"Mateusz Guzik" 写道: > Hello, > > avg@ suggested to include compiler version in the kernel so that it's > present in uname (and one can easly tell what was used to comp

Re: compiler info in kernel identification string

2012-11-13 Thread Erich Dollansky
Hi, On Wed, 14 Nov 2012 00:43:03 +0100 Mateusz Guzik wrote: > Hello, > > avg@ suggested to include compiler version in the kernel so that it's > present in uname (and one can easly tell what was used to compile it). > > Here is my attempt: > http://people.freebsd.org/~mjg/patches/newvers-compi

Re: compiler info in kernel identification string

2012-11-13 Thread David Wolfskill
On Wed, Nov 14, 2012 at 12:43:03AM +0100, Mateusz Guzik wrote: > Hello, > > avg@ suggested to include compiler version in the kernel so that it's > present in uname (and one can easly tell what was used to compile it). > > Here is my attempt: > http://people.freebsd.org/~mjg/patches/newvers-compi

compiler info in kernel identification string

2012-11-13 Thread Mateusz Guzik
Hello, avg@ suggested to include compiler version in the kernel so that it's present in uname (and one can easly tell what was used to compile it). Here is my attempt: http://people.freebsd.org/~mjg/patches/newvers-compiler.diff Basically adds compiler name and version/revision after revision of