Re: Unable to compile KWidgetsAddons
On Fri, Apr 06, 2018 at 08:05:21AM -0600, Nate Graham wrote: > I'm somewhat embarrassed to admit that I was doing an in-source build > and no amount of `make clean` and `rm CMakeCache.txt` fixed the problem, > but doing a proper out-of-source build worked just fine. That'll teach me... > > Nate That happens to the best of us and can be difficult to figure out. For cleaning accidents in a git source directory I have the following command memorized: "git clean -dfx" but you would want to be careful about using it so that you don't accidentally delete any of your pending work or associated important files that you might have in the source directory! Regards, - Michael Pyne
Re: Unable to compile KWidgetsAddons
I'm somewhat embarrassed to admit that I was doing an in-source build and no amount of `make clean` and `rm CMakeCache.txt` fixed the problem, but doing a proper out-of-source build worked just fine. That'll teach me... Nate On 04/06/2018 02:58 AM, Kevin Funk wrote: On Thursday, 29 March 2018 15:53:25 CEST Nate Graham wrote: In trying to test out a KWidgetsAddons patch, I find that I'm unable to compile it on KDE Neon dev unstable the code due to a CMake error: CMake Error in autotests/CMakeLists.txt: No known features for CXX compiler "GNU" version 5.4.0. Full output available at https://paste.kde.org/piyy4wsnl Heya, FYI: The compile-feature [1] is used by the CMake Config files installed by Qt. For Qt it is used to figure out when and how to pass the i.e. the resp. `- std=...` flag for GNU-like compilers for users of Qt. Usually you get that kind of error in case you're trying to use an unsupported compiler for which CMake doesn't know the availability of the C++ features. A typical example is Android GCC. I'm surprised you get that error by a standard GCC...? Would be nice to figure out what's going wrong. Maybe `cmake --trace` or `cmake --debug-output` can help. Please check the following link for a work-around: https://stackoverflow.com/a/40256862/592636 [1] https://cmake.org/cmake/help/v3.8/manual/cmake-compile-features.7.html Regards, Kevin My g++ version looks okay: $ g++ --version g++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. Nate
Re: Unable to compile KWidgetsAddons
On Thursday, 29 March 2018 15:53:25 CEST Nate Graham wrote: > In trying to test out a KWidgetsAddons patch, I find that I'm unable to > compile it on KDE Neon dev unstable the code due to a CMake error: > > > CMake Error in autotests/CMakeLists.txt: >No known features for CXX compiler > >"GNU" > >version 5.4.0. > > Full output available at https://paste.kde.org/piyy4wsnl Heya, FYI: The compile-feature [1] is used by the CMake Config files installed by Qt. For Qt it is used to figure out when and how to pass the i.e. the resp. `- std=...` flag for GNU-like compilers for users of Qt. Usually you get that kind of error in case you're trying to use an unsupported compiler for which CMake doesn't know the availability of the C++ features. A typical example is Android GCC. I'm surprised you get that error by a standard GCC...? Would be nice to figure out what's going wrong. Maybe `cmake --trace` or `cmake --debug-output` can help. Please check the following link for a work-around: https://stackoverflow.com/a/40256862/592636 [1] https://cmake.org/cmake/help/v3.8/manual/cmake-compile-features.7.html Regards, Kevin > My g++ version looks okay: > > $ g++ --version > g++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 > Copyright (C) 2015 Free Software Foundation, Inc. > > > Nate -- Kevin Funk | kf...@kde.org | http://kfunk.org signature.asc Description: This is a digitally signed message part.
Re: Unable to compile KWidgetsAddons
El dissabte, 31 de març de 2018, a les 23:30:31 CEST, Nate Graham va escriure: > On 03/31/2018 03:28 PM, Albert Astals Cid wrote: > > El dissabte, 31 de març de 2018, a les 23:16:12 CEST, Nate Graham va escriure: > >> On 03/31/2018 03:05 PM, Albert Astals Cid wrote: > >>> El dissabte, 31 de març de 2018, a les 22:56:26 CEST, Nate Graham va > > > > escriure: > On 03/31/2018 02:55 PM, Albert Astals Cid wrote: > > El dijous, 29 de març de 2018, a les 15:53:25 CEST, Nate Graham va > >>> > >>> escriure: > >> In trying to test out a KWidgetsAddons patch, I find that I'm unable > >> to > > > >> compile it on KDE Neon dev unstable the code due to a CMake error: > > Have you tried a clean build? > >>> > >>> Can you paste.kde.org the full log? > >> > >> https://paste.kde.org/pjqbr1rvr > > > > That is not a full log from a clean build. > > Well, I don't get to the build part because this is an error in cmake. I'm asking for the full cmake log after cleaning your build directory, because the first line of a cmake log should be (kdesrc) tsdgeos@xps:~/devel/kde/kwidgetsaddons/build:master$ cmake .. -- The C compiler identification is GNU 7.3.1 not -- Looking at your cmake log i'm 97% sure it's not a clean build directory you're using. Cheers, Albert > > Nate
Re: Unable to compile KWidgetsAddons
On Sat, Mar 31, 2018 at 03:16:12PM -0600, Nate Graham wrote: > On 03/31/2018 03:05 PM, Albert Astals Cid wrote: > > El dissabte, 31 de març de 2018, a les 22:56:26 CEST, Nate Graham va > > escriure: > >> On 03/31/2018 02:55 PM, Albert Astals Cid wrote: > >>> El dijous, 29 de març de 2018, a les 15:53:25 CEST, Nate Graham va > > escriure: > In trying to test out a KWidgetsAddons patch, I find that I'm unable to > >>> > compile it on KDE Neon dev unstable the code due to a CMake error: > >>> Have you tried a clean build? > > > > Can you paste.kde.org the full log? > > https://paste.kde.org/pjqbr1rvr This feels like either a CMake bug, or a bug in the CMake *Config.cmake files that get installed into $PREFIX/lib/cmake. But I don't really have enough CMake expertise to be able to pin down why it doesn't understand what compiler features are available for gcc or what code is asking for these features in the first place. Regards, - Michael Pyne
Re: Unable to compile KWidgetsAddons
On 03/31/2018 03:28 PM, Albert Astals Cid wrote: El dissabte, 31 de març de 2018, a les 23:16:12 CEST, Nate Graham va escriure: On 03/31/2018 03:05 PM, Albert Astals Cid wrote: El dissabte, 31 de març de 2018, a les 22:56:26 CEST, Nate Graham va escriure: On 03/31/2018 02:55 PM, Albert Astals Cid wrote: El dijous, 29 de març de 2018, a les 15:53:25 CEST, Nate Graham va escriure: In trying to test out a KWidgetsAddons patch, I find that I'm unable to compile it on KDE Neon dev unstable the code due to a CMake error: Have you tried a clean build? Can you paste.kde.org the full log? https://paste.kde.org/pjqbr1rvr That is not a full log from a clean build. Well, I don't get to the build part because this is an error in cmake. Nate
Re: Unable to compile KWidgetsAddons
El dissabte, 31 de març de 2018, a les 23:16:12 CEST, Nate Graham va escriure: > On 03/31/2018 03:05 PM, Albert Astals Cid wrote: > > El dissabte, 31 de març de 2018, a les 22:56:26 CEST, Nate Graham va escriure: > >> On 03/31/2018 02:55 PM, Albert Astals Cid wrote: > >>> El dijous, 29 de març de 2018, a les 15:53:25 CEST, Nate Graham va > > > > escriure: > In trying to test out a KWidgetsAddons patch, I find that I'm unable to > >>> > compile it on KDE Neon dev unstable the code due to a CMake error: > >>> Have you tried a clean build? > > > > Can you paste.kde.org the full log? > > https://paste.kde.org/pjqbr1rvr That is not a full log from a clean build. Cheers, Albert > > Nate
Re: Unable to compile KWidgetsAddons
On 03/31/2018 03:05 PM, Albert Astals Cid wrote: El dissabte, 31 de març de 2018, a les 22:56:26 CEST, Nate Graham va escriure: On 03/31/2018 02:55 PM, Albert Astals Cid wrote: El dijous, 29 de març de 2018, a les 15:53:25 CEST, Nate Graham va escriure: In trying to test out a KWidgetsAddons patch, I find that I'm unable to compile it on KDE Neon dev unstable the code due to a CMake error: Have you tried a clean build? Can you paste.kde.org the full log? https://paste.kde.org/pjqbr1rvr Nate
Re: Unable to compile KWidgetsAddons
El dissabte, 31 de març de 2018, a les 22:56:26 CEST, Nate Graham va escriure: > On 03/31/2018 02:55 PM, Albert Astals Cid wrote: > > El dijous, 29 de març de 2018, a les 15:53:25 CEST, Nate Graham va escriure: > >> In trying to test out a KWidgetsAddons patch, I find that I'm unable to > > > >> compile it on KDE Neon dev unstable the code due to a CMake error: > > Have you tried a clean build? Can you paste.kde.org the full log? Cheers, Albert > > Yes. > > Nate
Re: Unable to compile KWidgetsAddons
On 03/31/2018 02:55 PM, Albert Astals Cid wrote: El dijous, 29 de març de 2018, a les 15:53:25 CEST, Nate Graham va escriure: In trying to test out a KWidgetsAddons patch, I find that I'm unable to compile it on KDE Neon dev unstable the code due to a CMake error: Have you tried a clean build? Yes. Nate
Re: Unable to compile KWidgetsAddons
El dijous, 29 de març de 2018, a les 15:53:25 CEST, Nate Graham va escriure: > In trying to test out a KWidgetsAddons patch, I find that I'm unable to > compile it on KDE Neon dev unstable the code due to a CMake error: Have you tried a clean build? Cheers, Albert > > > CMake Error in autotests/CMakeLists.txt: >No known features for CXX compiler > >"GNU" > >version 5.4.0. > > Full output available at https://paste.kde.org/piyy4wsnl > > > My g++ version looks okay: > > $ g++ --version > g++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 > Copyright (C) 2015 Free Software Foundation, Inc. > > > Nate
Re: Unable to compile KWidgetsAddons
On 03/29/2018 08:06 AM, David Edmundson wrote: Do you have that error for just that one framework? Just for this framework. > Make sure you've fetched any relevant build deps. I have all the build deps that the Neon packaging knows about, at least: $ sudo apt build-dep kwidgetsaddons Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done 0 upgraded, 0 newly installed, 0 to remove and 214 not upgraded. Nate
Re: Unable to compile KWidgetsAddons
Do you have that error for just that one framework? Make sure you've fetched any relevant build deps.
Unable to compile KWidgetsAddons
In trying to test out a KWidgetsAddons patch, I find that I'm unable to compile it on KDE Neon dev unstable the code due to a CMake error: CMake Error in autotests/CMakeLists.txt: No known features for CXX compiler "GNU" version 5.4.0. Full output available at https://paste.kde.org/piyy4wsnl My g++ version looks okay: $ g++ --version g++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. Nate