[ 90%] Built target doc-index-cache-bz2 In file included from /app/src/skanlite/src/main.cpp:33:0: /app/src/skanlite/src/version.h:1:3: error: invalid preprocessing directive #This # This is a basic version file for the Config-mode of find_package(). ^ /app/src/skanlite/src/version.h:2:3: error: invalid preprocessing directive #It # It is used by write_basic_package_version_file() as input file for configure_file() ^ /app/src/skanlite/src/version.h:3:3: error: invalid preprocessing directive #to # to create a version-file which can be installed along a config.cmake file. ^ /app/src/skanlite/src/version.h:5:3: error: invalid preprocessing directive #The # The created file sets PACKAGE_VERSION_EXACT if the current version string and ^ /app/src/skanlite/src/version.h:6:3: error: invalid preprocessing directive #the # the requested version string are exactly the same and it sets ^ /app/src/skanlite/src/version.h:7:3: error: invalid preprocessing directive #PACKAGE_VERSION_COMPATIBLE # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version. ^ /app/src/skanlite/src/version.h:8:3: error: invalid preprocessing directive #The # The variable CVF_VERSION must be set before calling configure_file(). ^ /app/src/skanlite/src/version.h:21:6: warning: "the" is not defined [-Wundef] # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: ^ /app/src/skanlite/src/version.h:21:10: error: missing binary operator before token "installed" # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: ^ /app/src/skanlite/src/version.h:21:44: warning: missing terminating ' character [enabled by default] # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: ^ /app/src/skanlite/src/version.h:21:0: error: unterminated #if # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: ^ /app/src/skanlite/src/version.h:10:4: error: expected constructor, destructor, or type conversion before '(' token set(PACKAGE_VERSION "5.1.0") ^ make[2]: *** [src/CMakeFiles/skanlite.dir/main.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [src/CMakeFiles/skanlite.dir/all] Error 2 make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. Compile entire dependency tree and skanlite from source. 2. 3. Actual Results: FTBFS Expected Results: Successful compile Please see above build log for entire build. The OS is Ubuntu trusty 14.04.3
Seems to have fixed itself.
We're hitting this on all architectures (x86_64, x86, ppc64, ppc) trying to build Skanlite 2.0.1 from source on Adélie.
Hmm.. strange. Skanlite builds fine here on KDE Neon. There should not be a file named version.h in skanlite/src/ Can you attach the version.h file? Are you doing an in-tree or out-of-tree build? Regards, Kåre
It's the same contents as version.h.cmake and it is an in-tree build.
Adelie now packages 2.2.0 (https://pkg.adelielinux.org/current/skanlite) so presumably this went away somewhere.