Bug 444820 - CMake build of master branch fails on Ubuntu 18.04
Summary: CMake build of master branch fails on Ubuntu 18.04
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: installer/packages (show other bugs)
Version: Git
Platform: unspecified Linux
: NOR critical
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 11:34 UTC by Robert Hairgrove
Modified: 2021-11-02 15:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
CMakeOutput.log (53.34 KB, text/x-log)
2021-11-02 11:34 UTC, Robert Hairgrove
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Hairgrove 2021-11-02 11:34:57 UTC
Created attachment 143129 [details]
CMakeOutput.log

SUMMARY
CMake build of master branch fails on Ubuntu 18.04. Umbrello ChangeLog version is version 2.14.0 (4.14.0).

STEPS TO REPRODUCE
1. Downloaded code as .zip package from https://invent.kde.org/sdk/umbrello
2. Followed the instructions in the file INSTALL
3. Run "cmake -DCMAKE_INSTALL_PREFIX=$HOME/umbrello -DCMAKE_BUILD_TYPE=Debug  ../"

OBSERVED RESULT
```
CMake Error at /usr/lib/llvm-10/lib/cmake/clang/ClangTargets.cmake:636 (message):
  The imported target "clangBasic" references the file

     "/usr/lib/llvm-10/lib/libclangBasic.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/llvm-10/lib/cmake/clang/ClangTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/cmake/clang-10/ClangConfig.cmake:19 (include)
  unittests/CMakeLists.txt:161 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/bob/umbrello-master/build/CMakeFiles/CMakeOutput.log".
```
CMakeOutput.log is attached.

EXPECTED RESULT
Successful build

SOFTWARE/OS VERSIONS
Ubuntu 18.04.5 LTS
Comment 1 Robert Hairgrove 2021-11-02 15:38:30 UTC
I needed to install libclang-10-dev, now it is compiling.

For some reason, this was not required a few months ago, since I had libclang-cpp10-dev (et al.) installed, and was able to build Umbrello with no problem... is this documented anywhere?