Hi,
it seems that spec file doesn't work correctly on your platform.
I usually extract the spec from the tar.gz, place the tar.gz where the
build is looking for it (in your case
/usr/src/packages/BUILD/lustre-2.4.2/lustre-2.4.2.tar.gz) and call
rpmbuild -ba lustre.spec.
If you don't have a tar.gz, simply create an archive of the files which
came out of the src.rpm
best regards,
Martin
On 03/24/2014 10:06 PM, Daguman, Brainard R wrote:
Found directory where source was installed file then run suggested
commands below. Please see attached of entire output results.
rpm -ivh lustre*src. rpm
rpmbuild -bp XX/rpmbuild/SPECS/lustre*spec
cd XX/rpmbuild/BUILD/lustre*
./configure --enable-client --disable-server
make
or even
make rpms
......
eval rpmbuild $RPMARGS -ta lustre-2.4.2.tar.gz
Building Lustre RPM with --define "kdir
/lib/modules/3.0.51-0.7.9-default/source" --define "kobjdir
/lib/modules/3.0.51-0.7.9-default/build" --define "configure_args
--enable-client --disable-server -
-with-lustre-hack --with-sockets" --define "lustre_name lustre-client"
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.73612
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf lustre-2.4.2
+ /usr/bin/gzip -dc /usr/src/packages/BUILD/lustre-2.4.2/lustre-2.4.2.tar.gz
+ tar -xf -
gzip: /usr/src/packages/BUILD/lustre-2.4.2/lustre-2.4.2.tar.gz: No such file or
directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
error: Bad exit status from /var/tmp/rpm-tmp.73612 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.73612 (%prep)
make[1]: *** [rpms-real] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/lustre-2.4.2'
make: *** [rpms] Error 2
--
Thanks,
Brainard
From: HPDD-discuss [mailto:hpdd-discuss-bounces@lists.01.org] On Behalf Of Lee, Brett
Sent: Wednesday, March 19, 2014 06:51 AM
To: hpdd-discuss(a)lists.01.org
Subject: Re: [HPDD-discuss] Lustre client on SLES11sp2
Brainard,
Overlooked part of your concern - directories missing after the install. Source
RPM's install a bit differently, in that you get a source tarball and a spec file.
You should see something like this after you installed them:
$ rpm -qlp lustre-2.5.0-2.6.32_358.18.1.el6_lustre.x86_64.src.rpm
lustre-2.5.0.tar.gz
lustre.spec
[Description: cid:image001.gif@01C9FE3D.1D8A68C0]
Dr. Brett Lee, Solutions Architect
High Performance Data Division, Intel
+1.303.625.3595
From: HPDD-discuss [mailto:hpdd-discuss-bounces@lists.01.org] On Behalf Of Lee, Brett
Sent: Wednesday, March 19, 2014 7:37 AM
To: hpdd-discuss@lists.01.org<mailto:hpdd-discuss@lists.01.org>
Subject: Re: [HPDD-discuss] Lustre client on SLES11sp2
Brainard,
Looks like the RPMs installed (100%) but with the expected warning that the user jenkins
did not exist on the system. You can ignore that warning.
[Description: cid:image001.gif@01C9FE3D.1D8A68C0]
Dr. Brett Lee, Solutions Architect
High Performance Data Division, Intel
+1.303.625.3595
From: HPDD-discuss [mailto:hpdd-discuss-bounces@lists.01.org] On Behalf Of Daguman,
Brainard R
Sent: Tuesday, March 18, 2014 11:33 PM
To: Anthony Alba
Cc: hpdd-discuss@lists.01.org<mailto:hpdd-discuss@lists.01.org>
Subject: Re: [HPDD-discuss] Lustre client on SLES11sp2
Did not find directories being created; seems to not installed correctly. Will it make
any difference to try and install different source?
#> rpm -ivh lustre-client-2.4.2-3.0.80_0.7_default.src.rpm
1:lustre-client warning: user jenkins does not exist - using root
warning: group jenkins does not exist - using root
########################################### [100%]
warning: user jenkins does not exist - using root
warning: group jenkins does not exist - using root
#> rpm -ivh lustre-client*.src.rpm
1:lustre-client warning: user jenkins does not exist - using root
warning: group jenkins does not exist - using root
########################################### [100%]
warning: user jenkins does not exist - using root
warning: group jenkins does not exist - using root
--
Thanks,
Brainard
From: Anthony Alba [mailto:ascanio.alba7@gmail.com]
Sent: Friday, March 14, 2014 06:16 PM
To: Daguman, Brainard R
Cc: hpdd-discuss@lists.01.org<mailto:hpdd-discuss@lists.01.org>; Hall, Shawn
Subject: RE: [HPDD-discuss] Lustre client on SLES11sp2
Can you try a non rpm build.
rpm -ivh lustre*src. rpm
rpmbuild -bp XX/rpmbuild/SPECS/lustre*spec
cd XX/rpmbuild/BUILD/lustre*
./configure --enable-client --disable-server
make
or even
make rpms
Does this work? Seems the configure options are not propagated to rpmbuild --rebuild
CD
On 15 Mar 2014 08:40, "Daguman, Brainard R"
<brainard.r.daguman@intel.com<mailto:brainard.r.daguman@intel.com>> wrote:
Tried it on two SP2 systems with different kernel builds; the results are the same with
or without additional underscore in front of configure_options.
--
Thanks,
Brainard
From: Hall, Shawn [mailto:Shawn.Hall@bp.com<mailto:Shawn.Hall@bp.com>]
Sent: Friday, March 14, 2014 11:32 AM
To: Daguman, Brainard R
Cc: Anthony Alba; hpdd-discuss@lists.01.org<mailto:hpdd-discuss@lists.01.org>
Subject: Re: [HPDD-discuss] Lustre client on SLES11sp2
Looks like the rpmbuild didn't pick up the extra options Anthony suggested. From
looking at
http://rpm5.org/docs/api/conditionalbuilds.html, there may be a minor syntax
error. You might want this instead:
rpmbuild --rebuild lustre-client-2.4.2-3.0.80_0.7_default.src.rpm --define
"_configure_options --enable-client --disable-server"
Notice the underscore in front of configure_options.
Shawn
On Mar 13, 2014, at 10:09 PM, Daguman, Brainard R
<brainard.r.daguman@intel.com<mailto:brainard.r.daguman@intel.com>> wrote:
Looks similar error message.
#> rpmbuild --rebuild lustre-client-2.4.2-3.0.80_0.7_default.src.rpm --define
"configure_options --enable-client --disable-server"
=== configuring in lustre-iokit (/usr/src/packages/BUILD/lustre-2.4.2/lustre-iokit)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr'
'--program-prefix=' '--exec-prefix=/usr' '--bindir=/usr/bin'
'--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share'
'--includedir=/usr/include' '--libdir=/usr/lib64'
'--libexecdir=/usr/lib64' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-linux=/usr/src/linux-3.0.51-0.7.9'
'--with-linux-obj=/usr/src/linux-3.0.51-0.7.9-obj/x86_64/default'
'--with-release=3.0.51_0.7.9_default' '--enable-tests'
'--enable-liblustre-tests' 'CFLAGS=-g -O2 -Werror'
'--with-lustre-hack' '--with-sockets' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/intel/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/intel/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for bash... /bin/sh
checking for perl... /usr/intel/bin/perl
configure: creating ./config.status
config.status: creating lustre-iokit.spec
config.status: creating Makefile
config.status: creating sgpdd-survey/Makefile
config.status: creating obdfilter-survey/Makefile
config.status: creating ost-survey/Makefile
config.status: creating ior-survey/Makefile
config.status: creating mds-survey/Makefile
config.status: creating stats-collect/Makefile
CC: gcc
LD: ld
CPPFLAGS: -include /usr/src/packages/BUILD/lustre-2.4.2/config.h
-I/usr/src/packages/BUILD/lustre-2.4.2/libcfs/include
-I/usr/src/packages/BUILD/lustre-2.4.2/lnet/include
-I/usr/src/packages/BUILD/lustre-2.4.2/lustre/include
LLCPPFLAGS: -D__arch_lib__ -D_LARGEFILE64_SOURCE=1
CFLAGS: -g -O2 -Werror -Werror
EXTRA_KCFLAGS: -include /usr/src/packages/BUILD/lustre-2.4.2/config.h -g
-I/usr/src/packages/BUILD/lustre-2.4.2/libcfs/include
-I/usr/src/packages/BUILD/lustre-2.4.2/lnet/include
-I/usr/src/packages/BUILD/lustre-2.4.2/lustre/include
LLCFLAGS: -g -Wall -fPIC -D_GNU_SOURCE
Type 'make' to build Lustre.
+ make -j 8 -s
Making all in ldiskfs
Making all in ldiskfs
Applying ext4 patches:
sles11sp2/ext4-introduce-ext4_kvmalloc-ext4_kzalloc-and-ext4_kvfree.patch
sles11sp2/ext4-speed-up-fitrim-by-recording-flags-in-ext4_group_info.patch
sles11sp2/ext4-use-ext4_kvzalloc-ext4_kvmalloc-for-s_group_desc-and-s_group_info.patch1
out of 3 hunks FAILED -- saving rejects to file fs/ext4/resize.c.rej
make[4]: *** [sources] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.73194 (%build)
RPM build errors:
user jenkins does not exist - using root
group jenkins does not exist - using root
user jenkins does not exist - using root
group jenkins does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.73194 (%build)
--
Thanks,
Brainard
From: Anthony Alba [mailto:ascanio.alba7@gmail.com]
Sent: Thursday, March 13, 2014 07:45 PM
To: Daguman, Brainard R
Cc: hpdd-discuss@lists.01.org<mailto:hpdd-discuss@lists.01.org>
Subject: Re: [HPDD-discuss] Lustre client on SLES11sp2
That's odd as the client shouldn't need to build ldiskfs.
Try
rpmbuild .... --define "configure_options --enable-client --disable--server"
_______________________________________________
HPDD-discuss mailing list
HPDD-discuss@lists.01.org<mailto:HPDD-discuss@lists.01.org>
https://lists.01.org/mailman/listinfo/hpdd-discuss
_______________________________________________
HPDD-discuss mailing list
HPDD-discuss(a)lists.01.org
https://lists.01.org/mailman/listinfo/hpdd-discuss