I am trying to get the LLVM package - documented here - which provides bindings for Go to run properly.
The package is importing but a file called analysis.go is complaining:
[go] fatal error: llvm-c/Analysis.h: No such file or directory
This links to line 16 in analysis.go:
#include "llvm-c/Analysis.h" // If you are getting an error here read bindings/go/README.txt
This line is inside of a comment block. I have already read the readme which instructs me to run a shell script called build.sh with a list of flags:
build.sh -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD=host -DBUILD_SHARED_LIBS=ON
I have done this multiple times. When I first tried to solve this problem, there was another related problem which was that llvm_config.go was empty (there was no code) and so golang was complaining that:
llvm_config.go:1:1: expected 'package', found 'EOF'
Golang isn't throwing an error anymore for this although the file is still empty - the error might have gone away after I ran the shell script with flags but I can't be sure.
Can anyone suggest what I could do to solve these problems? If you need more details I will happily oblige. I am a self taught hobbyist so apologies if this is a stupid question.