After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657688 - Chokes on gir files
Chokes on gir files
Status: RESOLVED INCOMPLETE
Product: vala
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on: 657586
Blocks:
 
 
Reported: 2011-08-30 10:08 UTC by Bastien Nocera
Modified: 2011-11-28 07:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2011-08-30 10:08:46 UTC
Using the latest jhbuild release and git master, trying to compile libpeas:

make[4]: Entering directory `/home/hadess/Projects/jhbuild/libpeas/peas-demo/plugins/valahello'
  VALAC  libvalahello_la_vala.stamp
GModule-2.0.gir:46.7-46.66: error: unknown child element `function' in `record'
      <function name="build_path" c:identifier="g_module_build_path">
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
GModule-2.0.gir:59.7-59.46: error: unknown child element `function' in `record'
      <function name="error" c:identifier="g_module_error">
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
GModule-2.0.gir:77.7-77.62: error: unknown child element `function' in `record'
      <function name="supported" c:identifier="g_module_supported">
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Peas-1.0.gir:1542.7-1542.86: error: unknown child element `function' in `class'
      <function name="error_quark" c:identifier="peas_plugin_info_error_quark">
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 4 error(s), 0 warning(s)
Comment 1 Luca Bruno 2011-08-30 10:39:33 UTC
That should be fixed in vala 0.13.2. Probably vala in your jhbuild environment isn't up-to-date?
Comment 2 Jürg Billeter 2011-08-30 12:03:30 UTC
libpeas master actually fails to build at an earlier point with gobject-introspection 1.29.17 (not related to Vala)

This needs to be fixed before we can look into a possible Vala issue.

/usr/bin/g-ir-scanner  -I.. --c-include=libpeas/peas.h --warn-all --namespace=Peas --nsversion=1.0 --libtool="/bin/sh ../libtool"  --include=GObject-2.0 --include=GModule-2.0 --include=GIRepository-2.0 --pkg-export=libpeas-1.0  --library=libpeas-1.0.la  -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gobject-introspection-1.0 -I/usr/lib/libffi-3.0.6/include    peas-plugin-info.h peas-object-module.h peas-extension-base.h peas-extension.h peas-extension-set.h peas-activatable.h peas-engine.h peas.h peas-activatable.c peas-debug.c peas-dirs.c peas-engine.c peas-extension.c peas-extension-base.c peas-extension-set.c peas-extension-wrapper.c peas-extension-subclasses.c peas-helpers.c peas-i18n.c peas-introspection.c peas-object-module.c peas-plugin-info.c peas-plugin-loader.c libpeas-1.0.la --output Peas-1.0.gir
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gobject-introspection-1.0 -I/usr/lib/libffi-3.0.6/include -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.0.6/include -c -o /home/juerg/Code/libpeas/libpeas/tmp-introspectPXpsfO/Peas-1.0.o /home/juerg/Code/libpeas/libpeas/tmp-introspectPXpsfO/Peas-1.0.c
g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC gcc -o /home/juerg/Code/libpeas/libpeas/tmp-introspectPXpsfO/Peas-1.0 -export-dynamic -L. libpeas-1.0.la -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 /home/juerg/Code/libpeas/libpeas/tmp-introspectPXpsfO/Peas-1.0.o
libtool: link: gcc -o /home/juerg/Code/libpeas/libpeas/tmp-introspectPXpsfO/.libs/Peas-1.0 -pthread /home/juerg/Code/libpeas/libpeas/tmp-introspectPXpsfO/Peas-1.0.o -Wl,--export-dynamic  -L. ./.libs/libpeas-1.0.so -lgirepository-1.0 -lffi -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread
<unknown>:: Fatal: Peas: Skipping foreign identifier 'GObject' from namespace GModule

make[3]: *** [Peas-1.0.gir] Error 1
Comment 3 Bastien Nocera 2011-08-30 12:58:06 UTC
(In reply to comment #1)
> That should be fixed in vala 0.13.2. Probably vala in your jhbuild environment
> isn't up-to-date?

$ valac --version
Vala 0.13.3.24-7e20e7
Comment 4 Jürg Billeter 2011-08-30 15:42:10 UTC
After applying the patch from bug 657586 to libpeas, it builds fine here. I tested with vala 0.13.3 and with vala 0.13.3.25-7ec03b.

I suspect that something is wrong with your installation/environment. Maybe valac from jhbuild is picking up libvala from /usr or something along those lines? Can you check whether libvala from jhbuild is used? ldd `which valac`
Comment 5 Akhil Laddha 2011-10-14 05:45:15 UTC
Bastien, ping, any update for the bug ?
Comment 6 Akhil Laddha 2011-11-28 07:04:37 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!