Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599586 - dev-libs/glib-2.50.2: ld: error: cannot find -lmount
Summary: dev-libs/glib-2.50.2: ld: error: cannot find -lmount
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords:
: 599970 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-11-12 12:59 UTC by Perfect Gentleman
Modified: 2017-02-20 23:26 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,6.61 KB, text/plain)
2016-12-02 22:27 UTC, Toralf Förster
Details
config.log (config.log,356.30 KB, text/plain)
2016-12-02 22:27 UTC, Toralf Förster
Details
dev-libs:glib-2.50.2:20161202-215749.log (dev-libs:glib-2.50.2:20161202-215749.log,486.15 KB, text/plain)
2016-12-02 22:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,30.47 KB, text/plain)
2016-12-02 22:27 UTC, Toralf Förster
Details
environment (environment,227.94 KB, text/plain)
2016-12-02 22:27 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Perfect Gentleman 2016-11-12 12:59:43 UTC
build.log - https://paste.pound-python.org/show/5gJP9MKdz2IlFmP2sOCd/
---------------------------------------------------------------------
~ $ emerge --info
Portage 2.3.2 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.2.0, glibc-2.23-r3, 4.8.7-gentoo x86_64)
=================================================================
System uname: Linux-4.8.7-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.3
KiB Mem:     8167320 total,   4039408 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 12 Nov 2016 12:02:51 +0000
sh bash 4.4-r1
ld GNU gold (Gentoo 2.26.1 p1.0 2.26.1) 1.11
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4-r1::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3-r1::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            6.2.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://github.com/gentoo-mirror/gentoo.git
    priority: 1
    eclass-overrides: pg_overlay
    sync-git-clone-extra-opts: --branch master

kde
    location: /usr/portage/proj/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 3
    eclass-overrides: pg_overlay

pg_overlay
    location: /usr/portage/overlay/pg_overlay
    sync-type: git
    sync-uri: git://github.com/perfect7gentleman/pg_overlay.git
    masters: gentoo
    priority: 5
    eclass-overrides: pg_overlay

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/tmp"
USE="X acl acpi amd64 bash-completion branding bzip2 cairo cdr cli consolekit cracklib cups custom-cflags cxx dbus declarative dri dts dvdr emboss encode exif fam ffmpeg firefox flac fontconfig gif glamor gmp iconv icu introspection jit jpeg kipi lcms libass libnotify lm_sensors lua lzma lzo mad matroska minimal mmx mmxext mng modules multilib ncurses nls nptl opengl openmp pam pango pcre pdf phonon png policykit ppds pulseaudio qml qt5 readline seccomp session smp spell sse sse2 ssl svg symlink tcmalloc tcpd threads tiff truetype udev udisks unicode upower usb v4l vdpau wavpack webp widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" 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="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="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US ru ru-RU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ru ru_RU" LLVM_TARGETS="NVPTX" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" RUBY_TARGETS="ruby23" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Christopher Brown 2016-11-12 19:43:22 UTC
I got this when trying to compile glib 32-bit without having util-linux 32-bit.  After compiling util-linux for 32-bit glib was able to compile.
Comment 2 Herb Miller Jr. 2016-11-13 15:14:10 UTC
I can confirm, I had to do the exact same thing. When dev-libs/glib-2.50.2 is compiled with abi_x86_32, it requires util-linux with abi_x86_32, but you have to do this manually as the ebuild does not pull it in.
Comment 3 Frédéric Barthelery 2016-11-15 03:16:56 UTC
Same for me here
Comment 4 Nils Freydank 2016-11-15 07:49:04 UTC
Here, too.

”emerge --info” from snip to snap ;)

----- snip -----
Portage 2.3.2 (python 3.4.5-final-0, hardened/linux/amd64/selinux, gcc-5.4.0, glibc-2.23-r3, 4.8.7 x86_64)
=================================================================
System uname: Linux-4.8.7-x86_64-Intel-R-_Core-TM-_i5-4300U_CPU_@_1.90GHz-with-gentoo-2.3
KiB Mem:     8099952 total,   2080708 free
KiB Swap:    8373568 total,   8373568 free
Timestamp of repository gentoo: Mon, 14 Nov 2016 17:30:01 +0000
sh bash 4.4-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.4-r1::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3-r1::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /var/portage/tree
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-vcs-ignore: true

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

brother-overlay
    location: /var/layman/brother-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

holgersson-overlay
    location: /var/layman/holgersson-overlay
    sync-type: laymansync
    sync-uri: https://git.holgersson.xyz/holgersson-overlay
    masters: gentoo
    priority: 50

kde
    location: /var/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

perl-experimental
    location: /var/layman/perl-experimental
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/perl-overlay.git
    masters: gentoo
    priority: 50

Installed sets: @custom_KDE, @games
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build --autounmask=n --binpkg-respect-use=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news nodoc parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/ https://tux.rainside.sk/gentoo/ https://www.mirrorservice.org/sites/distfiles.gentoo.org/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l5"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-6 -T2"
PORTAGE_CONFIGROOT="/"
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 alsa amd64 audit bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli colord cracklib crypt cryptsetup cups cxx dbus declarative djvu dri dts dvd dvdr encode exif fam firefox flac fontconfig gdbm gif git glamor gpg gpm gstreamer hardened hunspell iconv icu int64 ipv6 jemalloc jit jpeg justify kde kipi lcms ldap libnotify lzma mad minizip mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nftables nls nptl offensive ogg open_perms opencl opengl openmp opus pam pango pax_kernel pcre pdf phonon pie pkcs11 plasma png policykit postscript ppds pulseaudio qml qt3support qt5 quvi raw readline rtmp samba sasl sdl seccomp selinux semantic-desktop session smartcard smp sound spell sse sse2 ssh ssl ssp startup-notification svg tcpd telepathy theora threads tiff truetype udev udisks unicode upower urandom usb v4l vaapi video vim-syntax vorbis vpx wavpack widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xkb xml xscreensaver xtpax xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="hda-intel" 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="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 avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" L10N="de de_DE en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE en nb nb_NO nn nn_NO" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
----- snap -----
Comment 5 Horea Christian 2016-11-16 12:37:36 UTC
I think I am experiencing the same issue. Build log: http://bpaste.net/show/8fb4a08a77de

emerge --info:

Portage 2.3.2 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r3, 4.8.7-gentoo x86_64)
=================================================================
System uname: Linux-4.8.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790S_CPU_@_3.20GHz-with-gentoo-2.3
KiB Mem:    16333132 total,   9737132 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Tue, 15 Nov 2016 22:30:01 +0000
sh bash 4.4_p5
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.4_p5::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

science
    location: /usr/local/portage/science
    sync-type: git
    sync-uri: https://github.com/gentoo-science/sci.git
    masters: gentoo
    priority: 7777

neurogentoo
    location: /usr/local/portage/neurogentoo
    sync-type: git
    sync-uri: https://github.com/TheChymera/neurogentoo.git
    masters: gentoo
    priority: 8888

chymeric
    location: /usr/local/portage/chymeric
    sync-type: git
    sync-uri: https://github.com/TheChymera/overlay.git
    masters: gentoo
    priority: 9000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cli colord cracklib crypt cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif git glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline science sdl seccomp session spell sse sse2 ssl startup-notification svg systemd tcpd tiff tk tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" 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="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="mmx mmxext sse sse2" 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ar de el en fr ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 6 Kobboi 2016-11-18 23:19:05 UTC
Thanks for reporting. 

I think the problem lies in the configure.ac code:

- first correctly determining libmount is not available as there is no package with that name installed in /usr/lib32/pkgconfig/mount.pc

- then  incorrectly assuming libmount is available because a libmount.h was found. This obviously is incorrect in multilib setups, since that header file could have been provided by any util-linux compilation/installation, not necessarily the "right" one.

I will take a closer look on how to fix properly and submit patch.
Comment 7 Kobboi 2016-11-19 00:50:05 UTC
Suggested a fix in the below PR

https://github.com/gentoo/gentoo/pull/2862
Comment 8 Kobboi 2016-11-19 00:56:22 UTC
(In reply to Kobboi from comment #6)
> Thanks for reporting. 
> 
> I think the problem lies in the configure.ac code:
> 
> - first correctly determining libmount is not available as there is no
> package with that name installed in /usr/lib32/pkgconfig/mount.pc
> 
> - then  incorrectly assuming libmount is available because a libmount.h was
> found. This obviously is incorrect in multilib setups, since that header
> file could have been provided by any util-linux compilation/installation,
> not necessarily the "right" one.
> 
> I will take a closer look on how to fix properly and submit patch.

Note that this just explains why the compilation goes wrong where it did. By specifying the dependency correctly, we shouldn't ever end up in that code path. Might still be worth discussing with upstream.
Comment 9 Brandon Penglase 2016-11-21 00:27:08 UTC
FWIW, glib -abi_x86_32 fixed it for me too, but I also had to add the same useflag to pkgconfig and virtual/pkgconfig.
Comment 10 Pacho Ramos gentoo-dev 2016-11-25 19:22:19 UTC
*** Bug 599970 has been marked as a duplicate of this bug. ***
Comment 11 Toralf Förster gentoo-dev 2016-12-02 22:27:39 UTC
Created attachment 454932 [details]
emerge-info.txt

same at a tinderbox image
Comment 12 Toralf Förster gentoo-dev 2016-12-02 22:27:45 UTC
Created attachment 454934 [details]
config.log
Comment 13 Toralf Förster gentoo-dev 2016-12-02 22:27:48 UTC
Created attachment 454936 [details]
dev-libs:glib-2.50.2:20161202-215749.log
Comment 14 Toralf Förster gentoo-dev 2016-12-02 22:27:51 UTC
Created attachment 454938 [details]
emerge-history.txt
Comment 15 Toralf Förster gentoo-dev 2016-12-02 22:27:54 UTC
Created attachment 454940 [details]
environment
Comment 16 Toralf Förster gentoo-dev 2016-12-13 08:36:56 UTC
any chance to get it in the tree ?
nearly any glib breaks here at the tinderbox image for ABI_X86="32 64"
Comment 17 Kobboi 2016-12-13 08:40:28 UTC
Pacho, I have updated the PR wrt comments. Can you have another look? Thanks!
Comment 18 Mart Raudsepp gentoo-dev 2016-12-14 22:08:41 UTC
That's merged now; I wonder if we should keep this bug open for figuring out if there are any other libmount providers for non-linux, or make a new bug for that or just ignore this for now.
Does the code have other kind of code for other kernels?
Comment 19 Pacho Ramos gentoo-dev 2016-12-17 13:10:52 UTC
I would close this... I think that work is more for upstream side than for us...
Comment 20 Mart Raudsepp gentoo-dev 2016-12-17 14:12:29 UTC
I mean in terms of actually finding out what upstream does right now on other platforms based on code, and if the preferred code is without any libmount and such. Perhaps Kobboi remembers the logic there, I just haven't looked at all, that's all.
Comment 21 Mart Raudsepp gentoo-dev 2017-02-01 22:00:31 UTC
Removing blocker on 3.22, as that part is now fixed; this remains open for very low priority checking for non-linux (just some rechecking of upstream code and configure logic and so one).
Comment 22 Mart Raudsepp gentoo-dev 2017-02-20 23:26:49 UTC
After reviewing the upstream logic, I have come to the conclusion that the libmount usage found in gio also relies on /proc/self/mountinfo, and I don't believe this exists in anywhere else than linux, and this is the best we can do right now (the fallback uses /etc/mtab elsewhere with different behaviour than libmount with /proc/self/mountinfo).
So closing this bug as FIXED for the original fix of missing util-linux dependency