mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: bug LINUX_VERSION_CODE undefined
       [not found] <AANLkTik2VDPSZvMzQ8rv38jBDKmRaM9-TL9nhqxj_VSQ@mail.gmail.com>
@ 2010-08-17  9:29 ` Sergey Naumov
  2010-08-17 10:08   ` Sergey Naumov
  2010-08-17 16:00   ` Randy Dunlap
  0 siblings, 2 replies; 3+ messages in thread
From: Sergey Naumov @ 2010-08-17  9:29 UTC (permalink / raw)
  To: linux-kernel

Hello. This is my first message to this list so please be patient.

I have encountered compilation error due to
#define LINUX_VERSION_CODE
in include/linux/version.h

This happens because $(VERSION) variable in the main Makefile has a
value of 2.6.35.2 instead of 2,
so "expr" utility fails to generate LINUX_VERSION_CODE value with an
error "non-numeric argument" or smth.

I have found only one link (
http://www.spinics.net/lists/linux-kbuild/msg03230.html ) to this
issue in the Internet,
but there is no response to it, so I decided to post this message.

Please subscribe me personally to answers to this post.

Sergey Naumov.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bug LINUX_VERSION_CODE undefined
  2010-08-17  9:29 ` bug LINUX_VERSION_CODE undefined Sergey Naumov
@ 2010-08-17 10:08   ` Sergey Naumov
  2010-08-17 16:00   ` Randy Dunlap
  1 sibling, 0 replies; 3+ messages in thread
From: Sergey Naumov @ 2010-08-17 10:08 UTC (permalink / raw)
  To: linux-kernel

Some update.

It seems that build script (and makefiles) uses it's own VERSION variable.
In the last standalone makefile where
> make uImage
executes, I have tried to
> override VERSION :=
> export VERSION
and execute make as
> VERSION= make uImage
but the only thing that helps is to prepend "override" keyword to
VERSION initialization in the main linux Makefile:

override VERSION = 2

2010/8/17 Sergey Naumov <sknaumov@gmail.com>:
> Hello. This is my first message to this list so please be patient.
>
> I have encountered compilation error due to
> #define LINUX_VERSION_CODE
> in include/linux/version.h
>
> This happens because $(VERSION) variable in the main Makefile has a
> value of 2.6.35.2 instead of 2,
> so "expr" utility fails to generate LINUX_VERSION_CODE value with an
> error "non-numeric argument" or smth.
>
> I have found only one link (
> http://www.spinics.net/lists/linux-kbuild/msg03230.html ) to this
> issue in the Internet,
> but there is no response to it, so I decided to post this message.
>
> Please subscribe me personally to answers to this post.
>
> Sergey Naumov.
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bug LINUX_VERSION_CODE undefined
  2010-08-17  9:29 ` bug LINUX_VERSION_CODE undefined Sergey Naumov
  2010-08-17 10:08   ` Sergey Naumov
@ 2010-08-17 16:00   ` Randy Dunlap
  1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2010-08-17 16:00 UTC (permalink / raw)
  To: Sergey Naumov; +Cc: linux-kernel, linux-kbuild

On Tue, 17 Aug 2010 13:29:38 +0400 Sergey Naumov wrote:

> Hello. This is my first message to this list so please be patient.
> 
> I have encountered compilation error due to
> #define LINUX_VERSION_CODE
> in include/linux/version.h
> 
> This happens because $(VERSION) variable in the main Makefile has a
> value of 2.6.35.2 instead of 2,
> so "expr" utility fails to generate LINUX_VERSION_CODE value with an
> error "non-numeric argument" or smth.

AFAIK, it usually happens due to some shell not liking some syntax in the Makefile.
What shell are you using?


> I have found only one link (
> http://www.spinics.net/lists/linux-kbuild/msg03230.html ) to this
> issue in the Internet,
> but there is no response to it, so I decided to post this message.

There are replies in the bugzilla entry, including a possible fix.
  https://bugzilla.kernel.org/show_bug.cgi?id=16510


> Please subscribe me personally to answers to this post.

Michal, did you do anything with your suggested fix?

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-17 16:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AANLkTik2VDPSZvMzQ8rv38jBDKmRaM9-TL9nhqxj_VSQ@mail.gmail.com>
2010-08-17  9:29 ` bug LINUX_VERSION_CODE undefined Sergey Naumov
2010-08-17 10:08   ` Sergey Naumov
2010-08-17 16:00   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®