Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-08 Thread Yuan Ting
Oh, my mistake. I can successfully build gollvm now, thank you so much! On Thursday, May 9, 2019 at 11:07:37 AM UTC+8, Than McIntosh wrote: > > There was a recent checkin related to -fdebug-go-optimization in both > repos-- I think the failure you're seeing is just build skew. > Try doing a "git

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-08 Thread 'Than McIntosh' via golang-nuts
There was a recent checkin related to -fdebug-go-optimization in both repos-- I think the failure you're seeing is just build skew. Try doing a "git pull" in llvm/tools/gollvm and llvm/tools/gollvm/gofrontend to make sure everything is up to date. Thanks, Than *From: *Ting Yuan *Date: *Wed, May

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-08 Thread Ting Yuan
Hi Than, It turned out to be the problem of shell. By SHELL=/bin/sh I can build gollvm in the right way, but I still failed on a compile error: [2066/3237] Building CXX object tools/gollvm/bridge/CMakeFiles/ LLVMCppGoFrontEnd.dir/__/gofrontend/go/go.cc.o FAILED: tools/gollvm/bridge/CMakeFiles/LLV

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-08 Thread 'Than McIntosh' via golang-nuts
Agree, the embedded space looks fishy. I also note that your shell is set to zsh -- you might try instead using SHELL=/bin/sh to see if that works better. Thanks, Than On Wed, May 8, 2019 at 12:04 PM Ting Yuan wrote: > OK, I got something like > ... > /home/yt/LLVMsvn/llvm/tools/gollvm/goto

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-08 Thread Ting Yuan
OK, I got something like ... /home/yt/LLVMsvn/llvm/tools/gollvm/gotools/CMakeLists.txt(55): if(NOT EXISTS /home/yt/LLVMsvn/llvm/tools/gollvm/gofrontend/libgo/go/cmd/buildid ) /home/yt/LLVMsvn/llvm/tools/gollvm/gotools/CMakeLists.txt(57): else() /home/yt/LLVMsvn/llvm/tools/gollvm/gotools/CMakeLis

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-08 Thread 'Than McIntosh' via golang-nuts
Hmm, OK, sounds like 'sed' is not the issue. >>I found there are only two files (CMakeLists.txt and gotestprogram.sh) under the llvm/tools/gollvm/gotools/. Should the missing files (e.g. buildid.go) be there? No, this is expected. The Go sources for 'buildid' will be pulled from /tools/gollvm/gof

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-08 Thread Ting Yuan
Hi Than, On my system the version of sed is 4.4. Is the version mismatch? I found there are only two files (CMakeLists.txt and gotestprogram.sh) under the llvm/tools/gollvm/gotools/. Should the missing files (e.g. buildid.go) be there? Thanks. On Wednesday, May 8, 2019 at 8:50:23 PM UTC+8, Th

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-08 Thread 'Than McIntosh' via golang-nuts
Hi, >From the error output it sounds like something went wrong with the initial cmake run -- the error from match.sh seems nonsensical (it suggests that the script is looking for gotools sources in the wrong location). One possibility would be that you don't have "sed" installed on your system?

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-07 Thread Ting Yuan
Hello Than, when I using ninja to build gollvm, just like % cmake -DCMAKE_INSTALL_PREFIX=/home/yt/LLVMsvn/install - DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Debug -DLLVM_USE_LINKER=gold -G "Ninja" ../llvm % ninja gollvm the build system still reports an error: ninja: error: '/home/yt/LLVM

Re: [go-nuts] Could someone tell me how to build gollvm?

2019-05-07 Thread 'Than McIntosh' via golang-nuts
Hello, For the gollvm build ninja is recommended (using "make" is untested and I doubt if it will work). Thanks, Than On Tue, May 7, 2019 at 9:27 AM wrote: > I try to build gollvm on ubuntu(x64) following these commands in > https://go.googlesource.com/gollvm/ : > > % cd workarea > % mkdir buil

[go-nuts] Could someone tell me how to build gollvm?

2019-05-07 Thread yuanting
I try to build gollvm on ubuntu(x64) following these commands in https://go.googlesource.com/gollvm/ : % cd workarea % mkdir build-debug % cd build-debug % cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_USE_LINKER=gold ../llvm ... % make gollvm -j4 ... % but I got -- Targeting X86 -- starting libgo conf