Skip to content

Errors when building OCCA transpiler with with LLVM, Clang built from source #239

@kris-rowe

Description

@kris-rowe

When trying to build the occa transpiler with the latest LLVM, Clang built from the llvm-project source I ran into several issues.

  • The strict requirement for LLVM 17 needs to be relaxed here. I can check-out and build v17 if it is explicitly required, however we should document somewhere why it is required.
  • Several C++ related compiler errors, e.g.
 /home/krowe/OCCA/occa/deps/occa-transpiler/lib/core/transpiler_session/header_info.h:49:73: 
   error: non-virtual member function marked 'override' hides virtual member function
   49 |                             clang::SrcMgr::CharacteristicKind FileType) override;

Has anyone on the occa transpiler development team successfully tested the transpiler with a from-source LLVM build? If they have could they share any relevant flags, etc. that should be used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions