Summary: | Build failure with gcc 9 | ||
---|---|---|---|
Product: | [Applications] kdenlive | Reporter: | Luca Beltrame <lbeltrame> |
Component: | Setup & Installation | Assignee: | Vincent PINON <vpinon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christophe, faure, fritzibaby, rikmills, vonreth |
Priority: | NOR | Flags: | fritzibaby:
Brainstorm+
|
Version: | git-master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kde/kdenlive/commit/63f232560ec2fd98b266f2177b37c51c4ceb1428 | Version Fixed In: | |
Sentry Crash Report: |
Description
Luca Beltrame
2019-10-25 04:57:45 UTC
David, Hannah, I guess this is another issue caused by the recent ECM changes Same build failures on. KDE CI: https://build.kde.org/job/Applications/job/kdenlive/job/kf5-qt5%20SUSEQt5.12/164/console Neon CI: https://build.neon.kde.org/job/bionic_unstable_forks_kdenlive_bin_amd64/231/console Also fails on Kubuntu CI. (In reply to Christophe Giboudeaux from comment #1) > David, Hannah, I guess this is another issue caused by the recent ECM changes Shouldn't that be fixed now by https://github.com/KDE/extra-cmake-modules/commit/fd6e98ba6de89a7f08364bb2ec096a5310c1cde8 ? (In reply to Hannah von Reth from comment #3) > Shouldn't that be fixed now by > https://github.com/KDE/extra-cmake-modules/commit/ > fd6e98ba6de89a7f08364bb2ec096a5310c1cde8 ? The builds I linked/referred to in #2 are all using ECM built including that commit. (In reply to Hannah von Reth from comment #3) > (In reply to Christophe Giboudeaux from comment #1) > > David, Hannah, I guess this is another issue caused by the recent ECM changes > > Shouldn't that be fixed now by > https://github.com/KDE/extra-cmake-modules/commit/ > fd6e98ba6de89a7f08364bb2ec096a5310c1cde8 ? Not in this case. previously, ECM was setting '-std=iso9899:1990', now it sets C90 which defines '-std=c90' and that overwrites `set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --std=c99")` in kdenlive/src/lib/external/media_ctrl/CMakeLists.txt It can be fixed with: diff --git a/src/lib/external/media_ctrl/CMakeLists.txt b/src/lib/external/media_ctrl/CMakeLists.txt index 24870ad3b..ec8e2fb71 100644 --- a/src/lib/external/media_ctrl/CMakeLists.txt +++ b/src/lib/external/media_ctrl/CMakeLists.txt @@ -1,10 +1,10 @@ if(HAVE_LINUX_INPUT_H) # Create a static library media_ctrl - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --std=c99") include_directories( ${CMAKE_BINARY_DIR} ) add_library(media_ctrl STATIC mediactrl.c ) + set_target_properties(media_ctrl PROPERTIES C_STANDARD 99) endif() but that means the ECM backward compatibility is broken https://invent.kde.org/kde/kdenlive/commit/1a26aa5032afbb47442b23bf5230661b92a00a23 was pushed, but without a review. According to https://invent.kde.org/kde/kdenlive/-/jobs/20790/ it also fails to build the 19.08 branch. Could someone backport if this is the correct fix? Git commit 63f232560ec2fd98b266f2177b37c51c4ceb1428 by Vincent Pinon, on behalf of Yuri Chornoivan. Committed on 05/11/2019 at 06:59. Pushed by vpinon into branch 'Applications/19.08'. Try to make it compile with gcc 9 Signed-off-by: Vincent Pinon <vpinon@kde.org> M +2 -1 src/lib/external/media_ctrl/mediactrl.c https://invent.kde.org/kde/kdenlive/commit/63f232560ec2fd98b266f2177b37c51c4ceb1428 |