Bug 432991 - Does not compile with gcc 8.3 due to fs being experimental
Summary: Does not compile with gcc 8.3 due to fs being experimental
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksysguard
Classification: Unmaintained
Component: libksysguard (show other bugs)
Version: 5.21.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-15 23:47 UTC by Leszek Lesner
Modified: 2024-09-23 20:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leszek Lesner 2021-02-15 23:47:30 UTC
SUMMARY
Linking fails when trying to compile with gcc-8.3 as the filesystem extension is experimental. 

STEPS TO REPRODUCE
1. Try compiling with gcc-8.3

OBSERVED RESULT
Linking failure with processcore

EXPECTED RESULT
Links fine

SOFTWARE/OS VERSIONS
Linux: Debian GNU/Linux 10
(available in About System)
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.80
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Adding the filesystem target manually to the CMakeLists.txt of processcore
like /usr/lib/gcc/x86_64-linux-gnu/8/libstdc++fs.a fixes the issue

processcore/CMakeLists.txt looks like this then

target_link_libraries(processcore
   PUBLIC
    Qt::Core
    KSysGuard::Formatter
   PRIVATE
    KF5::I18n
    KF5::AuthCore
    KF5::CoreAddons
    KF5::Service
    ${ZLIB_LIBRARIES}
+   /usr/lib/gcc/x86_64-linux-gnu/8/libstdc++fs.a
)

See linking error here: https://pastebin.com/6BZ5vdHv
Comment 1 Christoph Cullmann 2024-09-23 20:59:47 UTC
ksysguard is no longer maintained, in Plasma 6 there is the Plasma system monitor for this task.

If your issue still happens with the Plasma 6 replacement, please re-open and we can move this bug to the new product, thanks!