GNOME Bugzilla – Bug 773549
evolution-data-server build broken in jhbuild
Last modified: 2016-11-02 15:28:29 UTC
I've removed my build directory and cloned the git repo from scratch to be sure that this is not an incremental build issue: [ 63%] Generating builtin/weather-stub.source tmp-introspectq_3joaz8/home/mcatanzaro/src/jhbuild/checkout/evolution-data-server/src/addressbook/libebook-contacts/tmp-introspectq_3joaz8/EBookContacts-1.2.o:(.data.rel+0x68): undefined reference to `e_name_western_get_type' tmp-introspectq_3joaz8/home/mcatanzaro/src/jhbuild/checkout/evolution-data-server/src/addressbook/libebook-contacts/tmp-introspectq_3joaz8/EBookContacts-1.2.o:(.data.rel+0x70): undefined reference to `e_address_western_get_type' collect2: error: ld returned 1 exit status There are more errors after that, but I think the root cause is the error above: Traceback (most recent call last):
+ Trace 236775
self.spawn(linker + ld_args)
spawn(cmd, dry_run=self.dry_run)
_spawn_posix(cmd, search_path, dry_run=dry_run)
% (cmd, exit_status))
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/mcatanzaro/src/jhbuild/install/lib/gobject-introspection/giscanner/dumper.py", line 277, in _link args) File "/home/mcatanzaro/src/jhbuild/install/lib/gobject-introspection/giscanner/ccompiler.py", line 257, in link extra_postargs=extra_postargs) File "/usr/lib64/python3.5/distutils/unixccompiler.py", line 206, in link raise LinkError(msg) distutils.errors.LinkError: command '/usr/lib64/ccache/cc' failed with exit status 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/mcatanzaro/src/jhbuild/install/bin/g-ir-scanner", line 66, in <module> sys.exit(scanner_main(sys.argv)) File "/home/mcatanzaro/src/jhbuild/install/lib/gobject-introspection/giscanner/scannermain.py", line 544, in scanner_main shlibs = create_binary(transformer, options, args) File "/home/mcatanzaro/src/jhbuild/install/lib/gobject-introspection/giscanner/scannermain.py", line 419, in create_binary gdump_parser.get_error_quark_functions()) File "/home/mcatanzaro/src/jhbuild/install/lib/gobject-introspection/giscanner/dumper.py", line 328, in compile_introspection_binary return dc.run() File "/home/mcatanzaro/src/jhbuild/install/lib/gobject-introspection/giscanner/dumper.py", line 174, in run self._link(bin_path, introspection_obj) File "/home/mcatanzaro/src/jhbuild/install/lib/gobject-introspection/giscanner/dumper.py", line 296, in _link raise LinkError(e) distutils.errors.LinkError: command '/usr/lib64/ccache/cc' failed with exit status 1 src/addressbook/libebook-contacts/CMakeFiles/gir-girs-EBookContacts_1_2_gir.dir/build.make:82: recipe for target 'src/addressbook/libebook-contacts/EBookContacts-1.2.gir' failed make[2]: *** [src/addressbook/libebook-contacts/EBookContacts-1.2.gir] Error 1 CMakeFiles/Makefile2:2332: recipe for target 'src/addressbook/libebook-contacts/CMakeFiles/gir-girs-EBookContacts_1_2_gir.dir/all' failed make[1]: *** [src/addressbook/libebook-contacts/CMakeFiles/gir-girs-EBookContacts_1_2_gir.dir/all] Error 2 I also see a bunch of warnings that "linker input file unused because linking not done" but I presume that is unrelated.
(In reply to Michael Catanzaro from comment #0) > tmp-introspectq_3joaz8/home/mcatanzaro/src/jhbuild/checkout/evolution-data- > server/src/addressbook/libebook-contacts/tmp-introspectq_3joaz8/ > EBookContacts-1.2.o:(.data.rel+0x68): undefined reference to > `e_name_western_get_type' > tmp-introspectq_3joaz8/home/mcatanzaro/src/jhbuild/checkout/evolution-data- > server/src/addressbook/libebook-contacts/tmp-introspectq_3joaz8/ > EBookContacts-1.2.o:(.data.rel+0x70): undefined reference to > `e_address_western_get_type' Thanks for a bug report. The above is addressed by a commit for bug #773360. Are you sure you have it?
(In reply to Milan Crha from comment #1) > Thanks for a bug report. The above is addressed by a commit for bug #773360. > Are you sure you have it? Yes, I do have that commit.
Weird. I cannot reproduce it. I went back by 10 commits, which was before those new symbols being added in libebook-contacts. Then I pulled changes back to the current state and run the build (thus I had old libebook-contacts.lib in my install dir, but it didn't trigger the issue. I do not know, could you share the Configuration settings you use with jhbuild, please? With respect of those: > gcc: warning: /usr/include/glib-2.0: linker input file unused because linking not done I see them too, I'll investigate it further later. It is pretty recent thing.
Created attachment 338743 [details] michael's jhbuildrc A bit messy. Hopefully none of my customizations would affect anything. But we did go a year where using -ggdb3 broke gobject-introspection, so anything is possible....
Also keep in mind that I am testing with a completely clean build, it's not an incremental build issue.
Is the Resolved/Incomplete resolution a typo? You closed this bug report together with comment #5.
Even, this sounds to be addressed by bug #773656, bug #773657 and bug #773659.
Oops, I didn't mean to close this!
Okay. All the bugs mentioned in comment #7 have their fixes in the git master of the evolution-data-server. Could you pull the latest master and re-try, please?
It works, thanks!