Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pinned clang to clang-14 #1487

Closed
wants to merge 4 commits into from
Closed

Update pinned clang to clang-14 #1487

wants to merge 4 commits into from

Conversation

greg7mdp
Copy link
Contributor

@greg7mdp greg7mdp commented Aug 12, 2023

I tried upgrading the clang version we use to build to 14.0 (to match the default in Ubuntu 22.04).

After jumping over some hurdles, I had the following errors when building leap:

/leap/libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMJIT.cpp:24:10: fatal error: 'llvm/ExecutionEngine/Orc/LambdaResolver.h' file not found
#include "llvm/ExecutionEngine/Orc/LambdaResolver.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /leap/libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMEmitIR.cpp:43:
/leap/deps/clang-14.0.0/include/llvm/Transforms/InstCombine/InstCombine.h:42:41: error: base class has incomplete type
class InstructionCombiningPass : public FunctionPass {
                                 ~~~~~~~^~~~~~~~~~~~
/leap/deps/clang-14.0.0/include/llvm/Analysis/Passes.h:18:9: note: forward declaration of 'llvm::FunctionPass'
  class FunctionPass;
        ^
In file included from /leap/libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMEmitIR.cpp:43:
/leap/deps/clang-14.0.0/include/llvm/Transforms/InstCombine/InstCombine.h:52:25: error: unknown type name 'AnalysisUsage'
  void getAnalysisUsage(AnalysisUsage &AU) const override;
                        ^
...

@greg7mdp greg7mdp marked this pull request as draft August 12, 2023 18:30
@greg7mdp greg7mdp closed this Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant