Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerging wayland failed
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
fenrirjk
n00b
n00b


Joined: 22 Mar 2013
Posts: 22

PostPosted: Thu Apr 08, 2021 7:44 pm    Post subject: emerging wayland failed Reply with quote

Hello,

After syncing my portage,
Code:
emerge -auDNv @world
failed for package wayland.

Can someone please help ?

Here are the relevant logs.

Code:

$ emerge --info '=dev-libs/wayland-1.19.0::gentoo'
Portage 3.0.17 (python 3.7.10-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r7, 5.4.80-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.80-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-6200U_CPU_@_2.30GHz-with-gentoo-2.7
KiB Mem:     7573252 total,   4108012 free
KiB Swap:    8388604 total,   7082368 free
Timestamp of repository gentoo: Sun, 04 Apr 2021 14:30:01 +0000
Head commit of repository gentoo: 51586adfb4f11fd37498df9c16827e0c3d386563
Head commit of repository steam-overlay: 6cf36b792b1b8c1301dd7a9a9c468c78e95960a2

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.7.10::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo, 2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

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

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
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="--jobs 4"
ENV_UNSET="CARGO_HOME 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://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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 alsa alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amd64 bluetooth build cairo classic cups dbus deprecated dhclient dri dri3 elogind fbcon fbcondecor glamor gold gtk hostname introspection ipv6 libglvnd livecd loop-aes lvm1 midi mng modules ncurses nls nptl nptlonly nss opengl openssl pam png portaudio pulseaudio qt5 readline sna socks5 split-usr ssl svg threads truetype udev unicode usb wifi xattr xml xorg zlib" ABI_X86="64 32" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput synaptics evdev" KERNEL="linux" LLVM_TARGETS="AArch64 X86" LUA_SINGLE_TARGET="lua5-2" LUA_TARGETS="lua5-1 lua5-2" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7 python2_7" USERLAND="GNU" VIDEO_CARDS="intel i965"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Code:
$ emerge -pqv '=dev-libs/wayland-1.19.0::gentoo'
[ebuild     U ] dev-libs/wayland-1.19.0 [1.18.0] USE="-doc" ABI_X86="32 (64) (-x32)"

 * IMPORTANT: 26 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Code:
$ cat /var/tmp/portage/dev-libs/wayland-1.19.0/temp/build.log
[...]
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/wayland-1.19.0/work/wayland-1.19.0 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_compile
ninja -v -j4 -l0 -C /var/tmp/portage/dev-libs/wayland-1.19.0/work/wayland-1.19.0-abi_x86_32.x86
ninja: Entering directory `/var/tmp/portage/dev-libs/wayland-1.19.0/work/wayland-1.19.0-abi_x86_32.x86'
[1/85] /usr/bin/wayland-scanner -s server-header ../wayland-1.19.0/protocol/wayland.xml src/wayland-server-protocol.h
[2/85] /usr/bin/wayland-scanner -s server-header -c ../wayland-1.19.0/protocol/wayland.xml src/wayland-server-protocol-core.h
[3/85] /usr/bin/wayland-scanner -s client-header ../wayland-1.19.0/protocol/wayland.xml src/wayland-client-protocol.h
[4/85] /usr/bin/wayland-scanner -s client-header -c ../wayland-1.19.0/protocol/wayland.xml src/wayland-client-protocol-core.h
[5/85] /usr/bin/wayland-scanner -s public-code ../wayland-1.19.0/protocol/wayland.xml src/wayland-protocol.c
[6/85] x86_64-pc-linux-gnu-gcc -m32 -Isrc/libwayland-private.a.p -Isrc -I../wayland-1.19.0/src -I/usr/lib32/libffi/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -march=native -O2 -fPIC -MD -MQ src/libwayland-private.a.p/connection.c.o -MF src/libwayland-private.a.p/connection.c.o.d -o src/libwayland-private.a.p/connection.c.o -c ../wayland-1.19.0/src/connection.c
FAILED: src/libwayland-private.a.p/connection.c.o
x86_64-pc-linux-gnu-gcc -m32 -Isrc/libwayland-private.a.p -Isrc -I../wayland-1.19.0/src -I/usr/lib32/libffi/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -march=native -O2 -fPIC -MD -MQ src/libwayland-private.a.p/connection.c.o -MF src/libwayland-private.a.p/connection.c.o.d -o src/libwayland-private.a.p/connection.c.o -c ../wayland-1.19.0/src/connection.c
../wayland-1.19.0/src/connection.c:41:10: fatal error: ffi.h: No such file or directory
   41 | #include <ffi.h>
      |          ^~~~~~~
compilation terminated.
[7/85] x86_64-pc-linux-gnu-gcc -m32 -Isrc/libwayland-server.so.0.1.0.p -Isrc -I../wayland-1.19.0/src -I. -I../wayland-1.19.0 -I/usr/lib32/libffi/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -march=native -O2 -fPIC -pthread -MD -MQ src/libwayland-server.so.0.1.0.p/meson-generated_.._wayland-protocol.c.o -MF src/libwayland-server.so.0.1.0.p/meson-generated_.._wayland-protocol.c.o.d -o src/libwayland-server.so.0.1.0.p/meson-generated_.._wayland-protocol.c.o -c src/wayland-protocol.c
[8/85] x86_64-pc-linux-gnu-gcc -m32 -Isrc/libwayland-private.a.p -Isrc -I../wayland-1.19.0/src -I/usr/lib32/libffi/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -march=native -O2 -fPIC -MD -MQ src/libwayland-private.a.p/wayland-os.c.o -MF src/libwayland-private.a.p/wayland-os.c.o.d -o src/libwayland-private.a.p/wayland-os.c.o -c ../wayland-1.19.0/src/wayland-os.c
[9/85] x86_64-pc-linux-gnu-gcc -m32 -Isrc/libwayland-util.a.p -Isrc -I../wayland-1.19.0/src -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -march=native -O2 -fPIC -MD -MQ src/libwayland-util.a.p/wayland-util.c.o -MF src/libwayland-util.a.p/wayland-util.c.o.d -o src/libwayland-util.a.p/wayland-util.c.o -c ../wayland-1.19.0/src/wayland-util.c
ninja: build stopped: subcommand failed.
 * ERROR: dev-libs/wayland-1.19.0::gentoo failed (compile phase):
 *   ninja -v -j4 -l0 -C /var/tmp/portage/dev-libs/wayland-1.19.0/work/wayland-1.19.0-abi_x86_32.x86 failed
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 2596:  Called multilib-minimal_src_compile
 *   environment, line 1665:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 1935:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1600:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1598:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  495:  Called multilib-minimal_abi_src_compile
 *   environment, line 1659:  Called multilib_src_compile
 *   environment, line 2147:  Called meson_src_compile
 *   environment, line 1487:  Called eninja '-C' '/var/tmp/portage/dev-libs/wayland-1.19.0/work/wayland-1.19.0-abi_x86_32.x86'
 *   environment, line 1037:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/wayland-1.19.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/wayland-1.19.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/wayland-1.19.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/wayland-1.19.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/wayland-1.19.0/work/wayland-1.19.0-abi_x86_32.x86'
 * S: '/var/tmp/portage/dev-libs/wayland-1.19.0/work/wayland-1.19.0'


Thank you.
Back to top
View user's profile Send private message
fenrirjk
n00b
n00b


Joined: 22 Mar 2013
Posts: 22

PostPosted: Thu Apr 08, 2021 7:50 pm    Post subject: Reply with quote

Note: I am not sure what pulled the package Wayland
I am using X11.

Edit: Okay, I found out that for a reason I cannot remember I added the usd flag
Code:
wayland
for package
Code:
x11-libs/libva
...

Trying without.

I don't know if that explains the failure to pull the package wayland.
Back to top
View user's profile Send private message
kikko
Apprentice
Apprentice


Joined: 29 Apr 2014
Posts: 276
Location: Milan, IT

PostPosted: Fri Apr 09, 2021 8:32 pm    Post subject: Reply with quote

Hi fenrirjk
the compilation error is related to "ffi.h", which belongs to "dev-libs/libffi" package

Code:
# equery files dev-libs/libffi
 * Searching for libffi in dev-libs ...
 * Contents of dev-libs/libffi-3.3-r2:
/usr
/usr/lib64
/usr/lib64/libffi
/usr/lib64/libffi.so -> libffi.so.7.1.0
/usr/lib64/libffi.so.7 -> libffi.so.7.1.0
/usr/lib64/libffi.so.7.1.0
/usr/lib64/libffi/include
/usr/lib64/libffi/include/ffi.h
...


It's weird, since it's correctly listed as a wayland dependency

Code:
# equery depgraph wayland
 * Searching for wayland ...

 * dependency graph for dev-libs/wayland-1.19.0
 `--  dev-libs/wayland-1.19.0  amd64
   `--  dev-libs/expat-2.2.10  (>=dev-libs/expat-2.1.0-r3) amd64  [abi_x86_32(-)? abi_x86_64(-)? abi_x86_x32(-)? abi_mips_n32(-)? abi_mips_n64(-)? abi_mips_o32(-)? abi_s390_32(-)? abi_s390_64(-)?]
   `--  dev-libs/libxml2-2.9.10-r5  (dev-libs/libxml2) amd64
   `--  dev-libs/libffi-3.3-r2  (>=dev-libs/libffi-3.0.13-r1) amd64  [abi_x86_32(-)? abi_x86_64(-)? abi_x86_x32(-)? abi_mips_n32(-)? abi_mips_n64(-)? abi_mips_o32(-)? abi_s390_32(-)? abi_s390_64(-)?]
   `--  dev-util/wayland-scanner-1.19.0  (~dev-util/wayland-scanner-1.19.0) amd64  [abi_x86_32(-)? abi_x86_64(-)? abi_x86_x32(-)? abi_mips_n32(-)? abi_mips_n64(-)? abi_mips_o32(-)? abi_s390_32(-)? abi_s390_64(-)?]
   `--  virtual/pkgconfig-2  (virtual/pkgconfig) amd64
   `--  app-doc/doxygen-1.9.1  (>=app-doc/doxygen-1.6) amd64  [dot]
   `--  app-text/xmlto-0.0.28-r3  (app-text/xmlto) amd64
   `--  media-gfx/graphviz-2.44.1-r1  (>=media-gfx/graphviz-2.26.0) amd64
   `--  dev-util/meson-0.56.2  (>=dev-util/meson-0.54.0) amd64
   `--  dev-util/ninja-1.10.1  (>=dev-util/ninja-1.8.2) amd64
   `--  dev-util/meson-format-array-0  (dev-util/meson-format-array) amd64
[ dev-libs/wayland-1.19.0 stats: packages (12), max depth (1) ]


If you are still trying to emerge wayland, can you check if you have libffi installed (should be)?
_________________
Regards

root is the root of all evil
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4555
Location: Germany

PostPosted: Fri Apr 09, 2021 10:20 pm    Post subject: Reply with quote

Hi,
it failed in the 32bit part.
Please check if dev-libs/libffi is merged with USE=abi_x86_32 enabled.

You can check it in the output from:
Code:
emerge -pvO dev-libs/libffi dev-libs/wayland
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