[libvirt] Re: make fails (Kenneth Nagin)

I downloaded the latest libvirt and tried to make it but received this error message:
make: *** No rule to make target `gnulib/m4/onceonly_2_57.m4', needed by `Makefile.in'. Stop.
The problem was related to running ./autogen.sh --prefix=$HOME/usr. I didn't notice that it did not run correctly. It requires the install gettext-devel which does not come automatically with fedora. But now the make fails due to an i386 / i386:x86-64 incompatibility. These are the error messages: /usr/bin/ld: i386 architecture of input file `.libs/libvirt_la-openvz_conf.o' is incompatible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `.libs/libvirt_la-openvz_driver.o' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status make[2]: *** [libvirt.la] Error 1 make[2]: Leaving directory `/home/nagin/workspace/libvirt/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nagin/workspace/libvirt' make: *** [all] Error 2 -- Kenneth Nagin

On Mon, Jul 21, 2008 at 10:31:47AM +0300, Kenneth Nagin wrote:
I downloaded the latest libvirt and tried to make it but received this error message:
make: *** No rule to make target `gnulib/m4/onceonly_2_57.m4', needed by `Makefile.in'. Stop.
The problem was related to running ./autogen.sh --prefix=$HOME/usr. I didn't notice that it did not run correctly. It requires the install gettext-devel which does not come automatically with fedora.
But now the make fails due to an i386 / i386:x86-64 incompatibility. These are the error messages:
/usr/bin/ld: i386 architecture of input file `.libs/libvirt_la-openvz_conf.o' is incompatible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `.libs/libvirt_la-openvz_driver.o' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status
My guess is that you are sharing the same subtree between 32 and 64 bits machines and there are remains of the build for x86-64 when attempting the build on 32 bits. Run make clean (or distclean) and restart from scratch, 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 10:31:47AM +0300, Kenneth Nagin wrote:
I downloaded the latest libvirt and tried to make it but received this error message:
make: *** No rule to make target `gnulib/m4/onceonly_2_57.m4', needed
by
`Makefile.in'. Stop.
The problem was related to running ./autogen.sh --prefix=$HOME/usr. I didn't notice that it did not run correctly. It requires the install gettext-devel which does not come automatically with fedora.
But now the make fails due to an i386 / i386:x86-64 incompatibility. These are the error messages:
/usr/bin/ld: i386 architecture of input file `.libs/libvirt_la-openvz_conf.o' is incompatible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `.libs/libvirt_la-openvz_driver.o' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status
My guess is that you are sharing the same subtree between 32 and 64 bits machines and there are remains of the build for x86-64 when attempting
Daniel Veillard <veillard@redhat.com> wrote on 21/07/2008 11:58:01: the
build on 32 bits. Run make clean (or distclean) and restart from scratch,
Daniel Kenneth Nagin <nagin@il.ibm.com> wrote on 21/07/2008
That was the problem. I download the source again to a new director and the incompatibility problem disappeared. However the it failed with a compilation error. There was a missing ';' at the end of the xenUnifiedOpen() function. This is the error message: xen_unified.c: In function 'xenUnifiedOpen': xen_unified.c:348: error: expected ';' before '}' token xen_unified.c:342: warning: label 'clean' defined but not used make[2]: *** [libvirt_la-xen_unified.lo] Error 1 I added the ';' and now it compiles.. This is the diff between the fixed code and the original code: [nagin@arenal src]$ diff xen_unified.c xen_unified.c.org 347c347 < return ret;] ---
return ret;]
This the fixed xen_unified.c (See attached file: xen_unified.c) Thanks for the help. Kenneth

On Mon, Jul 21, 2008 at 02:25:50PM +0300, Kenneth Nagin wrote:
However the it failed with a compilation error. There was a missing ';' at the end of the xenUnifiedOpen() function. This is the error message: xen_unified.c: In function 'xenUnifiedOpen': xen_unified.c:348: error: expected ';' before '}' token xen_unified.c:342: warning: label 'clean' defined but not used
that's just me commiting stuff without not compiling first, sorry that's fixed. 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 10:31:47AM +0300, Kenneth Nagin wrote:
I downloaded the latest libvirt and tried to make it but received this error message:
make: *** No rule to make target `gnulib/m4/onceonly_2_57.m4', needed by `Makefile.in'. Stop.
The problem was related to running ./autogen.sh --prefix=$HOME/usr. I didn't notice that it did not run correctly. It requires the install gettext-devel which does not come automatically with fedora.
But now the make fails due to an i386 / i386:x86-64 incompatibility. These are the error messages:
/usr/bin/ld: i386 architecture of input file `.libs/libvirt_la-openvz_conf.o' is incompatible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `.libs/libvirt_la-openvz_driver.o' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status
I'd say your compiler toolchain installation is messed up - you seem to have compiled for i386, and but are linking for x86_64 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
-
Kenneth Nagin