llvm-pass-skeleton icon indicating copy to clipboard operation
llvm-pass-skeleton copied to clipboard

Fatal Error For Attributes.gen

Open JodieAllen opened this issue 8 years ago • 6 comments
trafficstars

hi, when I make the program , I met the error - fatal error: llvm/IR/Attributes.gen: No such file or directory and I did not find Attributes.gen in my llvm-4.0.1. I've tried llvm-3.2 , but I failed too. So dose this program require a special version of llvm? Thank you very much!

JodieAllen avatar Aug 09 '17 00:08 JodieAllen

Hello! I don’t have an obvious diagnosis, but it’s true that the LLVM API does change a lot between versions. You might try using the one that was current when I committed this code. (I should then add a note to the README mentioning that version! Or if there’s a quick fix you can find to bring things up to date, that would be even more awesome.)

sampsyo avatar Aug 09 '17 02:08 sampsyo

@sampsyo ok, thanks a lot.

JodieAllen avatar Aug 09 '17 02:08 JodieAllen

@sampsyo Just a reminder, please add a README to this repo.

zhangysh1995 avatar Aug 22 '17 06:08 zhangysh1995

Hmm… @zhangysh1995, there is a README in this repo. If you meant to add a version indicator, that would be a good idea, but I'm depending on you and @JodieAllen to find out which version is the right one to recommend!

sampsyo avatar Aug 22 '17 13:08 sampsyo

@sampsyo ,@zhangysh1995, It can run on LLVM-3.8.1 and the version of my ubuntu is 16.04.

JodieAllen avatar Aug 30 '17 13:08 JodieAllen

Great; thank you! I've added a note to the README.

sampsyo avatar Aug 30 '17 14:08 sampsyo