Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702104 - media-tv/kodi 18.5 with >=dev-libs/libfmt-6.1.0: error: ‘assert’ was not declared in this scope
Summary: media-tv/kodi 18.5 with >=dev-libs/libfmt-6.1.0: error: ‘assert’ was not decl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL: https://forums.gentoo.org/viewtopic-t...
Whiteboard:
Keywords:
: 702184 702186 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-12-05 20:23 UTC by Kajzer
Modified: 2019-12-13 04:15 UTC (History)
3 users (show)

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


Attachments
emerge.info (emerge.info,16.90 KB, application/x-info)
2019-12-05 20:35 UTC, Kajzer
Details
build.log (build.gz,43.82 KB, application/gzip)
2019-12-05 20:40 UTC, Kajzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kajzer 2019-12-05 20:23:44 UTC
I did some updates this morning, Kodi wasn't updated, everything went fine, no errors, did a reboot.
There was maybe 10 packages, nothing spectacular.

However, I wasn't able to start Kodi anymore, starting it from terminal gives this error :
/usr/lib64/kodi/kodi-x11: symbol lookup error: /usr/lib64/kodi/kodi-x11: undefined symbol: _ZN3fmt2v68internal14sprintf_formatIdEEPcT_RNS1_6bufferIcEENS1_13sprintf_specsE

so I thought ok, maybe I need to rebuild Kodi, but Kodi can't compile anymore, it aborts with this error :
/var/tmp/portage/media-tv/kodi-18.5/work/xbmc-18.5-Leia/xbmc/profiles/dialogs/GUIDialogProfileSettings.cpp:174:5: error: ‘assert’ was not declared in this scope
  174 |     assert(profile);
      |     ^~~~~~
/var/tmp/portage/media-tv/kodi-18.5/work/xbmc-18.5-Leia/xbmc/profiles/dialogs/GUIDialogProfileSettings.cpp:33:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
   32 | #include "utils/URIUtils.h"
  +++ |+#include <cassert>
   33 | #include "utils/Variant.h"
ninja: build stopped: subcommand failed.
 * ERROR: media-tv/kodi-18.5::gentoo failed (compile phase):
 *   ninja -v -j5 -l4 all failed
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 4773:  Called cmake-utils_src_compile 'all'
 *   environment, line 1708:  Called cmake-utils_src_make 'all'
 *   environment, line 1889:  Called _cmake_ninja_src_make 'all'
 *   environment, line  865:  Called eninja 'all'
 *   environment, line 2360:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"	


Reproducible: Always
Comment 1 Kajzer 2019-12-05 20:35:48 UTC
Created attachment 598580 [details]
emerge.info
Comment 2 Kajzer 2019-12-05 20:40:07 UTC
Created attachment 598582 [details]
build.log
Comment 3 Craig Andrews gentoo-dev 2019-12-05 20:46:34 UTC
Caused by >=dev-libs/libfmt-6.1.0

I've submitted a PR to Kodi:
https://github.com/xbmc/xbmc/pull/17000

When I hear back from upstream, I'll include the patch in Gentoo.
Comment 4 Kajzer 2019-12-05 21:40:46 UTC
Yeah, downgrading libfmt to 6.0.0 and Kodi starts.

Thanks!
Comment 5 Larry the Git Cow gentoo-dev 2019-12-06 17:07:58 UTC
The bug has been closed via the following commit(s):

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

commit d809e892a10f4ad04312db32d98e32421c367d9a
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2019-12-06 17:04:57 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2019-12-06 17:07:51 +0000

    media-tv/kodi: Fix compiling with >=dev-libs/libfmt-6.1.0
    
    Closes: https://bugs.gentoo.org/702104
    Package-Manager: Portage-2.3.81, Repoman-2.3.20
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 media-tv/kodi/files/kodi-18.5-cassert.patch | 42 +++++++++++++++++++++++++++++
 media-tv/kodi/kodi-18.5.ebuild              |  3 +++
 media-tv/kodi/kodi-9999.ebuild              |  4 ++-
 3 files changed, 48 insertions(+), 1 deletion(-)
Comment 6 Craig Andrews gentoo-dev 2019-12-07 04:23:24 UTC
*** Bug 702186 has been marked as a duplicate of this bug. ***
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2019-12-07 08:53:21 UTC
*** Bug 702184 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2019-12-11 02:05:58 UTC
The bug has been referenced in the following commit(s):

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

commit d14e8d6688ca9ed702bece312b95d1fc172d22e8
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2019-12-11 02:05:26 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2019-12-11 02:05:51 +0000

    media-tv/kodi: Fix compiling with >=dev-libs/libfmt-6.1.0
    
    Bug: https://bugs.gentoo.org/702104
    Package-Manager: Portage-2.3.81, Repoman-2.3.20
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 media-tv/kodi/kodi-18.4.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2019-12-13 04:15:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c31aee54110235efeb70e15857bceb868e22bcd

commit 9c31aee54110235efeb70e15857bceb868e22bcd
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2019-12-13 04:14:49 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2019-12-13 04:15:17 +0000

    media-tv/kodi: Remove patch from -9999 as upstream now includes it
    
    See https://github.com/xbmc/xbmc/pull/17000
    
    Bug: https://bugs.gentoo.org/702104
    Package-Manager: Portage-2.3.81, Repoman-2.3.20
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 media-tv/kodi/kodi-9999.ebuild | 3 ---
 1 file changed, 3 deletions(-)