Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935791 - net-im/discord-0.0.59 not starting
Summary: net-im/discord-0.0.59 not starting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Randall
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-09 16:41 UTC by Plüss Roland
Modified: 2024-08-01 19:21 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,5.22 KB, text/x-log)
2024-07-10 23:56 UTC, Plüss Roland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Plüss Roland 2024-07-09 16:41:40 UTC
Trying to start discord gives error:
bash: /usr/bin/discord: cannot execute: required file not found

Reproducible: Always

Steps to Reproduce:
1. Emerge discord
2. Run "discord" in console
Actual Results:  
bash: /usr/bin/discord: cannot execute: required file not found

Expected Results:  
Application runs

emerge --info discord
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.39-r6, 6.8.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.8.0-gentoo-x86_64-AMD_Ryzen_7_7700X_8-Core_Processor-with-glibc2.39
KiB Mem:    64970052 total,  48603288 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 09 Jul 2024 16:00:00 +0000
Head commit of repository gentoo: 8bf28662366089dcb96e7bca73ba9230c5454a98
Timestamp of repository guru: Tue, 09 Jul 2024 10:33:58 +0000
Head commit of repository guru: 2c01c23ee8f4011c290070c4d5117beee962eb82

Timestamp of repository steam-overlay: Mon, 08 Jul 2024 10:19:13 +0000
Head commit of repository steam-overlay: 728ad9018b8d4641cac00202521b625b2b7f561d

sh bash 5.2_p26-r5
ld GNU ld (Gentoo 2.42 p3) 2.42.0
ccache version 4.9.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r5::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.10.14_p1-r1::gentoo, 3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust:             1.77.1::gentoo
dev-util/ccache:           4.9.1-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /extension/usr_portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE PUEL dlj-1.1 AdobeFlash Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x RAR unRAR linux-fw-redistributable no-source-code free-noncomm MSttfEULA freedist MPEG-4 linux-firmware FESTIVAL sun-bcla-jms XMAME"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug 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"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en de"
MAKEOPTS="-j8"
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="/extension/tmp_portage"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 apng arts audiofile bluetooth branding browserplugin bzip2 cairo cdaudio cdda cdr cet clang crypt cups dbus declarative dri dssi dts dv dvd dvdr dvdread elogind encode exif expat ffmpeg filecaps firefox flac fontconfig frei0r gd gdbm geoip gif gimp gimpprint gles1 gles2 gpm gtk gui hal hddtemp iconv icu ipv6 jabber jack java javascript jingle jpeg jpeg2k kde kf6compat kwallet ladspa lame lcms libass libnotify libsamplerate libtirpc live lm_sensors lua mad melt midi mmx mng modplug mp3 mp4 mpeg mtp multilib mysql ncurses network networkmanager nls noamazon nsplugin ntfsprogs ogg openal opencl openexr opengl openmp opus pam pango pcre pdf perl php pipewire plasma plotutils png policykit ppds pulseaudio python qml qt3support qt5 quicktime readline ruby samba sane sbsms screencast sdl seccomp semantic-desktop sndfile soprano sound soundtouch sox spell sql sqlite sse sse2 ssl startup-notification subversion svg system-sqlite test-rust theora threads tiff timidity tk truetype udev udisks unicode upower usb vamp video visualization vnc vorbis vpx vulkan wayland webp widgets win32codecs wma wxwidgets wxwindows x264 xattr xcb xft xml xulrunner xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="aes avx fma3 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 greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev joystick keyboard mouse aiptek" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32 ruby21" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

net-im/discord-0.0.58-r2::gentoo was built with the following:
USE="seccomp -appindicator -wayland" ABI_X86="(64)" L10N="de -af -am -ar -bg -bn -ca -cs -da -el -en-GB -en-US -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW"
Comment 1 Chris Pritchard 2024-07-10 18:06:10 UTC
I'm closing this because discord 0.0.59 is now in the tree, and I can't reproduce this. If it still doesn't work on your system, please create a new bug for the updated version and also include a copy of build.log (as it will help us to see whether the executable is being correctly installed).
Comment 2 Plüss Roland 2024-07-10 21:08:37 UTC
Emerged 0.0.59 and the same error happens
Comment 3 Chris Pritchard 2024-07-10 21:14:22 UTC
Can you attach a copy of the build.log (you might need to do FEATURES="keeptemp" emerge -1av discord), and can you check if /usr/bin/discord actually exists on your system?
Comment 4 Plüss Roland 2024-07-10 23:56:15 UTC
Created attachment 897437 [details]
build.log

And for the second question, it does exist:

dir -l /usr/bin/discord
-rwxr-xr-x 1 root root 451 Jul 11 01:53 /usr/bin/discord
Comment 5 Eli Schwartz gentoo-dev 2024-07-11 00:06:48 UTC
Well, the error message you got indicates that bash attempted to:

```
execve (command, args, env);
```

and received ENOENT, and printed the diagnostic:

```
internal_error (_("%s: cannot execute: required file not found"), command);
```

It does kind of feel like something has to be wonky with your installation to be getting this error.
Comment 6 Plüss Roland 2024-07-11 08:15:56 UTC
It worked on 57 and since the update to 58 it broke. In between nothing else changed on the system.
Comment 7 Plüss Roland 2024-08-01 11:02:27 UTC
net-im/discord-0.0.62 is showing the same problem with the same error message in the console.
Comment 8 Plüss Roland 2024-08-01 11:05:46 UTC
Is there a reason why the "/usr/bin/discord" file begins with
```
#!/bin/env bash
# coding: UTF-8
```
Because "/bin/env" really does not exist. Sounds to me like a broken discord emerge package or a missing dependency.
Comment 9 Plüss Roland 2024-08-01 11:06:47 UTC
The env file is located on "/usr/bin/env" on my system. I could symlink it but that can't be the solution.
Comment 10 Eli Schwartz gentoo-dev 2024-08-01 16:53:25 UTC
Recently broken. That launcher is totally wrong -- one must always refer to env as /usr/bin/env
Comment 11 Larry the Git Cow gentoo-dev 2024-08-01 19:21:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4481bb358ca845b914b3d6fdd9ea16ef1ad46ecb

commit 4481bb358ca845b914b3d6fdd9ea16ef1ad46ecb
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2024-08-01 19:19:23 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2024-08-01 19:20:25 +0000

    net-im/discord: Fix launcher script
    
    Closes: https://bugs.gentoo.org/935791
    
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 net-im/discord/{discord-0.0.62.ebuild => discord-0.0.62-r1.ebuild} | 0
 net-im/discord/files/launcher.sh                                   | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)