On 6/5/2015 12:18 PM, Sean Caron wrote:
I can kick off the configure and it completes, no problem:
cd ~/lustre-release
./configure
--with-linux=home/build/kernel/rpmbuild/BUILD/kernel-3.10.0_229.4.2.el7.centos_lustre.x86_64/
If I go and run a straight "make" that will complete without any
errors, however, if I try to then run a "make rpms", it fails quite
quickly with the following spew:
error: line 144: Version required: Requires: kernel =
make invokes rpmbuild. While parsing the spec file, an rpm dependency
for a specific kernel version was mangled. Look for 'Requires: kernel
=' in the spec. This will be %{krequires}, which is defined as :
%define krequires %(bash -c "echo %{kversion} | sed -e 's/\.x86_64$//'
-e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e
's/-ppc64$//'
-e 's/-default$//'")
Which makes me guess that %{kversion} is undefined. kversion is defined
from the linux kernel headers. That it is all coming up empty makes me
think you've probably got the wrong path to the linux kernel objects
and/or sources.