unable to compile llgo

138 views
Skip to first unread message

t.j.a....@gmail.com

unread,
Nov 10, 2017, 4:26:28 AM11/10/17
to llgo-dev
Hello everyone,

when I try to compile llgo according to http://llvm.org/svn/llvm-project/llgo/trunk/README.TXT , I get the error message

[ 94%] Built target clang-func-mapping
[ 94%] Built target scan-build
[ 94%] Built target scan-view
make[2]: *** No rule to make target 'bin/llvm-go', needed by 'bin/cc-wrapper'. Stop.
make[1]: *** [CMakeFiles/Makefile2:61473: tools/llgo/CMakeFiles/cc-wrapper.dir/all] Error 2
make: *** [Makefile:152: all] Error 2


has anyone experienced similar problems?

Best

Andrew Wilkins

unread,
Nov 12, 2017, 7:10:13 PM11/12/17
to llgo...@googlegroups.com
Do you have Go installed on your machine?
Can you please include the full output of cmake?
 
Best

--
You received this message because you are subscribed to the Google Groups "llgo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to llgo-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

t.j.a....@gmail.com

unread,
Nov 13, 2017, 8:29:36 AM11/13/17
to llgo-dev
Hi Andrew,

in the end I ran the make command within the llvm-go folder of llvm-build/tools, which brought the compilation a bit further. But I am stuck at another step now. Here's the complete output, when I try to compile:

https://pastebin.com/UVwvg6uA

where exactly do I need to add the -fPIC flag?

I'm running Archlinux with
# go version
go version go1.9.2 linux/amd64

best,
Tobias

Andrew Wilkins

unread,
Nov 13, 2017, 11:57:39 PM11/13/17
to llgo...@googlegroups.com
On Mon, 13 Nov 2017 at 21:29 <t.j.a....@gmail.com> wrote:
Hi Andrew,

in the end I ran the make command within the llvm-go folder of llvm-build/tools, which brought the compilation a bit further. But I am stuck at another step now. Here's the complete output, when I try to compile:

https://pastebin.com/UVwvg6uA

where exactly do I need to add the -fPIC flag?

I don't know what's stopping -fPIC from being added, or where exactly you need to add it in, but the issue appears to be specific to building in 32-bit mode. You'll need to do a 64-bit build. Sorry I can't be of more help.

I'm running Archlinux with
# go version
go version go1.9.2 linux/amd64

best,
Tobias

Andrew Wilkins

unread,
Nov 14, 2017, 12:00:05 AM11/14/17
to llgo...@googlegroups.com
On Tue, 14 Nov 2017 at 12:57 Andrew Wilkins <axw...@gmail.com> wrote:
On Mon, 13 Nov 2017 at 21:29 <t.j.a....@gmail.com> wrote:
Hi Andrew,

in the end I ran the make command within the llvm-go folder of llvm-build/tools, which brought the compilation a bit further. But I am stuck at another step now. Here's the complete output, when I try to compile:

https://pastebin.com/UVwvg6uA

where exactly do I need to add the -fPIC flag?

I don't know what's stopping -fPIC from being added, or where exactly you need to add it in, but the issue appears to be specific to building in 32-bit mode. You'll need to do a 64-bit build. Sorry I can't be of more help.

Sorry, I take that back. I was looking at my build outputs wrong, and I see now it's happening on a 64-bit build on Arch. Still not sure what's going on though.

t.j.a....@gmail.com

unread,
Nov 14, 2017, 3:42:37 AM11/14/17
to llgo-dev
I started a fresh compilation to get rid of all potential artifacts. Now it stops with a different error message

https://pastebin.com/cXaTEgr4

Any ideas?

Andrew Wilkins

unread,
Nov 15, 2017, 5:30:18 AM11/15/17
to llgo...@googlegroups.com
On Tue, 14 Nov 2017 at 16:42 <t.j.a....@gmail.com> wrote:
I started a fresh compilation to get rid of all potential artifacts. Now it stops with a different error message

https://pastebin.com/cXaTEgr4

Any ideas?

No, but you might find more information in  /home/tobias/i_ti_eytsch/mt/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-out.log

Sorry, I don't know what the issue is, and don't have time to devote at the moment. If you get to the bottom of it, please let us know and/or send a patch.

him...@aryaparsi.com

unread,
Dec 10, 2017, 2:18:03 AM12/10/17
to llgo-dev
Data point: I ran into this problem about a month ago on Ubuntu 17.10; I fixed it by running the build on an AWS Ubuntu 16.04 image (so I didn't really fix it). I just "apt install"d go and build-essential (and whatever else was necessary) on each, but I haven't had time to do a diff of the tool versions.
Reply all
Reply to author
Forward
0 new messages