To build and install llgo:
svn co http://llvm.org/svn/llvm-project/llvm/trunk /path/to/llvm
cd /path/to/llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
svn co http://llvm.org/svn/llvm-project/llgo/trunk llgo
# Build LLVM, Clang and llgo: (see also http://llvm.org/docs/CMake.html)
mkdir /path/to/llvm-build
cd /path/to/llvm-build
cmake /path/to/llvm -DCMAKE_INSTALL_PREFIX=/path/to/llvm-inst
make install
But I am facing error mentioned there is no rule to make the target libgo.
No rule to make target 'bin/llvm-go', needed by 'bin/llgo'. Stop.
I tried some of the work around mentioned in the below post,
https://groups.google.com/forum/#!topic/llgo-dev/CoJ4qzFtVA4
make VERBOSE=1 llgoi 2>&1 | tee llgoi2.log
But it gave the below error,
CMake Error at /home/root1/Work/DCAP/LLVM/llgo/Feb19/llvm-trunk/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-Debug.cmake:16 (message):
Command failed: 2
'make' '-j4'
See also
/home/root1/Work/DCAP/LLVM/llgo/Feb19/llvm-trunk/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-*.log
tools/llgo/CMakeFiles/libgo.dir/build.make:116: recipe for target 'tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build' failed
make[3]: *** [tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build] Error 1
make[3]: Leaving directory '/home/root1/Work/DCAP/LLVM/llgo/Feb19/llvm-trunk/llvm-build'
CMakeFiles/Makefile2:67411: recipe for target 'tools/llgo/CMakeFiles/libgo.dir/all' failed
make[2]: *** [tools/llgo/CMakeFiles/libgo.dir/all] Error 2
Can you please provide some inputs on whether the trunk llgo works with llvm and clang files in the trunk?
Do we need to use some earlier llvm and clang revisions with the llgo trunk?
Thanks and regards,
Jithu Thomas