[Buildroot] libglib2 build failure

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Feb 10 07:51:18 UTC 2010


On Wed, 10 Feb 2010 08:26:59 +0100
Thomas Petazzoni <thomas.petazzoni at free-electrons.com> wrote:

> Well, I think LIBTOOL_PATCH=YES cannot work, since the
> buildroot-libtool.patch only applies properly to packages containing
> libtool 1.x, and libglib2 contains libtool 2.x.

In fact, LIBTOOL_PATCH=YES works, but the autoreconfigure afterwards
fails (see the log below). Any clue on what the problem is ?

For the record, I've added to the test my patch that installs
gtk-doc.m4 to $(STAGING_DIR)/usr/share/aclocal/ before running this
test, but saw no difference.

>>>   Patching libtool
>>>   Autoreconfiguring
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: /work/build/thomas/br-test1/host/usr/bin/aclocal -I /work/build/thomas/br-test1/staging/usr/share/aclocal -I /work/build/thomas/br-test1/staging/usr/share/aclocal --force 
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:632: AC_LIBTOOL_COMPILER_OPTION is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4932: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:2700: _LT_AC_LANG_C_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:2699: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:6477: AM_PROG_LIBTOOL is expanded from...
configure.in:510: the top level
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:677: AC_LIBTOOL_LINKER_OPTION is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:2781: _LT_AC_LANG_CXX_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:2780: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:1825: _LT_AC_TAGCONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4007: _LT_AC_LANG_F77_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4006: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4116: _LT_AC_LANG_GCJ_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4115: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
autoreconf: configure.in: tracing
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
aclocal.m4:1806: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:6094: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:3874: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:3873: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:1254: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:1234: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:1199: AC_PROG_LIBTOOL is expanded from...
aclocal.m4:7639: AM_PROG_LIBTOOL is expanded from...
configure.in:510: the top level
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:1851: AC_LIBTOOL_LINKER_OPTION is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3951: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:3950: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2999: _LT_AC_TAGCONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5173: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:5172: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5282: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:5281: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
autoreconf: running: libtoolize --copy --force
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:632: AC_LIBTOOL_COMPILER_OPTION is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4932: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:2700: _LT_AC_LANG_C_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:2699: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:6477: AM_PROG_LIBTOOL is expanded from...
configure.in:510: the top level
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:677: AC_LIBTOOL_LINKER_OPTION is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:2781: _LT_AC_LANG_CXX_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:2780: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:1825: _LT_AC_TAGCONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4007: _LT_AC_LANG_F77_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4006: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4116: _LT_AC_LANG_GCJ_CONFIG is expanded from...
/work/build/thomas/br-test1/staging/usr/share/aclocal/libtool.m4:4115: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
autoreconf: running: /work/build/thomas/br-test1/host/usr/bin/autoconf --include=/work/build/thomas/br-test1/staging/usr/share/aclocal --force
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
aclocal.m4:1806: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:6094: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:3874: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:3873: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:1254: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:1234: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:1199: AC_PROG_LIBTOOL is expanded from...
aclocal.m4:7639: AM_PROG_LIBTOOL is expanded from...
configure.in:510: the top level
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:1851: AC_LIBTOOL_LINKER_OPTION is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3951: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:3950: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2999: _LT_AC_TAGCONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5173: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:5172: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5282: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:5281: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
autoreconf: running: /work/build/thomas/br-test1/host/usr/bin/autoheader --include=/work/build/thomas/br-test1/staging/usr/share/aclocal --force
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
aclocal.m4:1806: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:6094: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:3874: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:3873: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:1254: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:1234: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:1199: AC_PROG_LIBTOOL is expanded from...
aclocal.m4:7639: AM_PROG_LIBTOOL is expanded from...
configure.in:510: the top level
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:1851: AC_LIBTOOL_LINKER_OPTION is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3951: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:3950: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2999: _LT_AC_TAGCONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5173: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:5172: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5282: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:5281: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
autoreconf: running: automake --add-missing --copy --force-missing
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
aclocal.m4:1806: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:6094: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:3874: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:3873: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:1254: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:1234: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:1199: AC_PROG_LIBTOOL is expanded from...
aclocal.m4:7639: AM_PROG_LIBTOOL is expanded from...
configure.in:510: the top level
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:1851: AC_LIBTOOL_LINKER_OPTION is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3951: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:3950: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2999: _LT_AC_TAGCONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5173: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:5172: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5282: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:5281: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.in:510: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
gtk-doc.make:53: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:122:   `gtk-doc.make' included from here
gtk-doc.make:58: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:122:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/gio/Makefile.am:122:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/gio/Makefile.am:1:   `Makefile.decl' included from here
gtk-doc.make:53: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/reference/glib/Makefile.am:73:   `gtk-doc.make' included from here
gtk-doc.make:58: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/reference/glib/Makefile.am:73:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/glib/Makefile.am:73:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/glib/Makefile.am:2:   `Makefile.decl' included from here
docs/reference/glib/Makefile.am:92: `%'-style pattern rules are a GNU make extension
gtk-doc.make:53: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
gtk-doc.make:58: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/gobject/Makefile.am:2:   `Makefile.decl' included from here
docs/reference/gobject/Makefile.am:74: `%'-style pattern rules are a GNU make extension
autoreconf: automake failed with exit status: 1
make: *** [/work/build/thomas/br-test1/build/libglib2-2.22.4/.stamp_patched] Error 1


-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list