gollvm
gollvm copied to clipboard
Bug?
~$ go get -tags byollvm github.com/go-llvm/llvm
github.com/go-llvm/llvm
In file included from /usr/include/llvm-c/Types.h:17:0, from /usr/include/llvm-c/Analysis.h:22, from go/src/github.com/go-llvm/llvm/analysis.go:4: /usr/include/llvm/Support/DataTypes.h:57:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
^ /usr/include/llvm/Support/DataTypes.h:61:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"
error "Must #define __STDC_CONSTANT_MACROS before " \
^
guest@system:~$ export CGO_CFLAGS=llvm-config --cflags
guest@system:~$ export CGO_LDFLAGS="llvm-config --ldflags
-Wl,-Lllvm-config --libdir
-lLLVM-llvm-config --version
"
guest@system:~$ go get -tags byollvm github.com/go-llvm/llvm# github.com/go-llvm/llvm
could not determine kind of name for C.LLVMDisposeMessage
guest@system:~$ go get -tags byollvm github.com/go-llvm/llvm
github.com/go-llvm/llvm
could not determine kind of name for C.LLVMDisposeMessage
how fix?
I'm not maintaining the project anymore, it was moved to http://llvm.org/ guys. They have their own places for questions and bug reports, which I'm not aware of.