Re: [go-nuts] Re: Error when running llvm-goc

2021-06-29 Thread 'Than McIntosh' via golang-nuts
You wrote: >If I run `go build test.go`, when does llvm-goc executable start to run? Does go build command replace its' existing compiler with llvm-goc? The "go" command, the program that orchestrates the building of Go programs, runs 'llvm-goc' at each point where it needs to compile a Go package

Re: [go-nuts] Re: Error when running llvm-goc

2021-06-26 Thread Kavindu Gimhan Zoysa
Hi, Thank you for your detailed explanation. I will try your suggestions and let you know. I used this cmake command. `cmake -DCMAKE_INSTALL_PREFIX=/my/install/dir -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_LINKER=gold -G Ninja ../llvm-project/llvm` Then I used, `ninja gollvm`, and it was successf

Re: [go-nuts] Re: Error when running llvm-goc

2021-06-25 Thread 'Than McIntosh' via golang-nuts
Hello again, Couple of things. First, it is important to keep in mind that the "llvm-goc" binary is not intended to be used as a top level go compiler, in the same way that the "gcc" or "clang" commands are used as top-level C/C++ compilers. The normal use case is to use "go build" as opposed to

Re: [go-nuts] Re: Error when running llvm-goc

2021-06-24 Thread Kavindu Gimhan Zoysa
I did not use any *go build* command. Sorry if I missed anything. These are the steps I followed. 1. Build gollvm referring to the official documentation. I followed the steps until https://go.googlesource.com/gollvm/#cmakeninja. 2. I was able to see the *llvm-goc *in the bin folder. I export

Re: [go-nuts] Re: Error when running llvm-goc

2021-06-24 Thread 'Than McIntosh' via golang-nuts
Could you please post the complete "go build" command? Thanks, Than On Thu, Jun 24, 2021 at 2:05 PM Kavindu Gimhan Zoysa wrote: > Hi all, > > Still, I was unable to figure out the reason for the above error. Really > appreciate your help. > > Thank you, > Kavindu > > On Thursday, 24 June 2021 a

[go-nuts] Re: Error when running llvm-goc

2021-06-24 Thread Kavindu Gimhan Zoysa
Hi all, Still, I was unable to figure out the reason for the above error. Really appreciate your help. Thank you, Kavindu On Thursday, 24 June 2021 at 12:06:32 UTC+5:30 Kavindu Gimhan Zoysa wrote: > Hi all, > > I have build the gollvm and now I am trying to run it. So I run follwing > command