Bug 279650 - build linux kernel version is used when cross-compiling
Summary: build linux kernel version is used when cross-compiling
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.7 SVN
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 11:50 UTC by Michael Olbrich
Modified: 2020-06-29 16:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
make kernel version a autoconf cache variable (1.39 KB, patch)
2011-08-08 11:50 UTC, Michael Olbrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Olbrich 2011-08-08 11:50:04 UTC
Created attachment 62658 [details]
make kernel version a autoconf cache variable

`uname -r` is always used as linux kernel version. This is the incorrect when cross-compiling.
The attached patch adds a cache variable, that can be set when cross-compiling, to define the correct kernel version.
Comment 1 Tom Hughes 2011-08-08 11:56:31 UTC
Does it actually make any difference though? As far as I can see we don't use the kernel version for anything so as long as the kernel version on the build machine is something we recognise it shouldn't make any difference whether it matches the version on the target.
Comment 2 Michael Olbrich 2011-08-08 12:11:45 UTC
Well in that case maybe the check should be removed. It's a bad idea to check for runtime dependencies at build time
Comment 3 Florian Fainelli 2011-10-24 12:03:17 UTC
I agree, this check should be removed, or Michael's patch should be merged. I just hit this while building with a host kernel version 3.0.0 and targetting linux 2.6.x.