Bug 1020394 - Libvirt compilation fails with ./autogen.sh '--no-git'
Summary: Libvirt compilation fails with ./autogen.sh '--no-git'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Eric Blake
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-17 15:06 UTC by chandrashekar shastri
Modified: 2016-04-10 15:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-10 15:08:03 UTC
Embargoed:


Attachments (Terms of Use)

Description chandrashekar shastri 2013-10-17 15:06:35 UTC
[root@phx2 libvirt]# ./autogen.sh '--no-git' && make && make install 
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
gnulib/lib/gnulib.mk:82: error: GL_GENERATE_ALLOCA_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:193: error: GL_GENERATE_BYTESWAP_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:389: error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:423: error: GL_GENERATE_EXECINFO_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:545: error: GL_GENERATE_FLOAT_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:576: error: GL_GENERATE_FNMATCH_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1199: error: GL_GENERATE_NET_IF_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1264: error: GL_GENERATE_NETINET_IN_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1441: error: GL_GENERATE_PTHREAD_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1589: error: GL_GENERATE_SCHED_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1898: error: GL_GENERATE_STDALIGN_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1921: error: GL_GENERATE_STDARG_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1949: error: GL_GENERATE_STDBOOL_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1972: error: GL_GENERATE_STDDEF_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:2002: error: GL_GENERATE_STDINT_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:32: error: @LTALLOCA@ used but 'LTALLOCA' is undefined
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/tests/gnulib.mk:1533: error: POSIX_SPAWN_PORTED does not appear in AM_CONDITIONAL
gnulib/tests/Makefile.am:19:   'gnulib/tests/gnulib.mk' included from here
gnulib/tests/Makefile.am:28: warning: TESTS was already defined in condition TRUE, which includes condition WITH_EXPENSIVE_TESTS ...
gnulib/tests/gnulib.mk:28: ... 'TESTS' previously defined here
gnulib/tests/Makefile.am:19:   'gnulib/tests/gnulib.mk' included from here
autoreconf: automake failed with exit status: 1


[root@phx2 libvirt]# git log | head
commit ac5f3f292b949ba46a16dbbb40786456e2be3d3a
Author: Michal Privoznik <mprivozn>
Date:   Tue Oct 15 19:07:42 2013 +0200

    qemuDomainCleanupRemove: s/memmove/VIR_DELETE_ELEMENT_INPLACE/
    
    The last argument of memmove is the amount of bytes to be moved. The
    amount is in Bytes. We are moving some void pointers around. However,
    since sizeof(void *) is not Byte on any architecture, we've got the
    arithmetic wrong.

[root@phx2 libvirt]# git submodule
-4a5ee89c8a8be7350a8fd8ca1bacb196a190e492 .gnulib

[root@phx2 libvirt]# cd ../gnulib/

[root@phx2 gnulib]# git reset 4a5ee89c8a8be7350a8fd8ca1bacb196a190e492 --hard
HEAD is now at 4a5ee89 manywarnings: enable nicer gcc warning messages

[root@phx2 gnulib]# git log | head
commit 4a5ee89c8a8be7350a8fd8ca1bacb196a190e492
Author: Eric Blake <eblake>
Date:   Tue Sep 24 06:33:40 2013 -0600

    manywarnings: enable nicer gcc warning messages
    
    With gcc 4.3.4, -Wdisabled-optimization is noisy unless you also
    use -funit-at-a-time.
    
    With gcc 4.4.7, there is no indication which warning option

Comment 1 Eric Blake 2013-10-17 15:13:56 UTC
(In reply to chandrashekar shastri from comment #0)
> [root@phx2 libvirt]# ./autogen.sh '--no-git' && make && make install 

Can you show the steps taken before this point - on how you cloned the repo and ensured that .gnulib and/or $GNULIB_SRCDIR is pointing to the correct checkout?

> 
> [root@phx2 libvirt]# git submodule
> -4a5ee89c8a8be7350a8fd8ca1bacb196a190e492 .gnulib

This says you don't have the submodule checked out (which matches your use of --no-git)
> 
> [root@phx2 libvirt]# cd ../gnulib/
> 
> [root@phx2 gnulib]# git reset 4a5ee89c8a8be7350a8fd8ca1bacb196a190e492 --hard
> HEAD is now at 4a5ee89 manywarnings: enable nicer gcc warning messages

But that doesn't say if $GNULIB_SRCDIR was pointing here, nor whether this was the state of the directory prior to your autogen.sh attempt.

Comment 2 chandrashekar shastri 2013-10-18 12:37:52 UTC
[root@phx2 libvirt]# echo $GNULIB_SRCDIR
/home/gnulib

I have created a gnulib outside the libvirt folder, this time I deleted the folder and created a new gnulib folder and pulled the gnulib. So I did not see the issue "manywarnings: enable nicer gcc warning messages" when I reseted the submodule.

[root@phx2 gnulib]# git reset 4a5ee89c8a8be7350a8fd8ca1bacb196a190e492
Unstaged changes after reset:
M	ChangeLog
M	MODULES.html.sh
M	build-aux/config.sub
M	build-aux/pmccabe2html
M	doc/glibc-functions/dup3.texi
M	doc/glibc-functions/getdtablesize.texi
M	doc/maintain.texi
M	doc/posix-functions/dup2.texi
M	doc/posix-functions/mkfifo.texi
M	doc/posix-functions/mkfifoat.texi
M	doc/posix-functions/mknod.texi
M	doc/posix-functions/mknodat.texi
M	doc/verify.texi
M	lib/count-leading-zeros.h
M	lib/count-one-bits.c
M	lib/count-one-bits.h
M	lib/dup2.c
M	lib/dup3.c
M	lib/getdtablesize.c
M	lib/inttypes.in.h
M	lib/mgetgroups.c
M	lib/mountlist.c
M	lib/strtoimax.c
M	lib/unistd.in.h
M	lib/verify.h
M	m4/acl.m4
M	m4/dup2.m4
M	m4/dup3.m4
M	m4/getdtablesize.m4
M	m4/inttypes.m4
M	m4/strtoimax.m4
M	m4/strtoumax.m4
M	m4/unistd_h.m4
M	modules/count-one-bits
M	modules/getdtablesize
M	modules/inttypes-incomplete
M	modules/mgetgroups
M	modules/regex-tests
M	modules/strtoimax
M	modules/strtoumax
M	modules/unistd
M	tests/macros.h
M	tests/test-dup2.c
M	tests/test-dup3.c
M	tests/test-getdtablesize.c
M	tests/test-mkfifo.h


However when I tried to compile the libvirt, I was facing the same problem:

[root@phx2 libvirt]# ./autogen.sh '--no-git' && make && make install 
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
gnulib/lib/gnulib.mk:82: error: GL_GENERATE_ALLOCA_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:193: error: GL_GENERATE_BYTESWAP_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:389: error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:423: error: GL_GENERATE_EXECINFO_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:545: error: GL_GENERATE_FLOAT_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:576: error: GL_GENERATE_FNMATCH_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1199: error: GL_GENERATE_NET_IF_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1264: error: GL_GENERATE_NETINET_IN_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1441: error: GL_GENERATE_PTHREAD_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1589: error: GL_GENERATE_SCHED_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1898: error: GL_GENERATE_STDALIGN_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1921: error: GL_GENERATE_STDARG_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1949: error: GL_GENERATE_STDBOOL_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:1972: error: GL_GENERATE_STDDEF_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:2002: error: GL_GENERATE_STDINT_H does not appear in AM_CONDITIONAL
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/lib/gnulib.mk:32: error: @LTALLOCA@ used but 'LTALLOCA' is undefined
gnulib/lib/Makefile.am:28:   'gnulib/lib/gnulib.mk' included from here
gnulib/tests/gnulib.mk:1533: error: POSIX_SPAWN_PORTED does not appear in AM_CONDITIONAL
gnulib/tests/Makefile.am:19:   'gnulib/tests/gnulib.mk' included from here
gnulib/tests/Makefile.am:28: warning: TESTS was already defined in condition TRUE, which includes condition WITH_EXPENSIVE_TESTS ...
gnulib/tests/gnulib.mk:28: ... 'TESTS' previously defined here
gnulib/tests/Makefile.am:19:   'gnulib/tests/gnulib.mk' included from here
autoreconf: automake failed with exit status: 1

Comment 3 Cole Robinson 2016-04-10 15:08:03 UTC
This works fine for me, so I suspect it's fixed nowadays


Note You need to log in before you can comment on or make changes to this bug.