Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922869 - [guru] games-emulation/RetroArch: - make: *** [Makefile:196: config.mk] Error 1
Summary: [guru] games-emulation/RetroArch: - make: *** [Makefile:196: config.mk] Error 1
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-24 20:42 UTC by Mitchell Turcot (FilthyPitDog)
Modified: 2024-01-25 15:45 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mitchell Turcot (FilthyPitDog) 2024-01-24 20:42:52 UTC
retroarch fails configure phase

❯ emerge --info '=games-emulation/RetroArch-1.16.0.3::guru'
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-13, glibc-2.38-r9, 6.7.1-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.7.1-gentoo-dist-x86_64-AMD_Ryzen_9_7900X3D_12-Core_Processor-with-glibc2.38
KiB Mem:    65027356 total,  55946400 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of repository gentoo: Wed, 24 Jan 2024 19:33:03 +0000
Head commit of repository gentoo: 652faf0ec3f1970c44523d0d57bcc7ea85b0de24

Timestamp of repository ROKO__: Wed, 24 Jan 2024 11:48:05 +0000
Head commit of repository ROKO__: 1d03b9dcc99cd3ca88e82b2c1e92fd449c19e8f2

Timestamp of repository guru: Wed, 24 Jan 2024 14:48:06 +0000
Head commit of repository guru: 9894b8a0eb61ebda31a357d1d25619a6b3fd1976

Head commit of repository librewolf: 2e7225f295e1c6fda913be45be6111ba26149a39

Timestamp of repository src_prepare-overlay: Wed, 24 Jan 2024 14:48:06 +0000
Head commit of repository src_prepare-overlay: 445a8c9230ead3643f9e8c674ff5bf30c9b2cbbb

Timestamp of repository steam-overlay: Wed, 17 Jan 2024 23:18:13 +0000
Head commit of repository steam-overlay: 1b2ecf815a1503215214a4a8fd21c09610c46991

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.28.1-r1::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::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.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

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

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

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

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

src_prepare-overlay
    location: /var/db/repos/src_prepare-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/src_prepare-overlay.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

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver4 -O2 -pipe"
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=znver4 -O2 -pipe"
DISTDIR="/var/cache/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="-march=znver4 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy clean-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict strict-keepdir unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver4 -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com"
LANG="en_US.utf8"
LDFLAGS=""
LEX="flex"
MAKEOPTS="-j22"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/zsh"
USE="X aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr clang cli colord crypt dbus dri drm dts dvd dvdr eds elogind encode evo exif flac fortran fuse gdbm gdm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm graphite gstreamer gtk gtk2 gtk3 gtk4 gui iconv icu introspection ipv6 jpeg keyring lame lcms libnotify libtirpc lm-sensors lto lz4 lzma lzo mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qt5 qt6 readline ruby_single_target_ruby30 samba sdl seccomp sound spell split-usr ssl startup-notification svg sysprof test-rust tiff tracker truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis vulkan wavpack wayland wxwidgets x x264 x265 xattr xcb xft xml xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" 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="mmx mmxext sse sse2 aes avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="openssl" 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" GRUB_PLATFORMS="efi-64 pc qemu" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AArch64 AMDGPU X86" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 x86_64" VIDEO_CARDS="amdgpu radeonsi virgl" 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, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, 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

LOG

❯ emerge -av games-emulation/RetroArch

These are the packages that would be merged, in order:

Calculating dependencies            ... done!
Dependency resolution took 0.67 s (backtrack: 0/20).

[ebuild  N    ~] games-emulation/RetroArch-1.16.0.3::guru  USE="X alsa egl opengl ozone pulseaudio rgui sdl threads truetype udev vulkan wayland xv zlib -7zip -cg -cheevos -debug -dispmanx -ffmpeg -filters -gles2 -gles3 -hid -jack -kms -libass -libusb -materialui -network -openal -osmesa -oss -sdl2 -v4l2 -videocore -xinerama -xmb" CPU_FLAGS_X86="sse2" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) games-emulation/RetroArch-1.16.0.3::guru
 * RetroArch-1.16.0.3.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking RetroArch-1.16.0.3.tar.gz to /var/tmp/portage/games-emulation/RetroArch-1.16.0.3/work
>>> Source unpacked in /var/tmp/portage/games-emulation/RetroArch-1.16.0.3/work
>>> Preparing source in /var/tmp/portage/games-emulation/RetroArch-1.16.0.3/work/RetroArch-1.16.0.3 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-emulation/RetroArch-1.16.0.3/work/RetroArch-1.16.0.3 ...
Checking operating system ... Linux ( )
Checking for suitable working C compiler ... /usr/bin/gcc works
Checking for suitable working C++ compiler ... /usr/bin/g++ works
Checking for pkg-config ... /usr/bin/pkgconf
Checking for availability of switch -std=gnu99 in /usr/bin/gcc ... yes
Checking for availability of switch -std=c++11 in /usr/bin/g++ ... yes
Checking for availability of switch -Wno-unused-result in /usr/bin/gcc ... yes
Checking for availability of switch -Wno-unused-variable in /usr/bin/gcc ... yes
Checking function sd_get_machine_names in -lsystemd ... no
Checking presence of header file EGL/eglext.h ... yes
Checking presence of package egl ... 1.5
Checking existence of -msse -msse2 ... yes
Checking function pthread_create in -lpthread ... yes
Checking function pthread_key_create in -lpthread ... yes
Checking presence of package check >= 0.15 ... no
Checking presence of header file scsi/sg.h ... yes
Checking function dlopen in -ldl ... yes
Notice: Networking is disabled, discord support will also be disabled.
Notice: Networking is disabled, ssl support will also be disabled.
Notice: Networking is disabled, OCR support will also be disabled.
Notice: Networking is disabled, Netplay discovery support will also be disabled.
Checking function fcntl in -lc ... yes
Checking function getopt_long in -lc ... yes
Checking presence of package alsa ... 1.2.10
Checking presence of package libsixel >= 1.6.0 ... no
Checking presence of predefined macro AUDIO_SETINFO in sys/audioio.h ... no
Checking presence of package rsound >= 1.1 ... no
Checking presence of package libroar >= 1.0.12 ... no
Checking presence of package libpulse ... 16.1
Checking presence of package sdl >= 1.2.10 ... no
Forced to build with package sdl, but cannot locate. Exiting ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/games-emulation/RetroArch-1.16.0.3/work/RetroArch-1.16.0.3 ...
make -j22 
config.mk is outdated or non-existing. Run ./configure again.
make: *** [Makefile:196: config.mk] Error 1
 * ERROR: games-emulation/RetroArch-1.16.0.3::guru failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=games-emulation/RetroArch-1.16.0.3::guru'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/RetroArch-1.16.0.3::guru'`.
 * The complete build log is located at '/var/log/portage/build/games-emulation/RetroArch-1.16.0.3:20240124-203753.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/RetroArch-1.16.0.3/temp/environment'.
 * Working directory: '/var/tmp/portage/games-emulation/RetroArch-1.16.0.3/work/RetroArch-1.16.0.3'
 * S: '/var/tmp/portage/games-emulation/RetroArch-1.16.0.3/work/RetroArch-1.16.0.3'

>>> Failed to emerge games-emulation/RetroArch-1.16.0.3, Log file:

>>>  '/var/log/portage/build/games-emulation/RetroArch-1.16.0.3:20240124-203753.log'
Comment 1 Rafael Rondao 2024-01-25 14:25:50 UTC
Dear Mitchell,

I noticed you have USE flag "sdl" enabled, which is for SDL version '1.2.X'. And you have USE flag "sdl2" disabled. So you are forcing to build with the SDL version '1.2.X' instead of SDL version '2.X'.

If your desire is simply to enable SDL, regardless of version, I would recommend using the "sdl2" USE flag instead of "sdl". Which is the newer version.

Now, if you really want to use SDL version '1.2.X', the Retroarch configure is reporting you don't have it installed (or at least it couldn't find it).

> Checking presence of package sdl >= 1.2.10 ... no
> Forced to build with package sdl, but cannot locate. Exiting ...

Could you please check if you have package "media-libs/libsdl" installed?
https://packages.gentoo.org/packages/media-libs/libsdl

If not, could you please install it and check if it solves the problem?

Retroarch require a version equal, or superior, to 1.2.10.
This requirement is already specified at Retroarch ebuild.
https://gitweb.gentoo.org/repo/proj/guru.git/tree/games-emulation/RetroArch/RetroArch-1.16.0.3.ebuild#n58
When installing Retroarch, have "emerge" not requested you to install "media-libs/libsdl"?

Best Regards,
Comment 2 Mitchell Turcot (FilthyPitDog) 2024-01-25 15:45:19 UTC
thank you very much this resolves it