Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925195 - kde-apps/dolphin-23.08.5 fails to compile (musl): kdirectorycontentscounterworker.cpp:(.text+0x2e4): undefined reference to `fts_read'
Summary: kde-apps/dolphin-23.08.5 fails to compile (musl): kdirectorycontentscounterwo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2024-02-21 18:28 UTC by Kostadin Shishmanov
Modified: 2024-02-22 10:09 UTC (History)
1 user (show)

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


Attachments
build log (build.log,246.89 KB, text/x-log)
2024-02-21 18:28 UTC, Kostadin Shishmanov
Details
patch from void linux (0001-Fix-musl-build-by-using-fts-from-external-library.patch,1.76 KB, patch)
2024-02-21 18:30 UTC, Kostadin Shishmanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2024-02-21 18:28:42 UTC
Created attachment 885626 [details]
build log

FAILED: bin/libdolphinprivate.so.5.0.0 
: && /usr/bin/x86_64-gentoo-linux-musl-g++ -fPIC -O2 -pipe -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always  -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-O1,--sort-common,--as-needed -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -shared -Wl,-soname,libdolphinprivate.so.5 -o bin/libdolphinprivate.so.5.0.0 src/CMakeFiles/dolphinprivate.dir/dolphinprivate_autogen/mocs_compilation.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kfileitemlistview.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kfileitemlistwidget.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kfileitemlisttostring.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kfileitemmodel.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kfileitemmodelrolesupdater.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemlistcontainer.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemlistcontroller.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemlistgroupheader.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemlistheader.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemlistselectionmanager.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemliststyleoption.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemlistview.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemlistviewaccessible.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemlistwidget.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemmodelbase.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kitemset.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kstandarditemlistgroupheader.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kstandarditemlistwidget.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/kstandarditemlistview.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kdirectorycontentscounter.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kdirectorycontentscounterworker.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kfileitemclipboard.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kfileitemmodelfilter.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistheaderwidget.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistkeyboardsearchmanager.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistroleeditor.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistrubberband.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistselectiontoggle.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistsizehintresolver.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistsmoothscroller.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistviewanimation.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kitemlistviewlayouter.cpp.o src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kpixmapmodifier.cpp.o src/CMakeFiles/dolphinprivate.dir/settings/applyviewpropsjob.cpp.o src/CMakeFiles/dolphinprivate.dir/settings/viewmodes/viewmodesettings.cpp.o src/CMakeFiles/dolphinprivate.dir/settings/viewpropertiesdialog.cpp.o src/CMakeFiles/dolphinprivate.dir/settings/viewpropsprogressinfo.cpp.o src/CMakeFiles/dolphinprivate.dir/selectionmode/actiontexthelper.cpp.o src/CMakeFiles/dolphinprivate.dir/views/dolphinfileitemlistwidget.cpp.o src/CMakeFiles/dolphinprivate.dir/views/dolphinitemlistview.cpp.o src/CMakeFiles/dolphinprivate.dir/views/dolphinnewfilemenuobserver.cpp.o src/CMakeFiles/dolphinprivate.dir/views/dolphinremoteencoding.cpp.o src/CMakeFiles/dolphinprivate.dir/views/dolphinview.cpp.o src/CMakeFiles/dolphinprivate.dir/views/dolphinviewactionhandler.cpp.o src/CMakeFiles/dolphinprivate.dir/views/draganddrophelper.cpp.o src/CMakeFiles/dolphinprivate.dir/views/versioncontrol/updateitemstatesthread.cpp.o src/CMakeFiles/dolphinprivate.dir/views/versioncontrol/versioncontrolobserver.cpp.o src/CMakeFiles/dolphinprivate.dir/views/viewmodecontroller.cpp.o src/CMakeFiles/dolphinprivate.dir/views/viewproperties.cpp.o src/CMakeFiles/dolphinprivate.dir/views/zoomlevelinfo.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphinremoveaction.cpp.o src/CMakeFiles/dolphinprivate.dir/middleclickactioneventfilter.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphinnewfilemenu.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphindebug.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphin_compactmodesettings.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphin_directoryviewpropertysettings.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphin_detailsmodesettings.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphin_iconsmodesettings.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphin_contentdisplaysettings.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphin_generalsettings.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphin_contextmenusettings.cpp.o src/CMakeFiles/dolphinprivate.dir/dolphin_versioncontrolsettings.cpp.o  -Wl,-rpath,/var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/bin:  bin/libdolphinvcs.so.5.0.0  /usr/lib/libKF5KIOFileWidgets.so.5.115.0  /usr/lib/libKF5NewStuffWidgets.so.5.115.0  /usr/lib/libKF5Parts.so.5.115.0  /usr/lib/libKF5Bookmarks.so.5.115.0  /usr/lib/libKF5NewStuff.so.5.115.0  /usr/lib/libKF5NewStuffCore.so.5.115.0  /usr/lib/libKF5Attica.so.5.115.0  /usr/lib/libKF5KIOWidgets.so.5.115.0  /usr/lib/libKF5KIOGui.so.5.115.0  /usr/lib/libKF5KIOCore.so.5.115.0  /usr/lib/libQt5Concurrent.so.5.15.12  /usr/lib/libKF5WindowSystem.so.5.115.0  /usr/lib/libX11.so  /usr/lib/libKF5Service.so.5.115.0  /usr/lib/libKF5JobWidgets.so.5.115.0  /usr/lib/libKF5Solid.so.5.115.0  /usr/lib/libKF5TextWidgets.so.5.115.0  /usr/lib/libKF5Completion.so.5.115.0  /usr/lib/libKF5SonnetUi.so.5.115.0  /usr/lib/libKF5XmlGui.so.5.115.0  /usr/lib/libKF5IconThemes.so.5.115.0  /usr/lib/libQt5Network.so.5.15.12  /usr/lib/libKF5ItemViews.so.5.115.0  /usr/lib/libKF5ConfigWidgets.so.5.115.0  /usr/lib/libKF5I18n.so.5.115.0  /usr/lib/libKF5WidgetsAddons.so.5.115.0  /usr/lib/libKF5Codecs.so.5.115.0  /usr/lib/libKF5ConfigGui.so.5.115.0  /usr/lib/libKF5ConfigCore.so.5.115.0  /usr/lib/libQt5Xml.so.5.15.12  /usr/lib/libKF5Auth.so.5.115.0  /usr/lib/libQt5Widgets.so.5.15.12  /usr/lib/libQt5Gui.so.5.15.12  /usr/lib/libKF5AuthCore.so.5.115.0  /usr/lib/libKF5CoreAddons.so.5.115.0  /usr/lib/libQt5DBus.so.5.15.12  /usr/lib/libQt5Core.so.5.15.12 && :
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: src/CMakeFiles/dolphinprivate.dir/kitemviews/private/kdirectorycontentscounterworker.cpp.o: in function `KDirectoryContentsCounterWorker::walkDir(QString const&, bool, unsigned int)':
kdirectorycontentscounterworker.cpp:(.text+0x2a4): undefined reference to `fts_open'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: kdirectorycontentscounterworker.cpp:(.text+0x2e4): undefined reference to `fts_read'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: kdirectorycontentscounterworker.cpp:(.text+0x374): undefined reference to `fts_set'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: kdirectorycontentscounterworker.cpp:(.text+0x37c): undefined reference to `fts_read'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: kdirectorycontentscounterworker.cpp:(.text+0x39e): undefined reference to `fts_close'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Comment 1 Kostadin Shishmanov 2024-02-21 18:30:00 UTC
Created attachment 885627 [details, diff]
patch from void linux

void linux already have a patch for this issue, and it works for me.

https://github.com/void-linux/void-packages/blob/master/srcpkgs/dolphin/patches/0001-Fix-musl-build-by-using-fts-from-external-library.patch
Comment 2 Andreas Sturmlechner gentoo-dev 2024-02-21 19:58:09 UTC
Key to fix these issues is that the patch is upstream, I'm not interested in Void's. Thankfully, it already is upstream.
Comment 3 Larry the Git Cow gentoo-dev 2024-02-22 10:09:06 UTC
The bug has been closed via the following commit(s):

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

commit cdda2b4470aa4bba18bf1650b4566a8eef3d16c5
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-02-21 21:51:24 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-02-22 10:04:26 +0000

    kde-apps/dolphin: Fix musl build
    
    Closes: https://bugs.gentoo.org/925195
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-apps/dolphin/dolphin-23.08.5.ebuild           |  2 +
 kde-apps/dolphin/files/dolphin-23.08.5-musl.patch | 64 +++++++++++++++++++++++
 2 files changed, 66 insertions(+)