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 773549 - evolution-data-server build broken in jhbuild
evolution-data-server build broken in jhbuild
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
3.23.x (obsolete)
Other Linux
: High critical
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2016-10-26 18:00 UTC by Michael Catanzaro
Modified: 2016-11-02 15:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
michael's jhbuildrc (1.31 KB, text/plain)
2016-10-28 18:42 UTC, Michael Catanzaro
Details

Description Michael Catanzaro 2016-10-26 18:00:45 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):
  • File "/usr/lib64/python3.5/distutils/unixccompiler.py", line 204 in link
    self.spawn(linker + ld_args)
  • File "/usr/lib64/python3.5/distutils/ccompiler.py", line 909 in spawn
    spawn(cmd, dry_run=self.dry_run)
  • File "/usr/lib64/python3.5/distutils/spawn.py", line 36 in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  • File "/usr/lib64/python3.5/distutils/spawn.py", line 159 in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: 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/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.
Comment 1 Milan Crha 2016-10-27 17:12:25 UTC
(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?
Comment 2 Michael Catanzaro 2016-10-27 18:13:28 UTC
(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.
Comment 3 Milan Crha 2016-10-28 17:43:24 UTC
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.
Comment 4 Michael Catanzaro 2016-10-28 18:42:43 UTC
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....
Comment 5 Michael Catanzaro 2016-10-28 18:43:17 UTC
Also keep in mind that I am testing with a completely clean build, it's not an incremental build issue.
Comment 6 Milan Crha 2016-10-31 13:41:37 UTC
Is the Resolved/Incomplete resolution a typo? You closed this bug report together with comment #5.
Comment 7 Milan Crha 2016-10-31 13:47:08 UTC
Even, this sounds to be addressed by bug #773656, bug #773657 and bug #773659.
Comment 8 Michael Catanzaro 2016-10-31 17:05:42 UTC
Oops, I didn't mean to close this!
Comment 9 Milan Crha 2016-11-02 12:32:34 UTC
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?
Comment 10 Michael Catanzaro 2016-11-02 15:28:29 UTC
It works, thanks!