Bug 1054657
Summary: | On Archbsd which uses Freebsd10 kernel and world the libvirt-glib with enable-introspection does not compile (using gcc or clang) | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | claudiu2004 |
Component: | libvirt-glib | Assignee: | Daniel Berrangé <berrange> |
Status: | CLOSED NEXTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | berrange, cfergeau, veillard |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | FreeBSD | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-21 12:15:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
claudiu2004
2014-01-17 08:26:20 UTC
it would be good to raise this portability issue in libvirt list https://www.redhat.com/mailman/listinfo/libvir-list if you didn't already ! thanks for the report, Daniel The full build log might be useful. Are you building with -jX? Could be parallel build which is broken. Does libvirt-glib/libvirt-glib-1.0.la exist when this fails? Is it empty? Hello, This is the full log for build: http://sprunge.us/WbGR This is the PKGBUILD used: http://sprunge.us/QZQQ gmake was uset with -j1 Hello, This is the full log for build: http://sprunge.us/WbGR This is the PKGBUILD used: http://sprunge.us/QZQQ gmake was used with -j1 Sorry for the double post This is the content of libvirt-glib/libvirt-glib-1.0.la after the compilation fails http://sprunge.us/ScAj A patch similar to https://fedorahosted.org/libosinfo/ticket/11 may be needed. Yes, I'll work up a fix for the build process. Thank you very much, I did apply those patches against libvirt-gobject 1.7 and got the autogen.sh from the git repository, but now I am encounering this issue: gmake[3]: Entering directory `/usr/home/builder/package/src/libvirt-glib-0.1.7/libvirt-gobject' /usr/bin/g-ir-compiler --includedir=. LibvirtGObject-1.0.gir -o LibvirtGObject-1.0.typelib Could not find GIR file 'LibvirtGConfig-1.0.gir'; check XDG_DATA_DIRS or use --includedir error parsing file LibvirtGObject-1.0.gir: Failed to parse included gir LibvirtGConfig-1.0 gmake[3]: *** [LibvirtGObject-1.0.typelib] Error 1 gmake[3]: Leaving directory `/usr/home/builder/package/src/libvirt-glib-0.1.7/libvirt-gobject' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/home/builder/package/src/libvirt-glib-0.1.7/libvirt-gobject' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/home/builder/package/src/libvirt-glib-0.1.7' Used this in place of ./configure autogen.sh \ --enable-introspection \ --with-python=/usr/bin/python2 What gobject-introspection version are you using? Did you get more errors/warnings on a build from a clean tree? The g-ir-compiler is the same here, and I don't get this error. Hello, extra/gobject-introspection 1.38.0-1 [installed] Introspection system for GObject-based libraries This is how gobject-introspections is built: prepare() { cd "$srcdir/$pkgname-$pkgver" for i in "${_port_patches[@]}"; do msg "patch $i" patch -p0 -i "$srcdir/$i" done sed -i '' -e 's|'gcc'|'cc'|g' giscanner/dumper.py } build() { cd "$srcdir/$pkgname-$pkgver" PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-static --enable-doctool gmake } package() { cd "$pkgname-$pkgver" gmake DESTDIR="$pkgdir" install gsed -i '1s|#!/usr/bin/env python$|&2|' \ "$pkgdir"/usr/lib/gobject-introspection/giscanner/*.py } And this is the content of the gobject-introspection package: http://sprunge.us/DLFd I will dig some more when I will have time maybe I am doing smth wrong. I will checkout the latest git for libvirt-glib to test that also . Hi, The same happens when I use the git version of libvirt-glib and just apply the patches it failes at the same line. But if I do : cd libvirt-gobject and run : /usr/bin/g-ir-compiler --includedir=. --includedir=../libvirt-gconfig/ --includedir=../libvirt-glib LibvirtGObject-1.0.gir - o LibvirtGObject-1.0.typelib I have added /usr/bin/g-ir-compiler --includedir=. --includedir=../libvirt-gconfig/ --includedir=../libvirt-glib LibvirtGObject-1.0.gir - o LibvirtGObject-1.0.typelib this gives no error and I can resume the gmake. I cannot find where in Makefile.am to add those includedirs options but maybe you know. Ah, I could not reproduce because I had the libvirt-glib gir files already installed on my system, after removing them I hit the same error as yours, and this patch fixes it: diff --git a/libvirt-gobject/Makefile.am b/libvirt-gobject/Makefile.am index 4659642..c0258c0 100644 --- a/libvirt-gobject/Makefile.am +++ b/libvirt-gobject/Makefile.am @@ -158,6 +158,9 @@ LibvirtGObject_1_0_gir_SCANNERFLAGS = \ --include-uninstalled $(top_builddir)/libvirt-gconfig/LibvirtGConfig-1.0.gir \ $(NULL) INTROSPECTION_GIRS += LibvirtGObject-1.0.gir +INTROSPECTION_COMPILER_ARGS = \ + --includedir=$(top_builddir)/libvirt-glib \ + --includedir=$(top_builddir)/libvirt-gconfig girdir = $(datadir)/gir-1.0 gir_DATA = LibvirtGObject-1.0.gir Thank you , it compiles as expected, now I will go on and post some issues with virt-manager. Fixed in git: http://libvirt.org/git/?p=libvirt-glib.git;a=commit;h=36913abd20b2ad6fc77f49633d0c30ce93906a79 Thanks for the thorough testing/investigation! |