[Ovirt-devel] Ovirt node-imge build error Bad exit status from /var/tmp/rpm-tmp.9bshdl (%build)
이재영
xner at sestory.net
Tue Feb 8 06:58:30 UTC 2011
Hi
Ovirt node image build problem…
Node image build my system OS Fedora core 14.
I am have a question about installation process of oVirt project.
Install DOC : https://fedorahosted.org/ovirt/wiki/Build
But node-image build error…
[root at Ovirt-T node]# ./autogen.sh
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ksflatten... no
configure: error: Missing python kickstart support.
error fix
http://www.mail-archive.com/ovirt-devel@redhat.com/msg01044.html
used command :
yum install libvirt-devel
yum install pykickstart
[root at Ovirt-T node]# ./autogen.sh
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ksflatten... ksflatten
checking for main in -lvirt... yes
checking for main in -lpython2.6... no
configure: error: Cannot find python development libraries.
error fix
http://www.mail-archive.com/ovirt-devel@redhat.com/msg01030.html
command : configure file 3461 line edit
Quick fix for this is in the configure file line 3461 change from:
LIBS="-lpython2.6 $LIBS"
to
LIBS="-lpython2.7 $LIBS"
Also livecd creator is able to generate isos that are different os'es than
the one used to build it.
[root at Ovirt-T node]# make publish
{ test ! -d "ovirt-node-1.9.3" || { find "ovirt-node-1.9.3" -type d ! -perm
-200 -exec chmod u+w {} ';' && rm -fr "ovirt-node-1.9.3"; }; }
test -d "ovirt-node-1.9.3" || mkdir "ovirt-node-1.9.3"
(cd gptsync && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-
1.9.3/gptsync \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/gptsync'
make[1]: Leaving directory `/root/ovirt/node/gptsync'
(cd images && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-1.
9.3/images \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/images'
make[1]: Leaving directory `/root/ovirt/node/images'
(cd kinit && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-
1.9.3/kinit \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/kinit'
make[1]: Leaving directory `/root/ovirt/node/kinit'
(cd nodeadmin && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-
node-1.9.3/nodeadmin \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/nodeadmin'
make[1]: Leaving directory `/root/ovirt/node/nodeadmin'
(cd recipe && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-1.
9.3/recipe \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/recipe'
make[1]: Leaving directory `/root/ovirt/node/recipe'
(cd scripts && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-
1.9.3/scripts \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/scripts'
make[1]: Leaving directory `/root/ovirt/node/scripts'
(cd tools && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-
1.9.3/tools \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/tools'
make[1]: Leaving directory `/root/ovirt/node/tools'
test -n "" \
|| find "ovirt-node-1.9.3" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec /bin/sh /root/ovirt/node/install-sh -c -m
a+r {} {} \; \
|| chmod -R a+r "ovirt-node-1.9.3"
tardir=ovirt-node-1.9.3 && tar --format=posix -chf - "$tardir" | GZIP=--
best gzip -c >ovirt-node-1.9.3.tar.gz
{ test ! -d "ovirt-node-1.9.3" || { find "ovirt-node-1.9.3" -type d ! -perm
-200 -exec chmod u+w {} ';' && rm -fr "ovirt-node-1.9.3"; }; }
rpmbuild --define "ovirt_cache_dir /root/ovirt-cache" --define
"extra_release .$(date --utc +%Y%m%d%H%M%S)git$(git log -1 --
pretty=format:%h)" -ta ovirt-node-1.9.3.tar.gz
error: Failed build dependencies:
python-setuptools is needed by ovirt-node-1.9.3-
0.fc14.20110208011117git54f9ea5.x86_64
make: *** [rpms] Error 1
error fix
http://www.mail-archive.com/ovirt-devel@redhat.com/msg01048.html
yum install python-setuptools
[root at Ovirt-T node]# make publish
{ test ! -d "ovirt-node-1.9.3" || { find "ovirt-node-1.9.3" -type d ! -perm
-200 -exec chmod u+w {} ';' && rm -fr "ovirt-node-1.9.3"; }; }
test -d "ovirt-node-1.9.3" || mkdir "ovirt-node-1.9.3"
(cd gptsync && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-
1.9.3/gptsync \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/gptsync'
make[1]: Leaving directory `/root/ovirt/node/gptsync'
(cd images && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-1.
9.3/images \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/images'
make[1]: Leaving directory `/root/ovirt/node/images'
(cd kinit && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-
1.9.3/kinit \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/kinit'
make[1]: Leaving directory `/root/ovirt/node/kinit'
(cd nodeadmin && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-
node-1.9.3/nodeadmin \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/nodeadmin'
make[1]: Leaving directory `/root/ovirt/node/nodeadmin'
(cd recipe && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-1.
9.3/recipe \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/recipe'
make[1]: Leaving directory `/root/ovirt/node/recipe'
(cd scripts && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-
1.9.3/scripts \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/scripts'
make[1]: Leaving directory `/root/ovirt/node/scripts'
(cd tools && make top_distdir=../ovirt-node-1.9.3 distdir=../ovirt-node-
1.9.3/tools \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
distdir)
make[1]: Entering directory `/root/ovirt/node/tools'
make[1]: Leaving directory `/root/ovirt/node/tools'
test -n "" \
|| find "ovirt-node-1.9.3" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec /bin/sh /root/ovirt/node/install-sh -c -m
a+r {} {} \; \
|| chmod -R a+r "ovirt-node-1.9.3"
tardir=ovirt-node-1.9.3 && tar --format=posix -chf - "$tardir" | GZIP=--
best gzip -c >ovirt-node-1.9.3.tar.gz
{ test ! -d "ovirt-node-1.9.3" || { find "ovirt-node-1.9.3" -type d ! -perm
-200 -exec chmod u+w {} ';' && rm -fr "ovirt-node-1.9.3"; }; }
rpmbuild --define "ovirt_cache_dir /root/ovirt-cache" --define
"extra_release .$(date --utc +%Y%m%d%H%M%S)git$(git log -1 --
pretty=format:%h)" -ta ovirt-node-1.9.3.tar.gz
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2WSQeT
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/BUILD
+ rm -rf ovirt-node-1.9.3
+ /bin/tar -xf -
+ /usr/bin/gzip -dc /root/ovirt/node/ovirt-node-1.9.3.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ovirt-node-1.9.3
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9bshdl
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd ovirt-node-1.9.3
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic -
I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-
gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-
prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --
datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --
libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --
mandir=/usr/share/man --infodir=/usr/share/info
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for x86_64-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ksflatten... ksflatten
checking for main in -lvirt... yes
checking for main in -lpython2.6... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating images/Makefile
config.status: creating kinit/Makefile
config.status: creating nodeadmin/Makefile
config.status: creating scripts/Makefile
config.status: creating tools/Makefile
config.status: creating scripts/collectd.conf
config.status: creating nodeadmin/setup.py
config.status: creating gptsync/Makefile
config.status: creating recipe/Makefile
config.status: creating ovirt-node.spec
config.status: creating config.h
config.status: executing depfiles commands
+ make OVIRT_CACHE_DIR=/root/ovirt-cache
make[1]: Entering directory `/root/rpmbuild/BUILD/ovirt-node-1.9.3'
make all-recursive
make[2]: Entering directory `/root/rpmbuild/BUILD/ovirt-node-1.9.3'
Making all in gptsync
make[3]: Entering directory `/root/rpmbuild/BUILD/ovirt-node-1.9.3/gptsync'
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DPROGNAME=gptsync -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o
gptsync-gptsync.o `test -f 'gptsync.c' || echo './'`gptsync.c
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DPROGNAME=gptsync -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o
gptsync-lib.o `test -f 'lib.c' || echo './'`lib.c
gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DPROGNAME=gptsync -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o
gptsync-os_unix.o `test -f 'os_unix.c' || echo './'`os_unix.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o gptsync
gptsync-gptsync.o gptsync-lib.o gptsync-os_unix.o -lpython2.6 -lvirt
/usr/bin/ld: cannot find -lpython2.6
collect2: ld returned 1 exit status
make[3]: *** [gptsync] Error 1
make[3]: Leaving directory `/root/rpmbuild/BUILD/ovirt-node-1.9.3/gptsync'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/ovirt-node-1.9.3'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/ovirt-node-1.9.3'
error: Bad exit status from /var/tmp/rpm-tmp.9bshdl (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.9bshdl (%build)
make: *** [rpms] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20110208/11d52b11/attachment.htm>
More information about the ovirt-devel
mailing list