Bug 369433 - FTBFS invalid prepsocessing directive on comments in header.
Summary: FTBFS invalid prepsocessing directive on comments in header.
Status: RESOLVED FIXED
Alias: None
Product: Skanlite
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kåre Särs
URL: http://aci.pangea.pub/job/appimage-sk...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-27 16:38 UTC by Scarlett Moore
Modified: 2021-06-14 09:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scarlett Moore 2016-09-27 16:38:40 UTC
[ 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
Comment 1 Scarlett Moore 2016-12-01 13:48:52 UTC
Seems to have fixed itself.
Comment 2 A. Wilcox (awilfox) 2018-03-13 21:29:54 UTC
We're hitting this on all architectures (x86_64, x86, ppc64, ppc) trying to build Skanlite 2.0.1 from source on Adélie.
Comment 3 Kåre Särs 2018-03-14 06:45:10 UTC
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
Comment 4 A. Wilcox (awilfox) 2018-03-15 03:02:10 UTC
It's the same contents as version.h.cmake and it is an in-tree build.
Comment 5 groot 2021-06-14 09:10:56 UTC
Adelie now packages 2.2.0 (https://pkg.adelielinux.org/current/skanlite) so presumably this went away somewhere.