Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ruby-glib2 build error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
amasidlover
Apprentice
Apprentice


Joined: 16 Jun 2002
Posts: 289
Location: Manchester, UK

PostPosted: Sun Jun 28, 2020 5:22 am    Post subject: ruby-glib2 build error Reply with quote

ruby-glib2-3.3.2 is failing to build. I masked it last week to get world updated, but this week I can't get world updated due to ruby-atk/ruby-gtk2 requiring the latest version.

Code:

glib-enum-types.c: In function ‘g_spawn_error_get_type’:
glib-enum-types.c:632:7: warning: ‘G_SPAWN_ERROR_2BIG’ is deprecated: Use 'G_SPAWN_ERROR_TOO_BIG' instead [-Wdeprecated-declarations]
  632 |       { G_SPAWN_ERROR_2BIG, "G_SPAWN_ERROR_2BIG", "2big" },
      |       ^
In file included from /usr/include/glib-2.0/glib.h:81,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from glib-enum-types.h:7,
                 from glib-enum-types.c:4:
/usr/include/glib-2.0/glib/gspawn.h:76:3: note: declared here
   76 |   G_SPAWN_ERROR_2BIG GLIB_DEPRECATED_ENUMERATOR_IN_2_32_FOR(G_SPAWN_ERROR_TOO_BIG) = G_SPAWN_ERROR_TOO_BIG,
      |   ^~~~~~~~~~~~~~~~~~
glib-enum-types.c: In function ‘g_test_subprocess_flags_get_type’:
glib-enum-types.c:729:12: warning: initialization of ‘unsigned int’ from ‘const char *’ makes integer from pointer without a cast [-Wint-conversion]
  729 |       { }, "}", "}" },
      |            ^~~
glib-enum-types.c:729:12: note: (near initialization for ‘values[4].value’)
glib-enum-types.c:729:12: error: initializer element is not computable at load time
glib-enum-types.c:729:12: note: (near initialization for ‘values[4].value’)
glib-enum-types.c:729:7: warning: missing initializer for field ‘value_nick’ of ‘GFlagsValue’ {aka ‘const struct _GFlagsValue’} [-Wmissing-field-initializers]
  729 |       { }, "}", "}" },
      |       ^
In file included from /usr/include/glib-2.0/glib-object.h:25,
                 from glib-enum-types.h:7,
                 from glib-enum-types.c:4:
/usr/include/glib-2.0/gobject/genums.h:213:16: note: ‘value_nick’ declared here
  213 |   const gchar *value_nick;
      |                ^~~~~~~~~~
glib-enum-types.c:725:41: warning: missing braces around initializer [-Wmissing-braces]
  725 |     static const GFlagsValue values[] = {
      |                                         ^
......
  729 |       { }, "}", "}" },
      |            {        }
glib-enum-types.c:730:7: error: expected identifier or ‘(’ before ‘{’ token
  730 |       { G_GNUC_BEGIN_IGNORE_DEPRECATIONS, "G_GNUC_BEGIN_IGNORE_DEPRECATIONS", "g-gnuc-begin-ignore-deprecations" },
      |       ^
glib-enum-types.c:730:115: error: expected expression before ‘,’ token
  730 |       { G_GNUC_BEGIN_IGNORE_DEPRECATIONS, "G_GNUC_BEGIN_IGNORE_DEPRECATIONS", "g-gnuc-begin-ignore-deprecations" },
      |                                                                                                                   ^
glib-enum-types.c:730:115: warning: left-hand operand of comma expression has no effect [-Wunused-value]
glib-enum-types.c:730:115: warning: statement with no effect [-Wunused-value]
glib-enum-types.c:725:30: warning: unused variable ‘values’ [-Wunused-variable]
  725 |     static const GFlagsValue values[] = {
      |                              ^~~~~~
glib-enum-types.c:741:62: error: ‘values’ undeclared (first use in this function)
  741 |     etype = g_flags_register_static ("GTestSubprocessFlags", values);
      |                                                              ^~~~~~
glib-enum-types.c:741:62: note: each undeclared identifier is reported only once for each function it appears in
glib-enum-types.c: At top level:
glib-enum-types.c:743:3: error: expected identifier or ‘(’ before ‘return’
  743 |   return etype;
      |   ^~~~~~
glib-enum-types.c:744:1: error: expected identifier or ‘(’ before ‘}’ token
  744 | }
      | ^
glib-enum-types.c: In function ‘g_test_subprocess_flags_get_type’:
glib-enum-types.c:742:3: warning: control reaches end of non-void function [-Wreturn-type]
  742 |   }
      |   ^
At top level:
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-2.5.0/x86_64-linux -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I/var/tmp/portage/dev-ruby/ruby-glib2-3.3.7/work/ruby25/ruby-gnome2-all-3.3.7/glib2/ext/glib2 -I/usr/lib64/ruby/site_ruby/2.5.0/x86_64-linux  -I/usr/lib64/ruby/vendor_ruby/2.5.0/x86_64-linux  -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DHAVE_UNISTD_H -DHAVE_G_SPAWN_CLOSE_PID -DHAVE_G_THREAD_INIT -DHAVE_G_MAIN_DEPTH -DHAVE_G_LISTENV -DHAVE_RB_CHECK_ARRAY_TYPE -DHAVE_RB_CHECK_HASH_TYPE -DHAVE_RB_EXEC_RECURSIVE -DHAVE_RB_ERRINFO -DHAVE_RB_THREAD_CALL_WITHOUT_GVL -DHAVE_RUBY_NATIVE_THREAD_P -DHAVE_RB_THREAD_CALL_WITH_GVL -DHAVE_RB_GC_REGISTER_MARK_OBJECT -DHAVE_RB_EXC_NEW_STR -DHAVE_RB_ENC_STR_NEW_STATIC -DRUBY_GLIB2_COMPILATION    -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -O2 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum -Wundef -Wunsafe-loop-optimizations -Wwrite-strings  -pthread  -o rbglib_iochannelerror.o -c rbglib_iochannelerror.c
glib-enum-types.c:725:30: warning: ‘values’ defined but not used [-Wunused-const-variable=]
  725 |     static const GFlagsValue values[] = {
      |                              ^~~~~~
make[1]: *** [Makefile:242: glib-enum-types.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/dev-ruby/ruby-glib2-3.3.7/work/ruby25/ruby-gnome2-all-3.3.7/glib2/ext/glib2'
make: *** [Makefile:2: all] Error 2
 * ERROR: dev-ruby/ruby-glib2-3.3.7::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-ruby/ruby-glib2-3.3.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/ruby-glib2-3.3.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/ruby-glib2-3.3.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/ruby-glib2-3.3.7/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/ruby-glib2-3.3.7/work/ruby25/ruby-gnome2-all-3.3.7/glib2'
 * S: '/var/tmp/portage/dev-ruby/ruby-glib2-3.3.7/work/ruby25/ruby-gnome2-all-3.3.7/glib2'

>>> Failed to emerge dev-ruby/ruby-glib2-3.3.7, Log file:


emerge --info gives
Code:

lamech ~ # emerge --info dev-ruby/ruby-glib2
!!! Repository 'fordfrog' has sync-uri attribute, but is missing sync-type attribute
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-9.3.0, glibc-2.30-r8, 4.9.95-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.95-gentoo-x86_64-Intel-R-_Core-TM-_i5-4460_CPU_@_3.20GHz-with-gentoo-2.6
KiB Mem:    16085284 total,   6829872 free
KiB Swap:   16777212 total,  13934316 free
Timestamp of repository gentoo: Sun, 28 Jun 2020 04:30:01 +0000
Head commit of repository gentoo: 1e962278b065270294f8bbd343eff6e016895a2b
sh bash 5.0_p17
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r3::gentoo, 1.10.3-r1::gentoo, 1.11.6-r3::gentoo, 1.12.6::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1-r1::gentoo, 2.30-r2::gentoo, 2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo, 9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --exclude=binhost_*

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

argent-main
    location: /var/lib/layman/argent-main
    priority: 50

fordfrog
    location: /var/lib/layman/fordfrog
    sync-uri: https://anongit.gentoo.org/git/dev/fordfrog.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /var/lib/hsqldb /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/ ftp://80.68.83.150/gentoo/ https://104.19.136.75/gentoo/ https://104.19.138.75/gentoo/ rsync://80.68.83.150/gentoo/"
LANG="en_GB.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=binhost_*"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aim alsa amd64 amr apache2 automount bash-completion beagle berkdb bluetooth bonobo branding bzip2 cairo calendar caps cdda cdr cjk cli colord crypt cups curl dbus device-mapper dri dts dvb dvd dvdr eds emboss emerald encode evo exif extras f77 fam fbcon fftw flac fortran fts3 gdbm gdu gif gimp glitz gnome gnome-keyring gnome-online-accounts gnutls gpm gsm gstreamer gtk gtk2 gtkhtml iconv icu imap introspection ipv6 irmc java jpeg kdrive lcms ldap libnotify libsecret libtirpc live mad mime mmx mng mozcalendar mozdevelop mozilla mozsvg mp3 mp4 mpeg multilib mysql nautilus ncurses networkmanager nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt5 readline rtsp samba sasl sdl seccomp sipim spell split-usr sqlite ssl startup-notification stream svg systemd tcpd tetex theora tiff truetype type1 udev udisks unicode upower usb v4l vorbis win32codecs wxwidgets wxwindows x264 xattr xcb xinerama xml xml2 xmlrpc xosd xv xvid xvmc zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="intel evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="i915" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


help, please?
_________________
http://www.axiomtech.co.uk
http://www.zednax.com
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1169
Location: Italy

PostPosted: Sun Jun 28, 2020 5:31 am    Post subject: Reply with quote

https://bugs.gentoo.org/710802
Back to top
View user's profile Send private message
amasidlover
Apprentice
Apprentice


Joined: 16 Jun 2002
Posts: 289
Location: Manchester, UK

PostPosted: Sun Jun 28, 2020 5:33 am    Post subject: Reply with quote

Thanks! That's really odd that none of my Google searches picked that bug up.
_________________
http://www.axiomtech.co.uk
http://www.zednax.com
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1169
Location: Italy

PostPosted: Sun Jun 28, 2020 6:43 am    Post subject: Reply with quote

I recommend to use the Advanced Search feature on Gentoo Bugzilla instead of external search engines like Google. I just filled the Summary field with "dev-ruby/ruby-glib2" and the Comment field with "initializer element is not computable at load time". Bug #710802 is the only result.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum