[libvirt] Problem building RPM on x86_64

I'm hitting the following problem while building an RPM for x86_64: (mcpierce@dpierce-dev:libvirt)$ make rpm Making clean in po make[1]: Entering directory `/home/mcpierce/Programming/libvirt/po' rm -f *.insert-header rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* libvirt.po libvirt.1po libvirt.2po *.new.po rm -fr *.o ... make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/gnulib/tests' make[2]: Entering directory `/home/mcpierce/Programming/libvirt/python' make[2]: *** No rule to make target `libvirt-py.c', needed by `distdir'. Stop. make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/python' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/mcpierce/Programming/libvirt' make: *** [rpm] Error 2 However, on i386 the build works just fine. -- Darryl L. Pierce, Sr. Software Engineer Red Hat, Inc. - http://www.redhat.com/ oVirt - Virtual Machine Management - http://www.ovirt.org/ "What do you care what other people think, Mr. Feynman?"

On Mon, Jul 21, 2008 at 10:51:54AM -0400, Darryl L. Pierce wrote:
I'm hitting the following problem while building an RPM for x86_64:
(mcpierce@dpierce-dev:libvirt)$ make rpm Making clean in po make[1]: Entering directory `/home/mcpierce/Programming/libvirt/po' rm -f *.insert-header rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* libvirt.po libvirt.1po libvirt.2po *.new.po rm -fr *.o ... make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/gnulib/tests' make[2]: Entering directory `/home/mcpierce/Programming/libvirt/python' make[2]: *** No rule to make target `libvirt-py.c', needed by `distdir'. Stop. make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/python' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/mcpierce/Programming/libvirt' make: *** [rpm] Error 2
However, on i386 the build works just fine.
There is nothing arch specific there. Can you check the output of configure and find if it detected Python development environment ? Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

Daniel Veillard wrote:
make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/gnulib/tests' make[2]: Entering directory `/home/mcpierce/Programming/libvirt/python' make[2]: *** No rule to make target `libvirt-py.c', needed by `distdir'. Stop. make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/python' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/mcpierce/Programming/libvirt' make: *** [rpm] Error 2
However, on i386 the build works just fine.
There is nothing arch specific there. Can you check the output of configure and find if it detected Python development environment ?
python-devel was not installed and, while configure detected the following: checking for ped_device_read in -lparted... no checking for python... /usr/bin/python Found Python version 2.5 could not find python2.5/Python.h checking whether this host is running a Xen kernel... no However, it didn't error out on it. -- Darryl L. Pierce, Sr. Software Engineer Red Hat, Inc. - http://www.redhat.com/ oVirt - Virtual Machine Management - http://www.ovirt.org/ "What do you care what other people think, Mr. Feynman?"

On Mon, Jul 21, 2008 at 10:59:17AM -0400, Darryl L. Pierce wrote:
Daniel Veillard wrote:
make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/gnulib/tests' make[2]: Entering directory `/home/mcpierce/Programming/libvirt/python' make[2]: *** No rule to make target `libvirt-py.c', needed by `distdir'. Stop. make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/python' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/mcpierce/Programming/libvirt' make: *** [rpm] Error 2
However, on i386 the build works just fine.
There is nothing arch specific there. Can you check the output of configure and find if it detected Python development environment ?
python-devel was not installed and, while configure detected the following:
checking for ped_device_read in -lparted... no checking for python... /usr/bin/python Found Python version 2.5 could not find python2.5/Python.h checking whether this host is running a Xen kernel... no
However, it didn't error out on it.
Because missing python is not an error - it is optional for regular users build and install. If you want to build RPMs though you must have everything installed. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On Mon, Jul 21, 2008 at 04:03:13PM +0100, Daniel P. Berrange wrote:
On Mon, Jul 21, 2008 at 10:59:17AM -0400, Darryl L. Pierce wrote:
Daniel Veillard wrote:
make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/gnulib/tests' make[2]: Entering directory `/home/mcpierce/Programming/libvirt/python' make[2]: *** No rule to make target `libvirt-py.c', needed by `distdir'. Stop. make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/python' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/mcpierce/Programming/libvirt' make: *** [rpm] Error 2
However, on i386 the build works just fine.
There is nothing arch specific there. Can you check the output of configure and find if it detected Python development environment ?
python-devel was not installed and, while configure detected the following:
checking for ped_device_read in -lparted... no checking for python... /usr/bin/python Found Python version 2.5 could not find python2.5/Python.h checking whether this host is running a Xen kernel... no
However, it didn't error out on it.
Because missing python is not an error - it is optional for regular users build and install. If you want to build RPMs though you must have everything installed.
I don't understand how that could happen, the spec file states BuildRequires: python python-devel I still don't understand. what version did you tried to build, and how ? Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

On Mon, Jul 21, 2008 at 11:05:09AM -0400, Daniel Veillard wrote:
On Mon, Jul 21, 2008 at 04:03:13PM +0100, Daniel P. Berrange wrote:
On Mon, Jul 21, 2008 at 10:59:17AM -0400, Darryl L. Pierce wrote:
Daniel Veillard wrote:
make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/gnulib/tests' make[2]: Entering directory `/home/mcpierce/Programming/libvirt/python' make[2]: *** No rule to make target `libvirt-py.c', needed by `distdir'. Stop. make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/python' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/mcpierce/Programming/libvirt' make: *** [rpm] Error 2
However, on i386 the build works just fine.
There is nothing arch specific there. Can you check the output of configure and find if it detected Python development environment ?
python-devel was not installed and, while configure detected the following:
checking for ped_device_read in -lparted... no checking for python... /usr/bin/python Found Python version 2.5 could not find python2.5/Python.h checking whether this host is running a Xen kernel... no
However, it didn't error out on it.
Because missing python is not an error - it is optional for regular users build and install. If you want to build RPMs though you must have everything installed.
I don't understand how that could happen, the spec file states BuildRequires: python python-devel
I still don't understand. what version did you tried to build, and how ?
That log shows it is failing in the 'make dist' part - it hasn't got to the rpmbuild bit yet so BuildRequires aren't used. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Daniel P. Berrange wrote:
Because missing python is not an error - it is optional for regular users build and install. If you want to build RPMs though you must have everything installed.
Bingo, that was it. Once I installed python-devel and the other -devel RPMs things worked correctly. Thanks for the help. :) -- Darryl L. Pierce, Sr. Software Engineer Red Hat, Inc. - http://www.redhat.com/ oVirt - Virtual Machine Management - http://www.ovirt.org/ "What do you care what other people think, Mr. Feynman?"

On Mon, Jul 21, 2008 at 10:51:54AM -0400, Darryl L. Pierce wrote:
I'm hitting the following problem while building an RPM for x86_64:
(mcpierce@dpierce-dev:libvirt)$ make rpm Making clean in po make[1]: Entering directory `/home/mcpierce/Programming/libvirt/po' rm -f *.insert-header rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* libvirt.po libvirt.1po libvirt.2po *.new.po rm -fr *.o ... make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/gnulib/tests' make[2]: Entering directory `/home/mcpierce/Programming/libvirt/python' make[2]: *** No rule to make target `libvirt-py.c', needed by `distdir'. Stop. make[2]: Leaving directory `/home/mcpierce/Programming/libvirt/python' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/mcpierce/Programming/libvirt' make: *** [rpm] Error 2
However, on i386 the build works just fine.
Sounds like you're missing the python development libraries. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (3)
-
Daniel P. Berrange
-
Daniel Veillard
-
Darryl L. Pierce