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

llvm/Transforms/IPO/PassManagerBuilder.h: No such file or directory #2657

Open
Kazade opened this issue Apr 17, 2024 · 3 comments
Open

llvm/Transforms/IPO/PassManagerBuilder.h: No such file or directory #2657

Kazade opened this issue Apr 17, 2024 · 3 comments

Comments

@Kazade
Copy link

Kazade commented Apr 17, 2024

I've just tried to compile on Fedora 39, and I've hit this error:

evaluator.cpp:39:10: fatal error: llvm/Transforms/IPO/PassManagerBuilder.h: No such file or directory
   39 | #include <llvm/Transforms/IPO/PassManagerBuilder.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

According to this LLVM issue, this header file was removed in LLVM 17. Presumably lpython needs to be updated to support later LLVM?

I couldn't find anyone else reporting this so I don't know if it's something I've done wrong..

@carlkl
Copy link

carlkl commented Apr 29, 2024

Found the same error trying to build on msys2/ucrt64. The llvm version in this environment is llvm-18.1.4

another problem is, that

#include <llvm/Transforms/Vectorize.h>

has to be replace with

#include <llvm/Transforms/Vectorize/LoopVectorize.h>
#include <llvm/Transforms/Vectorize/SLPVectorizer.h>

I didn't found an reference of which llvm has to be used right now.

@certik
Copy link
Contributor

certik commented Apr 29, 2024

Yes, we don't support LLVM 17 yet. All our frontends have to be update for it.

@carlkl
Copy link

carlkl commented May 1, 2024

see #2678 for a first test with llvm-15 on msys2-clang64.

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

No branches or pull requests

3 participants