xfs
[Top] [All Lists]

Can't build RPM of xfstests

To: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: Can't build RPM of xfstests
From: "Kaul, Yaniv" <Yaniv.Kaul@xxxxxxx>
Date: Sun, 12 Oct 2014 02:58:50 -0400
Accept-language: en-US
Acceptlanguage: en-US
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emc.com; s=jan2013; t=1413097082; bh=3a8uTSz8QKYVTtVRiFeLvGmFskI=; h=From:To:Date:Subject:Message-ID:Content-Type: Content-Transfer-Encoding:MIME-Version; b=i0K414+EUngrtFhQvpR+bsWi0kdZdlbc/qxgd0CrvbXcyx9GHl7U7ddqbkwFAH317 nNHeiTIeiqtEns1pKSS8qoQJmwNEAzkjndwV2LtNrOVw7W5n3++NelY6FU4s2yUVfA 18OoQdqGF4uRRSZAGSJWBQoxBFHReFMhjtOvj4iM=
Thread-index: Ac/l6QMX3jfeUaEyQDKnOPY0WOIJHQ==
Thread-topic: Can't build RPM of xfstests
I'm getting the sources from 
https://kernel.googlesource.com/pub/scm/fs/xfs/xfstests-dev (as I can't use git 
directly, only over HTTP(s) due to company policy)
I'm trying to compile the RPM on either CentOS 6.5 or 7, both fail identically. 
Log snippets:

== dist, log is Logs/dist
make: Entering directory `/var/jenkins/workspace/xfstests-build/build'
/bin/tar: xfstests-1.1.1/m4/general_headers.m4: Cannot stat: No such file or 
directory
/bin/tar: Exiting with failure status due to previous errors
Wrote: /var/jenkins/workspace/xfstests-build/build/xfstests-1.1.1.src.tar.gz
=== install ===
gmake[1]: Entering directory `/var/jenkins/workspace/xfstests-build'
Building include
Building lib
Building ltp
Building src
Building aio-dio-regress
Building m4
Building common
Building tests
/usr/bin/gmake --no-print-directory Q=@ -C include install
...
gmake[1]: Leaving directory `/var/jenkins/workspace/xfstests-build'
=== tar ===
Wrote: /var/jenkins/workspace/xfstests-build/build/tar/xfstests-1.1.1.tar.gz
=== rpm ===
/bin/sed -e's|@pkg_name@|xfstests|g' \
            -e's|@pkg_version@|1.1.1|g' \
            -e's|@pkg_release@|1|g' \
            -e's|@pkg_distribution@|Linux|g' \
            -e's|@build_root@|/tmp/34943|g' \
            -e'/^BuildRoot: *$/d' \
            -e's|@make@|/usr/bin/gmake|g' < xfstests.spec.in > xfstests.spec
/usr/bin/rpmbuild -ba --rcfile ./rpm-4.rc xfstests.spec
error: File /root/rpmbuild/SOURCES/xfstests-1.1.1.src.tar.gz: No such file or 
directory
gmake[1]: *** [dist] Error 1




OK, I manually copy the file over, and then try again:
usr/bin/gmake --no-print-directory Q= default
/usr/bin/gmake --no-print-directory Q= include lib ltp src m4 common tests
Building include
/usr/bin/gmake --no-print-directory Q= -q -C include || /usr/bin/gmake 
--no-print-directory Q= -C include
Building lib
/usr/bin/gmake --no-print-directory Q= -q -C lib || /usr/bin/gmake 
--no-print-directory Q= -C lib
    [LTDEP]
if [ -n "$( echo dataascii.c databin.c datapid.c file_lock.c forker.c pattern.c 
open_flags.c random_range.c string_to_tokens.c str_to_bytes.c tlibio.c 
write_log.c random.c)" ]; then \
            gcc -MM -g -O2 -g -O2 -DDEBUG  -I../include -DVERSION=\"1.1.1\" 
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -funsigned-char -fno-strict-aliasing -Wall 
 dataascii.c databin.c datapid.c file_lock.c forker.c pattern.c open_flags.c 
random_range.c string_to_tokens.c str_to_bytes.c tlibio.c write_log.c random.c 
| \
            /bin/sed -e 's,^\([^:]*\)\.o,\1.lo,' > .ltdep; \
        else \
            cp /dev/null .ltdep; \
        fi
file_lock.c:28:23: error: file_lock.h: No such file or directory
forker.c:104:20: error: forker.h: No such file or directory
open_flags.c:91:24: error: open_flags.h: No such file or directory
str_to_bytes.c:20:26: error: str_to_bytes.h: No such file or directory
    [CC] dataascii.lo
/usr/bin/libtool --quiet --tag=CC --mode=compile gcc -g -O2 -g -O2 -DDEBUG  
-I../include -DVERSION=\"1.1.1\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-funsigned-char -fno-strict-aliasing -Wall   -c dataascii.c
    [CC] databin.lo
/usr/bin/libtool --quiet --tag=CC --mode=compile gcc -g -O2 -g -O2 -DDEBUG  
-I../include -DVERSION=\"1.1.1\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-funsigned-char -fno-strict-aliasing -Wall   -c databin.c
    [CC] datapid.lo
/usr/bin/libtool --quiet --tag=CC --mode=compile gcc -g -O2 -g -O2 -DDEBUG  
-I../include -DVERSION=\"1.1.1\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-funsigned-char -fno-strict-aliasing -Wall   -c datapid.c
    [CC] file_lock.lo
/usr/bin/libtool --quiet --tag=CC --mode=compile gcc -g -O2 -g -O2 -DDEBUG  
-I../include -DVERSION=\"1.1.1\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-funsigned-char -fno-strict-aliasing -Wall   -c file_lock.c
file_lock.c:28:23: error: file_lock.h: No such file or directory
gmake[5]: *** [file_lock.lo] Error 1
gmake[4]: *** [lib] Error 2
gmake[3]: *** [default] Error 2
gmake[2]: *** [default] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.MrYMY7 (%build)




My job is simple:
yum -y install libuuid-devel xfsprogs xfsprogs-qa-devel xfsprogs-devel 
libattr-devel libacl-devel gcc autoconf libtool libaio-devel openssl-devel 
rpm-build e2fsprogs-devel
mkdir -p /var/lib/xfstests/ltp /var/lib/xfstests/src
make realclean
./Makepkgs verbose rpm

Any ideas?

<Prev in Thread] Current Thread [Next in Thread>