Skip to content

Compilation Failure with Undefined References to LLVM and Clang Libraries #9

@tensilick

Description

@tensilick

After attempting to compile the knight project, I encountered several undefined references errors related to LLVM and Clang libraries. This issue prevents the successful compilation and linking of the knight tool. It seems like the project configuration might not correctly specify the dependencies or the paths to the LLVM and Clang libraries are not properly resolved.

Steps to Reproduce:

  1. Clone the knight project from the repository.
  2. Follow the installation instructions provided in the README.md.
  3. Run the build command: cmake --build .

Expected Behavior:

The knight project compiles successfully without any linker errors.

Actual Behavior:

Compilation fails with multiple errors similar to the following:

undefined reference to `llvm::sys::PrintStackTrace(llvm::raw_ostream&)'
undefined reference to `clang::FrontendOptions::FrontendOptions()'
...

Possible Solutions:

  • Ensure that the paths to LLVM and Clang libraries and include directories are correctly specified in the CMakeLists.txt or the environment variables.
  • Verify that the required LLVM and Clang libraries are installed and accessible.
  • Consider adding detailed instructions in the README.md regarding setting up LLVM and Clang dependencies for the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions