https://bugs.kde.org/show_bug.cgi?id=432991

            Bug ID: 432991
           Summary: Does not compile with gcc 8.3 due to fs being
                    experimental
           Product: ksysguard
           Version: 5.21.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: libksysguard
          Assignee: ksysguard-b...@kde.org
          Reporter: leszek.les...@web.de
                CC: plasma-b...@kde.org
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to