Error compiling the latest version

34 views
Skip to first unread message

Reactive-dev

unread,
Nov 18, 2016, 5:20:12 AM11/18/16
to llgo-dev
Hi all,

I had some problems making llgo, some of which I could solve by referring to other posts, thanks to your active members.

Currently, I'm having a problem in compiling llgo when I get the following errors:

# llvm.org/llgo/debug
/tmp/gopath317692277/src/llvm.org/llgo/debug/debug.go:253: unknown llvm.DIBasicType field 'AlignInBits' in struct literal
/tmp/gopath317692277/src/llvm.org/llgo/debug/debug.go:260: unknown llvm.DIBasicType field 'AlignInBits' in struct literal
/tmp/gopath317692277/src/llvm.org/llgo/debug/debug.go:286: cannot use uint64(d.sizes.Alignof(t) * 8) (type uint64) as type uint32 in field value
/tmp/gopath317692277/src/llvm.org/llgo/debug/debug.go:304: cannot use uint64(d.sizes.Alignof(t) * 8) (type uint64) as type uint32 in field value
/tmp/gopath317692277/src/llvm.org/llgo/debug/debug.go:312: cannot use uint64(d.sizes.Alignof(t) * 8) (type uint64) as type uint32 in field value
/tmp/gopath317692277/src/llvm.org/llgo/debug/debug.go:348: cannot use uint64(d.sizes.Alignof(t) * 8) (type uint64) as type uint32 in field value
tools/llgo/CMakeFiles/llgo.dir/build.make:220: recipe for target 'bin/llgo' failed
make[3]: *** [bin/llgo] Error 1
make[3]: Leaving directory '/home/user/llvm3/llvm/build'
CMakeFiles/Makefile2:39545: recipe for target 'tools/llgo/CMakeFiles/llgo.dir/all' failed
make[2]: *** [tools/llgo/CMakeFiles/llgo.dir/all] Error 2
make[2]: Leaving directory '/home/user/llvm3/llvm/build'
CMakeFiles/Makefile2:40496: recipe for target 'tools/llgo/CMakeFiles/llgoi.dir/rule' failed
make[1]: *** [tools/llgo/CMakeFiles/llgoi.dir/rule] Error 2
make[1]: Leaving directory '/home/user/llvm3/llvm/build'
Makefile:9544: recipe for target 'llgoi' failed
make: *** [llgoi] Error 2

Maybe it worth mentioning that I have cloned LLVM library via git mirrors.

Any clues?

Thanks

Andrew Wilkins

unread,
Nov 19, 2016, 8:39:06 PM11/19/16
to llgo...@googlegroups.com
The build is currently broken for everyone. There have been some recent changes to the LLVM bindings' DIBuilder wrapper, but no matching update to llgo. I'll try to get to it soon. Feel free to send a patch if you're interested in fixing it.

Cheers,
Andrew
Reply all
Reply to author
Forward
0 new messages