Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951504 - media-tv/kodi-21.2-r2 - [gcc-15] -- Configuring incomplete, errors occurred!
Summary: media-tv/kodi-21.2-r2 - [gcc-15] -- Configuring incomplete, errors occurred!
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-17 18:45 UTC by Toralf Förster
Modified: 2025-03-18 02:56 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.99 KB, text/plain)
2025-03-17 18:45 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,177.05 KB, text/plain)
2025-03-17 18:45 UTC, Toralf Förster
Details
environment (environment,250.04 KB, text/plain)
2025-03-17 18:45 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.59 KB, application/x-xz)
2025-03-17 18:45 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,20.22 KB, application/x-xz)
2025-03-17 18:45 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,322.40 KB, application/x-xz)
2025-03-17 18:45 UTC, Toralf Förster
Details
media-tv:kodi-21.2-r2:20250317-025226.log (media-tv:kodi-21.2-r2:20250317-025226.log,13.75 KB, text/plain)
2025-03-17 18:45 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,49.19 KB, application/x-xz)
2025-03-17 18:45 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,51.42 KB, application/x-xz)
2025-03-17 18:45 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-03-17 18:45:46 UTC
  cmake/modules/FindFFMPEG.cmake:240 (find_package_handle_standard_args)
  cmake/scripts/common/Macros.cmake:403 (find_package)
  cmake/scripts/common/Macros.cmake:417 (find_package_with_ver)
  CMakeLists.txt:261 (core_require_dep)


-- Configuring incomplete, errors occurred!
 * ERROR: media-tv/kodi-21.2-r2::gentoo failed (configure phase):
 *   cmake failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop-20250313-145002

  KEYWORDED/UNMASKED

  [gcc-15] Requested by sam
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GENTOO_VM=openjdk-bin-21  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.6_p7"
JAVACFLAGS="-source 21 -target 21" COMPILER=""
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.0
llvm-config: 20.1.0
Python 3.12.9
go version go1.24.1 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby34 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.85.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 6631bf3c5cd4284d7bfe5daf54135b04b21c7855
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Mar 16 23:33:54 2025 +0000

    2025-03-16 23:33:54 UTC

emerge -qpvO =media-tv/kodi-21.2-r2
[ebuild  N    ] media-tv/kodi-21.2-r2  USE="X alsa bluetooth cec css dbus eventclients gbm lcms lirc mariadb optical system-ffmpeg udev wayland xslt -airplay -bluray -caps -doc -gles -libusb -mysql -nfs -pipewire -pulseaudio -samba -soc -test -udf -upnp -vaapi -vdpau -webserver -zeroconf" CPU_FLAGS_X86="avx avx2 sse sse2 sse3 sse4_1 sse4_2" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"
Comment 1 Toralf Förster gentoo-dev 2025-03-17 18:45:47 UTC
Created attachment 920961 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-17 18:45:49 UTC
Created attachment 920962 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2025-03-17 18:45:50 UTC
Created attachment 920963 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-03-17 18:45:51 UTC
Created attachment 920964 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-03-17 18:45:52 UTC
Created attachment 920965 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-17 18:45:53 UTC
Created attachment 920966 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-03-17 18:45:54 UTC
Created attachment 920967 [details]
media-tv:kodi-21.2-r2:20250317-025226.log
Comment 8 Toralf Förster gentoo-dev 2025-03-17 18:45:55 UTC
Created attachment 920968 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-03-17 18:45:56 UTC
Created attachment 920969 [details]
temp.tar.xz
Comment 10 Chris Mayo 2025-03-17 19:25:40 UTC
Clearer with a few additional lines from the build log:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  FFmpeg undef not found, please consider using -DENABLE_INTERNAL_FFMPEG=ON
  (missing: FFMPEG_INCLUDE_DIRS) (found version "undef")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindFFMPEG.cmake:240 (find_package_handle_standard_args)
  cmake/scripts/common/Macros.cmake:403 (find_package)
  cmake/scripts/common/Macros.cmake:417 (find_package_with_ver)
  CMakeLists.txt:261 (core_require_dep)


I also get this with media-video/ffmpeg-compat-6.1.2 installed and
no media-video/ffmpeg.

Fixed for me by adding to mycmakeargs:

-DFFMPEG_INCLUDE_DIRS=/usr/lib/ffmpeg6/include
Comment 11 Larry the Git Cow gentoo-dev 2025-03-18 01:57:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9af09ff7e09ef103b5f15e902396158569409b

commit 7c9af09ff7e09ef103b5f15e902396158569409b
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2025-03-18 01:19:41 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2025-03-18 01:56:47 +0000

    media-tv/kodi: fix ffmpeg-compat detection
    
    The right include dir was passed either way, but cmake use has
    its own logic (not using pkg-config) and fails to find it if
    non-compat ffmpeg is not also installed.
    
    Note it is possible there are other cmake-using packages broken
    in a similar way given they almost all do their own (different)
    custom thing. Ultimately they'd have needed to be tested with
    both installed and not installed to ensure they both do not use
    the wrong one if present, and detect the right one properly --
    only did the former so far (might review a few).
    
    Thanks-to: Chris Mayo
    Closes: https://bugs.gentoo.org/951504
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-tv/kodi/kodi-21.2-r2.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Comment 12 Ionen Wolkens gentoo-dev 2025-03-18 02:56:52 UTC
>Note it is possible there are other cmake-using packages broken in a similar way
Well, I retried every package that had to rely on "ffmpeg_compat_add_flags" to work (implying not using pkg-config or not properly), but seems the only other package with a "similar" issue was dvdstyler (fixed), so not too bad. Not to say may not have overlooked something.