[Buildroot] libglib2 build failure

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Feb 11 07:44:21 UTC 2010


Hello,

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

> `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

For the record, I've been able to fix this issue by using a more recent
gtk-doc.m4 version than the one I had in my repo. So now, libglib2
build with LIBTOOL_PATCH=YES and AUTORECONF=YES works.

However, without these, the build breaks for me,
with /usr/lib/libgobject-2.0.so: file not recognized: File format not
recognized. What's odd is that in the same conditions (same Buildroot
version, same version of libtool on the host, libglib-dev installed on
the host), the build doesn't break for Lionel.

I've also tried importing the OpenWRT way of handling libtool problems
into Buildroot, but it fails. For the record, the OpenWRT way is :

 * Compile libtool for the host, with a few patches

  https://dev.openwrt.org/browser/trunk/package/libtool/patches

 * When a package asks for a libtool fixup, do :

  cp $(HOST_DIR)/usr/share/libtool/ltmain.sh $$($$(PKG)_SRCDIR)
  cp $(HOST_DIR)/usr/share/aclocal/libtool.m4 $$($$(PKG)_SRCDIR)
  cp $(HOST_DIR)/usr/bin/libtool $$($$(PKG)_SRCDIR)

It fails with :

 ../../libtool: line 841: X--tag=CC: command not found
 ../../libtool: line 874: libtool: ignoring unknown tag : command not found
 [... many more issues ...]

Which, according to quick Google searches, seems to indicate that the
version of libtool.m4 doesn't match the one bundled into aclocal.m4. Or
something like this.

This libtool thing is really driving me crazy.

Thomas
-- 
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