Forum: Installation

Post: RPM build (and rpm_package) fails on Centos 6/Fedora

RPM build (and rpm_package) fails on Centos 6/Fedora
amilkowski
Aug 31, 2013
Hello

Trying to build rpm from sources using https://github.com/VoltDB/voltdb/archive/voltdb-3.5.0.1.tar.gz

My environment is Fedora 19 (but tried Centos 6 and the same problem)

Linux localhost.localdomain 3.10.9-200.fc19.x86_64 #1 SMP Wed Aug 21 19:27:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Also actually if there is a README/doc on RPM build process, this would be great (failed to locate it anywhere so looked into build.xml ant target...)

Steps:

ant dist (success)
ant rpm_package (failure)


Total time: 2 seconds
[root@localhost voltdb-voltdb-3.5.0.1]# ant rpm_package >out.txt

BUILD FAILED
/opt/local/voltdb/voltdb-voltdb-3.5.0.1/build.xml:2158: exec returned: 1

Total time: 1 second


Buildfile: /opt/local/voltdb/voltdb-voltdb-3.5.0.1/build.xml

buildinfo:
[exec] This is not a git working tree
[exec]
[exec] This not an svn working copy
[exec] Version: 3.5.0.1 This is not from a known repository

rpm_package:
[exec] Executing(%prep): /bin/sh -e /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/tmp/rpm-tmp.sTUuf6
[exec] Executing(%build): /bin/sh -e /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/tmp/rpm-tmp.owdO7V
[exec] Executing(%install): /bin/sh -e /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/tmp/rpm-tmp.FWnw0L
[exec] Processing files: voltdb-3.5.0.1-1.x86_64
[exec] warning: bogus date in %changelog: Fri Jan 14 2013 Phil Rosegay <support@voltdb.com> 3.0-1
[exec] + umask 022
[exec] + cd /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILD
[exec] + cd /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILD
[exec] + rm -rf voltdb-3.5.0.1
[exec] + /usr/bin/tar -xf /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/SOURCES/voltdb-3.5.0.1.tar.gz
[exec] + cd voltdb-3.5.0.1
[exec] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
[exec] + exit 0
[exec] + umask 022
[exec] + cd /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILD
[exec] + cd voltdb-3.5.0.1
[exec] + exit 0
[exec] + umask 022
[exec] + cd /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILD
[exec] + '[' /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64 '!=' / ']'
[exec] + rm -rf /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64
[exec] ++ dirname /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64
[exec] + mkdir -p /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT
[exec] + mkdir /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64
[exec] + cd voltdb-3.5.0.1
[exec] error: File not found: /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64/usr/share/voltdb-3.5.0.1/bin/voltdb
[exec] error: File not found: /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64/usr/share/voltdb-3.5.0.1/bin/exporttofile
[exec] error: File not found: /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64/usr/share/voltdb-3.5.0.1/bin/sqlcmd
[exec] error: File not found: /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64/usr/share/voltdb-3.5.0.1/bin/voltadmin
[exec] error: File not found: /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64/usr/share/voltdb-3.5.0.1/bin/voltcompiler

...
...
...

[exec] File not found: /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64/usr/share/voltdb-3.5.0.1/tools/demo/intro.htm
[exec] File not found: /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64/usr/share/voltdb-3.5.0.1/tools/demo/index.htm
[exec] File not found: /tmp/voltdb-install_iMz30C_rpmbuild/rpmbuild/BUILDROOT/voltdb-3.5.0.1-1.x86_64/usr/share/voltdb-3.5.0.1/tools/demo/css/demo.css
[exec] ERROR: return code 256: rpmbuild -bb voltdb.spec
[exec] FATAL: Giving up.
[exec]
[exec]
[exec] RPM build errors:
[exec] INFO: Extracting distribution tarball to "/tmp/voltdb-install_ue6B3L_tmp"...
[exec] INFO: Reading buildstring.txt from "/tmp/voltdb-install_ue6B3L_tmp/voltdb-3.5.0.1/voltdb/voltdb-3.5.0.1.jar"...
[exec] INFO: Removing existing output directory "/tmp/voltdb-install_iMz30C_rpmbuild"...
[exec] INFO: Setting ownership of "/tmp/voltdb-install_iMz30C_rpmbuild" to amilkowski:amilkowski...
[exec] INFO: Delete temporary: /tmp/voltdb-install_ue6B3L_tmp
[exec] INFO: Delete temporary: /tmp/voltdb-install_iMz30C_rpmbuild
bballard
Sep 3, 2013
It looks like you are trying to build the rpm package from source. Do you know that we provide pre-built RPM packages on our download page? http://voltdb.com/community/downloads.php
amilkowski
Sep 3, 2013
bballard, yes have I actually requested rpm, but we have tight control over source/binary distribution (especially when it comes to open source) for example if there ever will be need for a patch, we would love to apply it/verify it (unit tests/other) then rebuild rpm (rpmbuild)

what process was used to build the rpm, looks like you have succeeded (I presume build needs to run as root which I did) I am also on Centos 6.4 maybe this matters?

thanks in advance!
scooper
Sep 3, 2013
Hi,

After some experimentation it looks like RPM building was broken by CentOS 6.4. It works fine on 5.x. The rpmbuild tool must handle paths a little differently. I added a JIRA ticket to address it.

https://issues.voltdb.com/browse/ENG-5123

Sorry for the problem,

Steve