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 624301 - building libgee failed saying Unsupported version '1.0'
building libgee failed saying Unsupported version '1.0'
Status: VERIFIED FIXED
Product: gnome-shell
Classification: Core
Component: building
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 624363 624391 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-07-14 04:53 UTC by sathyz
Modified: 2010-07-16 04:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A patch for switching to vala git (1.18 KB, patch)
2010-07-14 04:59 UTC, Marina Zhurakhinskaya
none Details | Review
Update vala to 0.9.3 (1.40 KB, patch)
2010-07-15 14:22 UTC, Owen Taylor
committed Details | Review

Description sathyz 2010-07-14 04:53:24 UTC
trying to build gnome-shell using 

$ jhbuild build -f -a -c

but the build failed saying the following,

... 
treeset.c:2692: warning: assignment discards qualifiers from pointer target type
  CCLD   libgee.la
/home/satheesh/gnome-shell/install/bin/g-ir-compiler --shared-library=libgee -o Gee-1.0.typelib Gee-1.0.gir
Gee-1.0.gir:3:1: error: Unsupported version '1.0'
error parsing file Gee-1.0.gir: Unsupported version '1.0'
make[3]: *** [Gee-1.0.typelib] Error 1
make[3]: Leaving directory `/home/satheesh/gnome-shell/source/libgee/gee'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/satheesh/gnome-shell/source/libgee/gee'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/satheesh/gnome-shell/source/libgee'
make: *** [all] Error 2
*** Error during phase build of libgee: ########## Error running make   *** [15/18]
...
Comment 1 Marina Zhurakhinskaya 2010-07-14 04:59:42 UTC
Created attachment 165844 [details] [review]
A patch for switching to vala git
Comment 2 Marina Zhurakhinskaya 2010-07-14 05:04:06 UTC
This will probably be fixed tomorrow by the vala tarball being updated. For now, you can apply the attached patch; make sure that your ~/.jhbuildrc-custom has the line

moduleset = 'file:///home/<your username>/gnome-shell/source/gnome-shell/tools/build/gnome-shell.modules'

(with <your username> substituted by your userame),

rebuild vala, and then remove libgee completely, and rebuild it.
Comment 3 sathyz 2010-07-14 06:44:40 UTC
(In reply to comment #2)
Thats a quick response. Thanks.
> rebuild vala, and then remove libgee completely, and rebuild it.
How do I do these? is it,

$ cd vala-0.9.2
$ ./configure; make; make install

or Can I do this using jhbuild?
Comment 4 Florian Müllner 2010-07-14 06:49:48 UTC
(In reply to comment #3)
> How do I do these? is it,
> 
> $ cd vala-0.9.2
> $ ./configure; make; make install
> 
> or Can I do this using jhbuild?

jhbuild. Don't forget to modify your .jhbuildrc-custom as pointed out by Marina in comment 2.
Comment 5 sathyz 2010-07-14 07:34:16 UTC
I have updated khbuildrc-custom and ran jhbuild, got the following error.

Making all in vapigen
make[2]: Entering directory `/home/satheesh/gnome-shell/source/vala/vapigen'
  VALAC  valagidlparser.vala valavapigen.vala
/home/satheesh/gnome-shell/source/vala/compiler/.libs/lt-valac: symbol lookup error: /home/satheesh/gnome-shell/source/vala/compiler/.libs/lt-valac: undefined symbol: vala_code_context_set_run_output
make[2]: *** [vapigen.vala.stamp] Error 127
make[2]: Leaving directory `/home/satheesh/gnome-shell/source/vala/vapigen'
...
Comment 6 Marina Zhurakhinskaya 2010-07-14 19:21:46 UTC
*** Bug 624363 has been marked as a duplicate of this bug. ***
Comment 7 Maciej (Matthew) Piechotka 2010-07-14 20:58:21 UTC
(In reply to comment #3)
> (In reply to comment #2)
> Thats a quick response. Thanks.
> > rebuild vala, and then remove libgee completely, and rebuild it.
> How do I do these? is it,
> 
> $ cd vala-0.9.2
> $ ./configure; make; make install
> 
> or Can I do this using jhbuild?

Speaking as libgee developer (one that committed this change) version 0.9.2 it is insufficient. The required version currently is vala 0.9.3 (just released about 2h ago) or less the 2 days old vala from git.

Workaround is to disable introspection from libgee (--disable-introspection) - it does not seems to be required by anything.
Comment 8 Diska 2010-07-15 12:46:08 UTC
vala 0.9.3 on jhbuild modules someone can test it ? 

http://git.gnome.org/browse/jhbuild/commit/?id=4b455c20a00c46f7796fef02642ee1310665b13f
Comment 9 Diska 2010-07-15 14:09:24 UTC
you must modify http://git.gnome.org/browse/gnome-shell/tree/tools/build/gnome-shell.modules with 

 <tarball id="vala" version="0.9.3" autogenargs="--enable-vapigen">
 <source href="http://download.gnome.org/sources/vala/0.9/vala-0.9.3.tar.bz2"
 hash="sha256:6e343df80b8919486599f863d00f26b1be8ae1952422f91784d6542bed3afa98"
 md5sum="b2e905921d695d0bd85c5e114e2b3d84" size="2395639"/>
Comment 10 Florian Müllner 2010-07-15 14:20:50 UTC
(In reply to comment #9)
> you must modify
> http://git.gnome.org/browse/gnome-shell/tree/tools/build/gnome-shell.modules
> with 
> [...]

Please note that there is already a patch in bug 624391.
Comment 11 Owen Taylor 2010-07-15 14:22:59 UTC
Created attachment 165965 [details] [review]
Update vala to 0.9.3

Fixes incompatbility between the .gir files generated by Vala and the
current g-ir-compiler.
Comment 12 Owen Taylor 2010-07-15 14:27:06 UTC
*** Bug 624391 has been marked as a duplicate of this bug. ***
Comment 13 Owen Taylor 2010-07-15 17:19:10 UTC
Obvious, no comments, committing.

Attachment 165965 [details] pushed as f8a5728 - Update vala to 0.9.3
Comment 14 sathyz 2010-07-16 04:55:39 UTC
(In reply to comment #13)
> Attachment 165965 [details] pushed as f8a5728 - Update vala to 0.9.3
I'm able to build libgee with these changes.

steps I did,
$ rm -r gnome-shell/source/libgee
$ jhbuild
...
libgee build had completed without any problems.