cmake fails building 'plugins/word-completion/word-completion_valac.stamp'

Asked by Duncan Glover Britton

I am trying to create an ebuild for the latest version of scratch released, 2.2.0, and am running into trouble during the cmake. I get about 70% of the way done building the package and receive the following:

cd /tmp/portage/app-editors/scratch-2.2.0/work/scratch-2.2.0_build/plugins/source-tree && /usr/bin/valac-0.26 -C -b
 /tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/source-tree -d /tmp/portage/app-editors
/scratch-2.2.0/work/scratch-2.2.0_build/plugins/source-tree --pkg=gtk+-3.0 --pkg=gee-0.8 --pkg=granite --pkg=scratchco
re --pkg=libpeas-1.0 --pkg=gtksourceview-3.0 --vapidir=/tmp/portage/app-editors/scratch-2.2.0/work/scratch-2.2.0_build
 --vapidir=/tmp/portage/app-editors/scratch-2.2.0/work/scratch-2.2.0_build/src/ --vapidir=/tmp/portage/app-editors/scr
atch-2.2.0/work/scratch-2.2.0_build/scratchcore/ -g /tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.
2.0/plugins/source-tree/SourceTreePlugin.vala
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/engine.vala:38.27-38.31:
 warning: GLib.Mutex has been deprecated since glib-2.32. Use Mutex (with --target-glib=2.32)
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/completion-provider.vala
:63.57-63.59: warning: Gtk has been deprecated since 3.13.90. Use bindings distributed with gtksourceview-3.0
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/completion-provider.vala
:179.36-179.38: warning: Gtk has been deprecated since 3.13.90. Use bindings distributed with gtksourceview-3.0
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/completion-provider.vala
:76.35-76.37: warning: Gtk has been deprecated since 3.13.90. Use bindings distributed with gtksourceview-3.0
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/completion-provider.vala
:78.46-78.48: warning: Gtk has been deprecated since 3.13.90. Use bindings distributed with gtksourceview-3.0
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/completion-provider.vala
:78.46-78.54: warning: Gtk.Stock has been deprecated since 3.10
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/completion-provider.vala
:108.16-108.18: warning: Gtk has been deprecated since 3.13.90. Use bindings distributed with gtksourceview-3.0
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/completion-provider.vala
:109.16-109.18: warning: Gtk has been deprecated since 3.13.90. Use bindings distributed with gtksourceview-3.0
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/completion-provider.vala
:122.5-122.30: error: overriding method `Scratch.Plugins.CompletionProvider.get_start_iter' is incompatible with base
method `Gtk.SourceCompletionProvider.get_start_iter': incompatible direction of parameter 3.
    public bool get_start_iter (Gtk.SourceCompletionContext context,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
/tmp/portage/app-editors/scratch-2.2.0/work/scratch-text-editor-2.2.0/plugins/word-completion/plugin.vala:110.13-110.3
7: warning: GLib.Thread.create has been deprecated since 2.32. Use new Thread<T> ()
Compilation failed: 1 error(s), 11 warning(s)
plugins/word-completion/CMakeFiles/word-completion.dir/build.make:63: recipe for target 'plugins/word-completion/word-
completion_valac.stamp' failed
make[2]: *** [plugins/word-completion/word-completion_valac.stamp] Error 1
make[2]: Leaving directory '/tmp/portage/app-editors/scratch-2.2.0/work/scratch-2.2.0_build'
CMakeFiles/Makefile2:453: recipe for target 'plugins/word-completion/CMakeFiles/word-completion.dir/all' failed
make[1]: *** [plugins/word-completion/CMakeFiles/word-completion.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

How can I resolve this problem so that my ebuild works correctly?

Question information

Language:
English Edit question
Status:
Expired
For:
Scratch Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Duncan Glover Britton (duncan-glover-britton) said :
#1

Here are my OS details:

Portage 2.3.6-r9 (funtoo/1.0/linux-gnu/arch/pure64, gcc-4.9.2, glibc-2.20-r1, 4.1.0-duncan x86_64)
=================================================================
System uname: Linux-4.1.0-duncan-x86_64-AMD_FX-tm-8150_Eight-Core_Processor-with-gentoo-2.2.0
KiB Mem: 32845060 total, 30341640 free
KiB Swap: 0 total, 0 free
Timestamp of tree: Unknown
ld GNU ld (Funtoo 2.25) 2.25.0
app-shells/bash: 4.3_p39
dev-lang/perl: 5.20.2-r1
dev-lang/python: 2.7.10-r1000, 3.3.6-r1000
dev-util/cmake: 3.2.3
sys-apps/baselayout: 2.2.0-r6
sys-apps/openrc: 0.12.4-r4
sys-apps/sandbox: 2.6-r2
sys-devel/autoconf: 2.69-r1
sys-devel/automake: 1.11.6-r1, 1.13.4, 1.14.1, 1.15
sys-devel/binutils: 2.25-r1
sys-devel/gcc: 4.9.2-r1
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.3-r2
sys-devel/make: 4.1-r1
sys-kernel/linux-headers: 4.0 (virtual/os-headers)
sys-libs/glibc: 2.20-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=bdver1 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask --with-bdeps=y"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-march=bdver1 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd/ /lib/systemd/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2 --load-average"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X a52 aac acl alsa amd64 apng berkdb bluray bzip2 cdda cddb cdio cdr consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread encode exif faac faad ffmpeg flac gdbm gif gpm gtk ico iconv icu ieee1394 ios ipod ipv6 jpeg jpeg2k lame libass libguess libmpeg2 libnotify lock mad matroska mjpeg mmx modules mp3 mpeg mtp mudflap ncurses nls nptl nsplugin ogg opengl openmp pam pcre pdf png policykit postproc pppd python quicktime readline resolvconf session sndfile sse sse2 ssl startup-notification svg taglib tcpd theora thunar tiff truetype twolame udev unicode v4l vorbis vpx wav wavpack webp win32codecs wmf x264 x265 xattr xml xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Leonid Kostrykin (void-evoid) said :
#3

For me this was solved by:

sudo apt-get install libgtksourceview-3.0-dev