Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,154
    • Issues 4,154
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #16539
Closed
Open
Issue created Jan 04, 2017 by Janick Martinez Esturo@ph03

Server Mode: CMake process crashes when running into INTERFACE_LIBRARY targets

In a complex project the cmake server crashes with

cmake: /home/janickm/.local/pkg/cmake/Source/cmGeneratorTarget.cxx:954: void cmGeneratorTarget::GetSourceFiles(std::vector<std::__cxx11::basic_string<char> >&, const string&) const: Assertion `this->GetType() != cmState::INTERFACE_LIBRARY' failed.

using

$ cmake --version
cmake version 3.7.1

for the codemodel message type.

The project makes heavy use of interface libraries, but works fine in non-server mode.


The following commands are used

$ cmake -E server --experimental --debug
[== "CMake Server" ==[
{
    "buildDirectory": "/home/../<cmake-project>/build",
    "cookie": "",
    "generator": "Ninja",
    "major": 1,
    "protocolVersion": {
        "major": 1
    },
    "sourceDirectory": "/home/../<cmake-project>",
    "type": "handshake"
}
]== "CMake Server" ==]
[== "CMake Server" ==[
{
    "cacheArguments": [],
    "type": "configure"
}
]== "CMake Server" ==]
[== "CMake Server" ==[
{"type":"compute"}
]== "CMake Server" ==]
[== "CMake Server" ==[
{"type":"codemodel"}
]== "CMake Server" ==]

This was originally reported at https://bugreports.qt.io/browse/QTCREATORBUG-17496

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking