libretro / Lakka-LibreELEC

Lakka is a lightweight Linux distribution that transforms a small computer into a full blown game console.
https://www.lakka.tv
1.72k stars 287 forks source link

Compiling errors (AGAIN!) #1877

Closed GabrielAnacletoBaumgartner closed 8 months ago

GabrielAnacletoBaumgartner commented 11 months ago

Ok, i've been trying to compile a custom X11-nividia Lakka build for 5 DAYS! And i'm still getting errors.

I already had issues compiling the system but now i made a few changes.

I edited the name, logo, splash and options file in the Lakka-LibreELEC/distributions/Lakka, v4 and v5. But even before editing i was getting errors. If this is my environment's fault, you should provide the "install all dependencies" script, after all the Readme.MD is COMPLETELY OUTDATED.

Note the compiling errors i'm getting are consistent even with no modifications (simply just cloned and compiled) to the previous mentioned files.

Basically what i added to the options was this:

  EXCLUDE_LIBRETRO_CORES+=" stella2014 mednafen_lynx atari800"
  #Atari
  EXCLUDE_LIBRETRO_CORES+=" hbmame mame2000 mame2003 mame2003_midway mame2003_plus mame2009 mame2010 mame2015 mame2016"
  #Arcade
  EXCLUDE_LIBRETRO_CORES+=" mednafen_pce_fast mednafen_supergrafx quasi88 np2kai nekop2"
  #NECpcEngine
  EXCLUDE_LIBRETRO_CORES+=" desmume2015"
  #DS
  EXCLUDE_LIBRETRO_CORES+=" quicknes bnes emux_chip8 emux_gb emux_nes emux_sms fceumm fixnes"
  #NES
  EXCLUDE_LIBRETRO_CORES+=" snes9x2002 snes9x2005 snes9x2005_plus snes9x2010 bsnes2014_accuracy bsnes2014_balanced bsnes2014_performance bsnes_cplusplus98 bsnes_hd_beta bsnes bsnes_mercury_accuracy bsnes_mercury_balanced bsnes_mercury_performance mednafen_snes mednafen_supafaust higan_sfc_balanced higan_sfc mesen-s"
  #SNES
  EXCLUDE_LIBRETRO_CORES+=" sameboy tgbdual gearboy meteor fixgb gambatte tempgba vba_next vbam mednafen_gba"
  #GBA
  EXCLUDE_LIBRETRO_CORES+=" dosbox_core dosbox dosbox_pure dosbox_svn_ce dosbox_svn minivmac gpsp mu px68k x1 81 fuse theodore cap32 crocods puae2021 puae uae4arm vice_x128 vice_x64 vice_x64sc vice_xcbm2 vice_xcbm5x0 vice_xpet vice_xplus4 vice_xscpu64 vice_xvic"
  #RetroOS
  EXCLUDE_LIBRETRO_CORES+=" genesis_plus_gx_wide picodrive gearsystem"
  #Genesis
  EXCLUDE_LIBRETRO_CORES+=" race"
  #Neogeo
  EXCLUDE_LIBRETRO_CORES+=" cannonball craft prboom nxengine dinothawr mrboom xrick"
  #Singlecores
  EXCLUDE_LIBRETRO_CORES+=" tyrquake vitaquake2-rogue vitaquake2-xatrix vitaquake2-zaero vitaquake2 vitaquake3 boom3 boom3_xp gong opentyrian pascal_pong"
  #GameClone
  EXCLUDE_LIBRETRO_CORES+=" openlara chailove ecwolf ecwolf puzzlescript jumpnbump lowresnx lutro reminiscence scummvm superbroswar tic80 vaporspec vitavoyager wasm4 easyrpg cruzes"
  #GameEngine
  EXCLUDE_LIBRETRO_CORES+=" mpv ffmpeg pocketcdg gme moonlight"
  #Multimedia

This way it would remove the cores i won't use. And yes, i inserted these lines before # exclude some cores at build time The changes to the name and to the icons/splash is purely due to aesthetics (and i don't know how it could affect compiling)

With Lakka v5.x i get errors at step 258:

CLEAN      mame
    *      Removing /home/gabriellaptop/Lakka-LibreELEC/build.DreamOS-Generic.x86_64-5.0-devel/build/mame-1808a1cc4bf9148505bc97a3f392b55e6121993c ...
    *      Removing /home/gabriellaptop/Lakka-LibreELEC/build.DreamOS-Generic.x86_64-5.0-devel/qa_checks/mame-* ...
UNPACK      mame
    APPLY PATCH (common)      packages/lakka/libretro_cores/mame/patches/mame-crosscompile.patch
patching file 3rdparty/genie/build/gmake.linux/genie.make
patching file 3rdparty/genie/src/host/scripts.c
Hunk #1 succeeded at 147 with fuzz 1.
patching file scripts/toolchain.lua
Hunk #1 succeeded at 335 (offset -363 lines).
    APPLY PATCH (common)      packages/lakka/libretro_cores/mame/patches/mame-remove-bgfx.patch
patching file Makefile.libretro
Hunk #1 succeeded at 79 with fuzz 2 (offset 24 lines).
patching file scripts/genie.lua
Hunk #1 succeeded at 437 with fuzz 1 (offset 50 lines).
patching file scripts/src/3rdparty.lua
Hunk #1 FAILED at 1249.
Hunk #2 FAILED at 1433.
2 out of 2 hunks FAILED -- saving rejects to file scripts/src/3rdparty.lua.rej
patching file scripts/src/main.lua
Hunk #1 FAILED at 380.
1 out of 1 hunk FAILED -- saving rejects to file scripts/src/main.lua.rej
*********** FAILED COMMAND ***********
patch -d "${PKG_BUILD}" -p1 < ${i} 1>&${VERBOSE_OUT}
**************************************
*********** FAILED COMMAND ***********
${SCRIPTS}/unpack "${PKG_NAME}" "${PARENT_PKG}"
**************************************
*********** FAILED COMMAND ***********
${SCRIPTS}/build "${1}" "${PARENT_PKG}"
**************************************
FAILURE: scripts/install mame:target has failed!

With Lakka v4.x i get errors at step 8 (but the log file is 9, for some reason):

GET      m4 (archive)
--2023-09-07 18:48:05--  http://ftpmirror.gnu.org/m4/m4-1.4.18.tar.bz2
Resolving ftpmirror.gnu.org (ftpmirror.gnu.org)... 2001:470:142:5::200, 209.51.188.200
Connecting to ftpmirror.gnu.org (ftpmirror.gnu.org)|2001:470:142:5::200|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://mirror.keystealth.org/gnu/m4/m4-1.4.18.tar.bz2 [following]
--2023-09-07 18:48:06--  http://mirror.keystealth.org/gnu/m4/m4-1.4.18.tar.bz2
Resolving mirror.keystealth.org (mirror.keystealth.org)... 2001:470:1:863::110:2, 184.105.240.111
Connecting to mirror.keystealth.org (mirror.keystealth.org)|2001:470:1:863::110:2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1516964 (1.4M) [application/x-bzip2]
Saving to: '/home/gabriellaptop/LakkaV4/sources/m4/m4-1.4.18.tar.bz2'

          /home/gab   0%[                    ]       0  --.-KB/s               
         /home/gabr   2%[                    ]  40.92K   204KB/s               
        /home/gabri   4%[                    ]  73.67K   183KB/s               
       /home/gabrie   7%[>                   ] 103.92K   172KB/s               
      /home/gabriel  14%[=>                  ] 213.92K   264KB/s               
     /home/gabriell  28%[====>               ] 428.67K   421KB/s               
    /home/gabriella  47%[========>           ] 709.17K   582KB/s               
   /home/gabriellap  68%[============>       ]   1008K   701KB/s               
  /home/gabriellapt  89%[================>   ]   1.29M   809KB/s               
/home/gabriellaptop 100%[===================>]   1.45M   866KB/s    in 1.7s    

2023-09-07 18:48:08 (866 KB/s) - '/home/gabriellaptop/LakkaV4/sources/m4/m4-1.4.18.tar.bz2' saved [1516964/1516964]

    INFO      Calculated checksum: 6640d76b043bc658139c8903e293d5978309bf0f408107146505eca701e67cf6
UNPACK      m4
    APPLY PATCH (common)      packages/devel/m4/patches/fix-compilation-with-glibc-2.28.patch
patching file lib/fflush.c
Hunk #2 succeeded at 72 with fuzz 1.
patching file lib/fpending.c
Hunk #1 succeeded at 32 with fuzz 1.
patching file lib/fpurge.c
patching file lib/freadahead.c
Hunk #1 succeeded at 25 (offset -5 lines).
patching file lib/freading.c
patching file lib/fseeko.c
patching file lib/stdio-impl.h
    FIXCONFIG      /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/build-aux/
BUILD      m4 (host)
    TOOLCHAIN      configure (auto-detect)
Executing (host): /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/configure --host=x86_64-linux-gnu --build=x86_64-linux-gnu --prefix=/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain --bindir=/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin --sbindir=/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/sbin --sysconfdir=/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/etc --libexecdir=/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/lib --localstatedir=/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/var --disable-static --enable-shared gl_cv_func_gettimeofday_clobber=no --target=x86_64-libreelec-linux-gnu
configure: WARNING: unrecognized options: --disable-static, --enable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-linux-gnu-gcc... /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin/host-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin/host-gcc accepts -g... yes
checking for /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin/host-gcc option to accept ISO C89... none needed
checking whether /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin/host-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin/host-gcc... gcc3
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for x86_64-linux-gnu-ar... ar
checking the archiver (ar) interface... ar
checking for x86_64-linux-gnu-ar... (cached) ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin/host-gcc option to accept ISO C99... none needed
checking for /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin/host-gcc option to accept ISO Standard C... (cached) none needed
configure: autobuild project... GNU M4
configure: autobuild revision... 1.4.18
configure: autobuild hostname... gabriellaptop
configure: autobuild timestamp... 20230907T214821Z
checking for unsigned long long int... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking for btowc... yes
checking for setrlimit... yes
checking for sigaltstack... yes
checking for canonicalize_file_name... yes
checking for getcwd... yes
checking for readlink... yes
checking for realpath... yes
checking for _set_invalid_parameter_handler... no
checking for fcntl... yes
checking for symlink... yes
checking for mempcpy... yes
checking for fpurge... no
checking for __fpurge... yes
checking for __freadahead... no
checking for __freading... yes
checking for getdtablesize... yes
checking for getprogname... no
checking for getexecname... no
checking for gettimeofday... yes
checking for lstat... yes
checking for mbsinit... yes
checking for mbrtowc... yes
checking for mprotect... yes
checking for mkstemp... yes
checking for nl_langinfo... yes
checking for pipe2... yes
checking for isblank... yes
checking for iswctype... yes
checking for link... yes
checking for secure_getenv... yes
checking for getuid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getegid... yes
checking for sigaction... yes
checking for siginterrupt... yes
checking for snprintf... yes
checking for strndup... yes
checking for pipe... yes
checking for vasnprintf... no
checking for wcrtomb... yes
checking for iswcntrl... yes
checking for newlocale... yes
checking for setenv... yes
checking for sleep... yes
checking for strdup... yes
checking for wctob... yes
checking for nl_langinfo and CODESET... yes
checking for a traditional french locale... none
checking for ucontext.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for stdio_ext.h... yes
checking for sys/stat.h... (cached) yes
checking for getopt.h... yes
checking for sys/time.h... yes
checking for langinfo.h... yes
checking for limits.h... yes
checking for xlocale.h... no
checking for math.h... yes
checking for sys/mman.h... yes
checking for malloc.h... yes
checking for sys/cdefs.h... yes
checking for spawn.h... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for sys/wait.h... yes
checking for features.h... yes
checking for wctype.h... yes
checking for dirent.h... yes
checking for inttypes.h... (cached) yes
checking for working C stack overflow detection... no
checking for ld used by /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/toolchain/bin/host-gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for libsigsegv... no, consider installing GNU libsigsegv
checking whether // is distinct from /... no
checking whether realpath works... yes
checking if environ is properly declared... yes
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for complete errno.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for mode_t... yes
checking for sig_atomic_t... yes
checking for working fcntl.h... yes
checking for pid_t... yes
checking whether frexp() can be used without linking with libm... yes
checking whether alarm is declared... yes
checking whether long double and double are the same... no
checking whether stdin defaults to large file offsets... yes
checking whether fseeko is declared... yes
checking for fseeko... yes
checking whether fflush works on input streams... no
checking whether stat file-mode macros are broken... no
checking for nlink_t... yes
checking whether ftello is declared... yes
checking for ftello... yes
checking whether ftello works... yes
checking whether getdtablesize is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... yes
checking for working GNU getopt_long function... yes
checking whether getenv is declared... yes
checking for C/C++ restrict keyword... __restrict
checking for struct timeval... yes
checking for wide-enough struct timeval.tv_sec member... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking where to find the exponent in a 'float'... word 0 bit 23
checking whether byte ordering is bigendian... no
checking whether limits.h has ULLONG_WIDTH etc.... yes
checking whether getc_unlocked is declared... yes
checking whether we are using the GNU C Library >= 2.1 or uClibc... yes
checking for wchar_t... yes
checking for max_align_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking for multithread API to use... none
checking whether lstat correctly handles trailing slash... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for mbstate_t... yes
checking for a traditional japanese locale... none
checking for a transitional chinese locale... none
checking for a french Unicode locale... none
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether <limits.h> defines MIN and MAX... no
checking whether <sys/param.h> defines MIN and MAX... yes
checking for promoted mode_t type... mode_t
checking for library containing posix_spawn... none required
checking for posix_spawn... yes
checking whether posix_spawn works... yes
checking whether posix_spawnattr_setschedpolicy is supported... yes
checking whether posix_spawnattr_setschedparam is supported... yes
checking for sigset_t... yes
checking for SIGPIPE... yes
checking for inline... inline
checking for uid_t in sys/types.h... yes
checking whether C symbols are prefixed with underscore at the linker level... no
checking whether snprintf returns a byte count as in C99... yes
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for wint_t... yes
checking whether wint_t is too small... no
checking whether stdint.h conforms to C99... yes
checking whether stdint.h predates C++11... no
checking whether stdint.h has UINTMAX_WIDTH etc.... yes
checking whether strerror(0) succeeds... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking whether strsignal is declared... yes
checking whether sys_siglist is declared... no
checking whether strstr works... yes
checking whether ldexp() can be used without linking with libm... yes
checking for struct timespec in <time.h>... yes
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking for snprintf... (cached) yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... (cached) yes
checking for wcrtomb... (cached) yes
checking whether _snprintf is declared... no
checking whether printf supports size specifiers as in C99... yes
checking whether printf supports 'long double' arguments... yes
checking whether printf supports infinite 'double' arguments... yes
checking whether printf supports infinite 'long double' arguments... yes
checking whether printf supports the 'a' and 'A' directives... yes
checking whether printf supports the 'F' directive... yes
checking whether printf supports the 'n' directive... no
checking whether printf supports the 'ls' directive... yes
checking whether printf supports the grouping flag... yes
checking whether printf supports the left-adjust flag correctly... yes
checking whether printf supports the zero flag correctly... yes
checking whether printf supports large precisions... yes
checking whether printf survives out-of-memory conditions... yes
checking whether to use C++... no
checking whether ungetc works on arbitrary bytes... yes
checking whether getcwd (NULL, 0) allocates memory for result... yes
checking for getcwd with POSIX signature... yes
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for LC_MESSAGES... yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether setenv is declared... yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking for tsearch... yes
checking whether strdup is declared... yes
checking whether unsetenv is declared... yes
checking for alloca as a compiler built-in... yes
checking whether to enable assertions... yes
checking whether btowc(0) is correct... yes
checking whether btowc(EOF) is correct... guessing yes
checking for __builtin_expect... yes
checking whether sigaltstack is declared... yes
checking for stack_t... yes
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... yes
checking whether fflush works on input streams... (cached) no
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check
checking whether fflush works on input streams... (cached) no
checking whether conversion from 'int' to 'long double' works... yes
checking whether fopen recognizes a trailing slash... yes
checking for __fpending... yes
checking whether __fpending is declared... yes
checking whether fpurge is declared... no
checking whether frexp works... yes
checking whether frexpl is declared... yes
checking whether frexpl() can be used without linking with libm... yes
checking whether frexpl works... yes
checking for fseeko... (cached) yes
checking whether fflush works on input streams... (cached) no
checking for _fseeki64... no
checking for ftello... (cached) yes
checking whether ftello works... (cached) yes
checking whether getdtablesize works... yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking whether __argv is declared... no
checking whether gettimeofday clobbers localtime buffer... (cached) no
checking for gettimeofday with POSIX signature... yes
checking whether isnan(double) can be used without linking with libm... yes
checking whether isnan(float) can be used without linking with libm... yes
checking whether isnan(float) works... yes
checking whether isnan(long double) can be used without linking with libm... yes
checking whether isnanl works... yes
checking whether langinfo.h defines CODESET... yes
checking whether langinfo.h defines T_FMT_AMPM... yes
checking whether langinfo.h defines ERA... yes
checking whether langinfo.h defines YESEXPR... yes
checking for libsigsegv... (cached) no, consider installing GNU libsigsegv
checking whether locale.h conforms to POSIX:2001... yes
checking whether struct lconv is properly defined... yes
checking whether lseek detects pipes... yes
checking whether NAN macro works... yes
checking whether HUGE_VAL works... yes
checking whether mbrtowc handles incomplete characters... guessing yes
checking whether mbrtowc works as well as mbtowc... guessing yes
checking whether mbrtowc handles a NULL pwc argument... guessing yes
checking whether mbrtowc handles a NULL string argument... guessing yes
checking whether mbrtowc has a correct return value... guessing yes
checking whether mbrtowc returns 0 when parsing a NUL character... guessing yes
checking whether mbrtowc works on empty input... yes
checking whether the C locale is free of encoding errors... no
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking for mkdtemp... yes
checking for working mkstemp... yes
checking whether YESEXPR works... yes
checking for obstacks that work with any size object... no
checking whether open recognizes a trailing slash... yes
checking whether posix_spawn_file_actions_addclose works... yes
checking whether posix_spawn_file_actions_adddup2 works... yes
checking whether posix_spawn_file_actions_addopen works... yes
checking whether frexp works... (cached) yes
checking whether ldexp can be used without linking with libm... (cached) yes
checking whether frexpl() can be used without linking with libm... (cached) yes
checking whether frexpl works... (cached) yes
checking whether frexpl is declared... (cached) yes
checking whether ldexpl() can be used without linking with libm... yes
checking whether ldexpl works... yes
checking whether ldexpl is declared... yes
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking for raise... yes
checking for sigprocmask... yes
checking for rawmemchr... yes
checking whether readlink signature is correct... yes
checking whether readlink handles trailing slash correctly... yes
checking for working re_compile_pattern... yes
checking whether rename honors trailing slash on destination... yes
checking whether rename honors trailing slash on source... yes
checking whether rename manages hard links correctly... yes
checking whether rename manages existing destinations correctly... yes
checking whether rmdir works... yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... yes
checking for signbit macro... yes
checking for signbit compiler built-ins... yes
checking for sigprocmask... (cached) yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... (cached) yes
checking whether snprintf respects a size of 1... yes
checking whether printf supports POSIX/XSI format strings with positions... yes
checking for posix_spawnattr_t... yes
checking for posix_spawn_file_actions_t... yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on directories... yes
checking whether stat handles trailing slashes on files... yes
checking for va_copy... yes
checking for max_align_t... (cached) yes
checking whether NULL can be used in arbitrary expressions... (cached) yes
checking which flavor of printf attribute matches inttypes macros... system
checking for strchrnul... yes
checking whether strchrnul works... yes
checking for working strerror function... yes
checking for working strndup... yes
checking for working strnlen... yes
checking for strsignal... yes
checking whether strsignal always returns a string... yes
checking whether strstr works in linear time... yes
checking whether strstr works... (cached) yes
checking whether strtod obeys C99... yes
checking for nlink_t... (cached) yes
checking for ptrdiff_t... yes
checking for vasprintf... yes
checking for vasprintf... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for waitid... yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether wcrtomb return value is correct... guessing yes
checking whether iswcntrl works... yes
checking for towlower... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking for stdint.h... (cached) yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional french locale... (cached) none
checking for a turkish Unicode locale... none
checking for closedir... yes
checking for dirfd... yes
checking whether dirfd is declared... yes
checking whether dirfd is a macro... no
checking whether dup works... yes
checking whether fdopen sets errno... yes
checking for flexible array member... yes
checking for getpagesize... yes
checking whether getpagesize is declared... yes
checking whether INT32_MAX < INTMAX_MAX... yes
checking whether INT64_MAX == LONG_MAX... yes
checking whether UINT32_MAX < UINTMAX_MAX... yes
checking whether UINT64_MAX == ULONG_MAX... yes
checking where to find the exponent in a 'double'... (cached) word 1 bit 20
checking where to find the exponent in a 'float'... (cached) word 0 bit 23
checking where to find the exponent in a 'long double'... unknown
checking whether link obeys POSIX... yes
checking for setlocale... yes
checking for uselocale... yes
checking for getlocalename_l... no
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for opendir... yes
checking for putenv compatible with GNU and SVID... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for readdir... yes
checking whether setenv validates arguments... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking whether sleep is declared... yes
checking for working sleep... yes
checking for working stdalign.h... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking whether symlink handles trailing slash correctly... yes
checking for unsetenv... yes
checking for unsetenv() return type... int
checking whether unsetenv obeys POSIX... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking whether wctob works... guessing yes
checking whether wctob is declared... yes
checking whether an open file can be renamed... yes
checking if changeword is wanted... no
checking which shell to use for syscmd... /bin/sh
checking if malloc debugging is wanted... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating checks/Makefile
config.status: creating examples/Makefile
config.status: creating lib/config.h
config.status: linking /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/GNUmakefile to GNUmakefile
config.status: executing depfiles commands
config.status: executing stamp-h commands
configure: WARNING: unrecognized options: --disable-static, --enable-shared
Executing (host): make 
make[1]: Entering directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu'
make  all-recursive
make[2]: Entering directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu'
Making all in .
make[3]: Entering directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu'
Making all in examples
make[3]: Entering directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu/examples'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu/examples'
Making all in lib
make[3]: Entering directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu/lib'
  GEN      alloca.h
  GEN      configmake.h
  GEN      c++defs.h
  GEN      arg-nonnull.h
  GEN      warn-on-use.h
  GEN      limits.h
  GEN      unused-parameter.h
  GEN      spawn.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      sys/wait.h
  GEN      time.h
  GEN      unistd.h
  GEN      wchar.h
  GEN      wctype.h
  GEN      fcntl.h
  GEN      langinfo.h
  GEN      locale.h
  GEN      math.h
  GEN      signal.h
make  all-am
make[4]: Entering directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu/lib'
  CC       gl_avltree_oset.o
  CC       binary-io.o
  CC       c-ctype.o
  CC       c-stack.o
In file included from /usr/include/signal.h:328,
                 from ./signal.h:52,
                 from /home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/lib/c-stack.c:49:
/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token "("
   55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
      |                          ^~~~~~~~
/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/lib/c-stack.c:107:1: warning: 'die' defined but not used [-Wunused-function]
  107 | die (int signo)
      | ^~~
make[4]: *** [Makefile:1910: c-stack.o] Error 1
make[4]: Leaving directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu/lib'
make[3]: *** [Makefile:1674: all] Error 2
make[3]: Leaving directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu/lib'
make[2]: *** [Makefile:1572: all-recursive] Error 1
make[2]: Leaving directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu'
make[1]: *** [Makefile:1528: all] Error 2
make[1]: Leaving directory '/home/gabriellaptop/LakkaV4/build.DreamOS-Generic.x86_64/build/m4-1.4.18/.x86_64-linux-gnu'
FAILURE: scripts/build m4:host during make_host (default)
*********** FAILED COMMAND ***********
make ${PKG_MAKE_OPTS_HOST}
**************************************
FAILURE: scripts/build m4:host has failed!

I'm trying to build it with Ubuntu 22.04, running KDE. It's a laptop, 4GB RAM ddr3 1066MHz, 240GB SSD, Core 2 Duo T9900. I really would like to help with Lakka's development, but i can't help if i can't even compile it out of the box.

metchebe commented 11 months ago

For building Lakka-4.x use Ubuntu Focal (20.04).

Also I suggest doing a test build with only one core with CUSTOM_LIBRETRO_CORES=2048 to check that the base system is OK first.

GabrielAnacletoBaumgartner commented 11 months ago

For building Lakka-4.x use Ubuntu Focal (20.04).

Also I suggest doing a test build with only one core with CUSTOM_LIBRETRO_CORES=2048 to check that the base system is OK first.

  1. Why can't i build Lakka 4.x on latest Ubuntu, and why this is not in the compiling guide?
  2. Does the same rule apply to Lakka 5.x?
GabrielAnacletoBaumgartner commented 11 months ago

@metchebe I installed Ubuntu (20.04) in a VM to compile lakka 4 and this is what i got this when installing the required to compile packages:

image

metchebe commented 11 months ago

Why are you trying to install those packages? The script should take care of that for you.

What instructions are you following? They might be wrong.

GabrielAnacletoBaumgartner commented 11 months ago

@metchebe What script? Lakka's script??? It simply never installed dependencies for me! I had to search and found this post

And i found a NEW ISSUE!!! AAAAAAAAAAAAAAAAAAAHHHHHHH!!!!!!!!! (Rage) WHY COMPILING THIS SYSTEM IS SO HARD?!

I started to compile the Lakka v4 in a virtual machine. I downgraded libncurses-dev (i had forgotten this one).

image

As you can see, XZ Utils repository is not working. I tried to download it manually and IS INDEED OFF

metchebe commented 11 months ago

Alright. Take a break and let me get to my computer (tomorrow perhaps) to give you some pointers.

I've built 4.x and 5.x very recently and they do work.

metchebe commented 11 months ago

OK there's a lot to go through so I will try to respond to everything, but not necessarily in order.

  1. My experience is building Lakka for Raspberry Pi 3 on Ubuntu. I have not built Lakka for PC x86_64 so I am not familiar with problems that might be specific to that target.

  2. I assume you have a working installation of Ubuntu, 22.04 for Lakka 5.x and 20.04 for Lakka 4.x. The older version is required for 4.x because the version of the m4 package that ships with 4.x does not build with the newer glibc version in Ubuntu 22.04. Note that instead of a VM you can use a docker container, which I recommend IF you know how to use docker.

  3. The base command that I understand you should be using is DISTRO=Lakka PROJECT=Generic DEVICE=x11 ARCH=x86_64 make image. This will also check and install any dependencies you may need. I would ignore any indication to install other dependencies. At most, it might be useful to install build-essential beforehand but I don't think it's necessary. Also I don't understand why you had issues with apt finding packages, seems like you forgot to update the repository or something.

  4. Your issue with 5.x seems to be an outdated patch for mame, I would simply exclude it for now. So after ARCH=x86_64 add CUSTOM_LIBRETRO_CORES='core1 core2 core3 ...' where the cores are the ones you want to include (you don't need to edit files). As I said before, I suggest building first with only CUSTOM_LIBRETRO_CORES=2048 to make a test build.

  5. Optionally, before building you can run ./libretro_update.sh to update retroarch and/or the cores before building. This way you can have up-to-date retroarch and cores on 4.x and 5.x. In your case I would only do this after you have made a couple of successful builds, since updated cores might need fixes.

GabrielAnacletoBaumgartner commented 11 months ago

OK there's a lot to go through so I will try to respond to everything, but not necessarily in order.

1. My experience is building Lakka for Raspberry Pi 3 on Ubuntu. I have not built Lakka for PC x86_64 so I am not familiar with problems that might be specific to that target.

2. I assume you have a working installation of Ubuntu, 22.04 for Lakka 5.x and 20.04 for Lakka 4.x. The older version is required for 4.x because the version of the `m4` package that ships with 4.x does not build with the newer glibc version in Ubuntu 22.04. Note that instead of a VM you can use a docker container, which I recommend IF you know how to use docker.

3. The base command that I understand you should be using is `DISTRO=Lakka PROJECT=Generic DEVICE=x11 ARCH=x86_64 make image`. This will also check and install any dependencies you may need. I would ignore any indication to install other dependencies. At most, it might be useful to install `build-essential` beforehand but I don't think it's necessary. Also I don't understand why you had issues with apt finding packages, seems like you forgot to update the repository or something.

4. Your issue with 5.x seems to be an outdated patch for `mame`, I would simply exclude it for now. So after `ARCH=x86_64` add `CUSTOM_LIBRETRO_CORES='core1 core2 core3 ...'` where the cores are the ones you want to include (you don't need to edit files). As I said before, I suggest building first with only `CUSTOM_LIBRETRO_CORES=2048` to make a test build.

5. Optionally, before building you can run `./libretro_update.sh` to update retroarch and/or the cores before building. This way you can have up-to-date retroarch and cores on 4.x and 5.x. In your case I would only do this after you have made a couple of successful builds, since updated cores might need fixes.

Hello. It's me again.

I tried doing what you said with Lakka 4, ./libretro_update.sh to update all the cores, with clean unmodded git clone. Then i used the command:

DISTRO=Lakka PROJECT=Generic ARCH=x86_64 DEVICE=x11 CUSTOM_LIBRETRO_CORES='2048' make image

Screenshot from 2023-09-12 12-23-22 As you can see above It simply tried to compiled with 139 cores even with the command. Not just 2048. After I even tried modding the options file (with "EXCLUDE_LIBRETRO_CORES+=" to reduce it to something around 74) but the result was the same.

But again, i have a faulty repository:

Screenshot from 2023-09-12 12-22-40

ERROR 404 means link is down... I will have to wait but i would like to understand why CUSTOM_LIBRETRO_CORES is not working.

metchebe commented 11 months ago

@GabrielAnacletoBaumgartner your Lakka options file seems to be modified. I can tell because line 377 does not match, see https://github.com/libretro/Lakka-LibreELEC/blob/Lakka-v4.x/distributions/Lakka/options

GabrielAnacletoBaumgartner commented 11 months ago

@GabrielAnacletoBaumgartner your Lakka options file seems to be modified. I can tell because line 377 does not match, see https://github.com/libretro/Lakka-LibreELEC/blob/Lakka-v4.x/distributions/Lakka/options

Ok... Original options file now. This command DISTRO=Lakka PROJECT=Generic DEVICE=x11 ARCH=x86_64 CUSTOM_LIBRETRO_CORES=2048 make image

Screenshot from 2023-09-13 00-23-25

metchebe commented 11 months ago

@GabrielAnacletoBaumgartner I checked and DEVICE=x11 is only available on Lakka-5.x. In fact I tried to use the command on 4.x and it failed immediately with There are no devices for project: Generic.

You got a totally different error so it seems that you are using still using modified or mixed Lakka-4.x code.

I will reiterate that I do not have experience building for Generic and x11, but it seems to me now that Lakka-5.x (which also does not use the driver that gave you issues) is probably the easiest way to do it. Please use a clean codebase, since using edited or mixed code makes it difficult to distinguish between issues in Lakka and issues caused by edited code.

GabrielAnacletoBaumgartner commented 11 months ago

@GabrielAnacletoBaumgartner I checked and DEVICE=x11 is only available on Lakka-5.x. In fact I tried to use the command on 4.x and it failed immediately with There are no devices for project: Generic.

You got a totally different error so it seems that you are using still using modified or mixed Lakka-4.x code.

I will reiterate that I do not have experience building for Generic and x11, but it seems to me now that Lakka-5.x (which also does not use the driver that gave you issues) is probably the easiest way to do it. Please use a clean codebase, since using edited or mixed code makes it difficult to distinguish between issues in Lakka and issues caused by edited code.

I'm sorry i didn't make it clear: the last screenshot i tried to compile Lakka 5. Indeed i got confuse, it's been more than i week trying to compile this "thing". It's been really stressful and i am using two computer to try speed up the compiling process.

I'm trying a v4 Generic non X11 build only with one core now to see if this "thing" works properly, but as you have more experience than me... Could confirm what are the commands to build Lakka 4 and 5 with X11 (Nvidia Drivers)?

AND why `CUSTOM_LIBRETRO_CORES=2048 does not work properly (not sure if it was clean Lakka v4 or clean Lakka v5)?

metchebe commented 11 months ago

Could confirm what are the commands to build Lakka 4 and 5 with X11 (Nvidia Drivers)?

There is no command for Lakka 4, I believe you would have to edit the source code. For Lakka 5 it should be the one I indicated. As far as I can tell there is no official support or test build (yet) for Lakka-5.x on X11, so you might in fact be the first to try! Also I am not certain that this will install the nvidia drivers you require.

AND why `CUSTOM_LIBRETRO_CORES=2048 does not work properly (not sure if it was clean Lakka v4 or clean Lakka v5)?

As I stated, this happened because the options file had a syntax error because of incorrect editing, so it was not clean.

GabrielAnacletoBaumgartner commented 11 months ago

Could confirm what are the commands to build Lakka 4 and 5 with X11 (Nvidia Drivers)?

There is no command for Lakka 4, I believe you would have to edit the source code. For Lakka 5 it should be the one I indicated. As far as I can tell there is no official support or test build (yet) for Lakka-5.x on X11, so you might in fact be the first to try! Also I am not certain that this will install the nvidia drivers you require.

AND why `CUSTOM_LIBRETRO_CORES=2048 does not work properly (not sure if it was clean Lakka v4 or clean Lakka v5)?

As I stated, this happened because the options file had a syntax error because of incorrect editing, so it was not clean.

  1. What??? Really? So why there's an official release of 2.2 Nvidia Lakka? The reason why i'm trying to compile a new version myself is this official version is very, very, VERY old and lacks a lot of features i want.

I'm clearly not the first one to try (I know, not the same repository). I need nvidia drivers because i want to build an arcade with 1600x1200 screen and need CRT-Royale to run flawlessly (i bought GT1030 just for it). Plus i have a few ideas of themes i will build (if I manage to understand this system).

  1. If i need to compile an Nvidia v4 Lakka should i follow this guide?

  2. Tried to compile Lakka v4, 100% clean. This DISTRO=Lakka PROJECT=Generic ARCH=x86_64 CUSTOM_LIBRETRO_CORES=2048 make image and it compiled flawlessly. But i cannot see any IMG/ISO file. What should i do?

Note: I've never compiled a system before, just a few repositories, with clear (almost "noob" certified) guides.

metchebe commented 11 months ago

What??? Really? So why there's an official release of 2.2 Nvidia Lakka?

It says right there, experimental build.

I'm clearly not the first one to try

Yeah, I specifically meant using DEVICE=x11, which comes directly from LibreELEC-11. As they say, it's for Legacy Generic PC (for older PCs and NVIDIA GPUs). Maybe you should try the LibreELEC build, just to see how it works with your hardware (Link).

If i need to compile an Nvidia v4 Lakka should i follow this guide?

Seems way to old to work in 4.x. I wouldn't waste my time with this.

But i cannot see any IMG/ISO file. What should i do?

The output is in the target folder, you need the .img.gz file

metchebe commented 11 months ago

@GabrielAnacletoBaumgartner I apologize, the syntax error in the options file is from an error in the repository itself.

You can see it here:

https://nightly.builds.lakka.tv/2023-09-12_5.x/0_logs/x11.x86_64-2023-09-12_5.x.html

This seems to be the commit that produced the error: https://github.com/libretro/Lakka-LibreELEC/commit/24811d557cd2212b6021109669059c826c2a84e4

This also shows that the x11 target need more fixing. It seems it would be better to wait.

Ntemis commented 11 months ago

fixed

GabrielAnacletoBaumgartner commented 11 months ago

Legacy Generic PC (for older PCs and NVIDIA GPUs)

Tried, and working flawlessly.

Now just need to build Lakka v5 (DEVICE=x11)?

metchebe commented 11 months ago

@GabrielAnacletoBaumgartner no, check the log I posted above, ffmpeg fails at the end.

Better to wait for a fix, it's not ready yet.

GabrielAnacletoBaumgartner commented 10 months ago

@metchebe @Ntemis tried to compile it today (fresh clone, same options). Same result

metchebe commented 10 months ago

Yeah the latest log shows that ffmpeg is still failing.

Try removing it as a dependency in packages/lakka/retroarch_base/retroarch/package.mk in the line PKG_DEPENDS_TARGET="..." and see what happens.

GabrielAnacletoBaumgartner commented 10 months ago

I can confirm it compiled and generated an image file, but i also got this message:

[281/281] [DONE] install image:target

Total Build Time: 00:57:07.697 (wall clock) Accum Build Time: 05:42:46.123 (6 slots)

Breakdown by status (all slots):

Status Usage ( Pct ) Count State ACTIVE 01:22:13.915 (24.0%) 272 busy FAILED : :00.000 (00.0%) 0
GETPKG :01:51.402 (00.5%) 19 busy IDLE 04:18:00.467 (75.3%) 281
LOCKED : :27.876 (00.1%) 583
MUTEX : :00.000 (00.0%) 0 busy MUTEX/W : :00.000 (00.0%) 0 stall STALLED : :00.588 (00.0%) 2 stall UNLOCK : :11.875 (00.1%) 583

TOTAL 05:42:46.123 ( 100%) 1740

Peak concurrency: 6 out of 6 slots

2 job slots were held in a "stall" state for 00:00:00.588

Slot usage (time in a "busy" state): Concurrency breakdown ("busy"):
#Rank Slot Usage ( Pct ) # of Slots Usage ( Pct )
#01 06 :32:04.236 (09.4%) 01 :57:04.075 (16.6%)
#02 02 :20:17.026 (05.9%) 02 :21:00.420 (06.1%)
#03 01 :18:21.640 (05.4%) 03 :03:48.619 (01.1%)
#04 03 :05:57.578 (01.7%) 04 :01:03.198 (00.3%)
#05 05 :05:43.877 (01.7%) 05 : :39.322 (00.2%)
#06 04 :01:40.961 (00.5%) 06 : :29.683 (00.1%)

-----------------------------------------+--------------------------------- TOTALS 01:24:05.317 (24.5%) 01:24:05.317 (24.5%)

Successful build, creating image... depmod: ERROR: fstatat(6, nvidia.ko): No such file or directory depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDisableAccessCntr depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceChannelDestroy depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceQueryCaps depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceUnsetPageDirectory depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceInitAccessCntrInfo depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceReleaseChannel depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceMemoryAllocSys depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceMemoryCpuMap depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfacePmaFreePages depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceSetPageDirectory depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceMemoryCpuUnMap depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceOwnPageFaultIntr depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDupAddressSpace depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceGetExternalAllocPtes depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceRegisterGpu depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceP2pObjectDestroy depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceGetNonReplayableFaults depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceGetFbInfo depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceRetainChannel depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceHasPendingNonReplayableFaults depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDestroyAccessCntrInfo depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceStopChannel depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDestroyFaultInfo depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceMemoryAllocFB depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceQueryCopyEnginesCaps depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceReportNonReplayableFault depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceGetGpuInfo depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceBindChannelResources depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceInitFaultInfo depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDeviceCreate depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceServiceDeviceInterruptsRM depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDeRegisterUvmOps depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceFreeDupedHandle depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceMemoryFree depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfacePmaRegisterEvictionCallbacks depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceGetEccInfo depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceP2pObjectCreate depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceGetChannelResourcePtes depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceGetPmaObject depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceSessionDestroy depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDupMemory depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDeviceDestroy depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceAddressSpaceCreate depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceUnregisterGpu depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceAddressSpaceDestroy depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceRegisterUvmCallbacks depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfacePmaPinPages depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceChannelAllocate depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceGetP2PCaps depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceEnableAccessCntr depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfacePmaUnregisterEvictionCallbacks depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceDupAllocation depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfacePmaAllocPages depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceSessionCreate depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-modeset.ko needs unknown symbol nvidia_register_module depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-modeset.ko needs unknown symbol nvidia_get_rm_ops depmod: WARNING: /home/vboxuser/Lakka-LibreELEC/build.Lakka-x11.x86_64-5.0-devel/image/system/usr/lib/kernel-overlays/base/lib/modules/6.1.42/nvidia/nvidia-modeset.ko needs unknown symbol nvidia_unregister_module Parallel mksquashfs: Using 6 processors Creating 4.0 filesystem on /home/vboxuser/Lakka-LibreELEC/target/Lakka-x11.x86_64-5.0-devel-20231006194236-cae4ac3.system, block size 1048576. [===================================================================================-] 59832/59832 100%

Exportable Squashfs 4.0 filesystem, zstd compressed, data block size 1048576 compressed data, compressed metadata, compressed fragments, no xattrs, compressed ids duplicates are removed Filesystem size 796242.42 Kbytes (777.58 Mbytes) 43.87% of uncompressed filesystem size (1814901.56 Kbytes) Inode table size 458391 bytes (447.65 Kbytes) 23.00% of uncompressed inode table size (1993268 bytes) Directory table size 804211 bytes (785.36 Kbytes) 34.32% of uncompressed directory table size (2343364 bytes) Number of duplicate files found 5578 Number of inodes 61436 Number of files 59107 Number of fragments 917 Number of symbolic links 796 Number of device nodes 0 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 1533 Number of hard-links 253 Number of ids (unique uids + gids) 2 Number of uids 1 root (0) Number of gids 2 root (0) unknown (81)

image: creating sparse file for disk image Lakka-x11.x86_64-5.0-devel-20231006194236-cae4ac3.img... image: creating gpt partition table... image: creating partitions... image: writing mbr... image: creating sparse file for part2... image: creating filesystem on part2... image: populating filesystem on part2... image: merging part2 into disk image... image: creating sparse file for part1... image: creating filesystem on part1... image: creating bootloader configuration... image: installing syslinux to part1... image: copying files to part1... image: checking filesystem on part1... image: merging part1 into disk image... image: compressing... image: cleanup...

Anyways, i still need to test it. More updates later

GabrielAnacletoBaumgartner commented 10 months ago

Update:

Disk created successfully, boot and typed live mode as normal, but this is what happens when Lakka starts.

It looks like the OS boots but RetroArch does not.

P.S.: I am almost giving up, so... Would I run into legal problems if I make a Debian fork with only RetroArch? Like a "Lakkabian"? Of course it would be open source, free and the only advantage would be better nvidia-drivers support.

metchebe commented 10 months ago

Would I run into legal problems if I make a Debian fork with only RetroArch? Like a "Lakkabian"?

I doubt anyone that would know about these things is reading this thread. That said, if I were to publish this project online I would stay away from any naming resembling 'Lakka' or 'Debian'.

For actually using your machine it would probably be easier to just use Windows. Trying to build an unsupported and experimental OS was always going to be difficult.

If you want to keep experimenting then you already know that official LibreELEC works; you could try to build and run retroarch in that, in fact the retroarch binary that you built might work already.

GavinDarkglider commented 10 months ago

Update:

Disk created successfully, boot and typed live mode as normal, but this is what happens when Lakka starts.

It looks like the OS boots but RetroArch does not.

P.S.: I am almost giving up, so... Would I run into legal problems if I make a Debian fork with only RetroArch? Like a "Lakkabian"? Of course it would be open source, free and the only advantage would be better nvidia-drivers support.

Look at the switch build. I had to do some hacky stuff to get X11 working on the switch, and the odin...... first you need to add proper configuration for X for your hardware. Without the logs from X, and retroarch, there isnt much I can say to help you fix that issue though, since I dont have the hardware.

Ntemis commented 8 months ago

x11 images are up now so closing this