Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 807763

Summary: media-sound/cantata-2.4.2 - .../work/cantata-2.4.2/gui/main.cpp:264:10: fatal error: execinfo.h: No such file or directory (on musl)
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: Normal Keywords: PATCH, UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/CDrummond/cantata/pull/1732
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: build.log
emerge --info
cantata-2.4.2-main-musl.patch

Description ernsteiswuerfel archtester 2021-08-11 20:49:20 UTC
Created attachment 732331 [details]
build.log

[...]
[350/376] /usr/bin/x86_64-gentoo-linux-musl-g++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -Icantata_autogen/include -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2 -I. -I/usr/include/taglib -I/usr/local/include -I/usr/include/neon -I/usr/include/libxml2 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtDBus  -std=c++11 -Os -march=x86-64 -mtune=k8 -msse3 -pipe -fPIE   -I/usr/include/taglib -fexceptions -UQT_NO_EXCEPTIONS -fPIC -std=gnu++11 -MD -MT CMakeFiles/cantata.dir/gui/main.cpp.o -MF CMakeFiles/cantata.dir/gui/main.cpp.o.d -o CMakeFiles/cantata.dir/gui/main.cpp.o -c /var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/gui/main.cpp
FAILED: CMakeFiles/cantata.dir/gui/main.cpp.o 
/usr/bin/x86_64-gentoo-linux-musl-g++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -Icantata_autogen/include -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/3rdparty -I/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2 -I. -I/usr/include/taglib -I/usr/local/include -I/usr/include/neon -I/usr/include/libxml2 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtDBus  -std=c++11 -Os -march=x86-64 -mtune=k8 -msse3 -pipe -fPIE   -I/usr/include/taglib -fexceptions -UQT_NO_EXCEPTIONS -fPIC -std=gnu++11 -MD -MT CMakeFiles/cantata.dir/gui/main.cpp.o -MF CMakeFiles/cantata.dir/gui/main.cpp.o.d -o CMakeFiles/cantata.dir/gui/main.cpp.o -c /var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/gui/main.cpp
/var/tmp/portage/media-sound/cantata-2.4.2/work/cantata-2.4.2/gui/main.cpp:264:10: fatal error: execinfo.h: No such file or directory
  264 | #include <execinfo.h>
      |          ^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Comment 1 ernsteiswuerfel archtester 2021-08-11 20:50:14 UTC
Created attachment 732334 [details]
emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2021-08-12 18:01:47 UTC
gui/main.cpp part of the following VoidLinux patch might help:

https://github.com/void-linux/void-packages/blob/master/srcpkgs/cantata/patches/musl.patch
Comment 3 Andreas Sturmlechner gentoo-dev 2021-08-12 18:13:51 UTC
Created attachment 732489 [details, diff]
cantata-2.4.2-main-musl.patch
Comment 4 ernsteiswuerfel archtester 2021-08-14 14:50:22 UTC
With this patch cantata finishes building now. Thanks!
Comment 5 Larry the Git Cow gentoo-dev 2021-08-14 17:09:51 UTC
The bug has been closed via the following commit(s):

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

commit 2c542c510f16890a3c77659123a0e2a42845d28e
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-08-14 16:43:24 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-08-14 17:07:53 +0000

    media-sound/cantata: Fix build with musl libc again
    
    See also: https://github.com/CDrummond/cantata/pull/1732
    
    Reported-by: ernsteiswuerfel <erhard_f@mailbox.org>
    Tested-by: ernsteiswuerfel <erhard_f@mailbox.org>
    Closes: https://bugs.gentoo.org/807763
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/cantata/cantata-2.4.2.ebuild           | 12 ++++----
 .../cantata/files/cantata-2.4.2-main-musl.patch    | 34 ++++++++++++++++++++++
 2 files changed, 40 insertions(+), 6 deletions(-)