I'm trying to build and install 'llgo' on Ubuntu 16.04 but it's throwing me already some errors after the cmake command:
CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2126 (get_property):
get_property could not find TARGET llgo. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/ExternalProject.cmake:2462 (_ep_add_configure_command)
tools/llgo/CMakeLists.txt:200 (externalproject_add)
tools/llgo/CMakeLists.txt:219 (add_libgo_variant)
CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2126 (get_property):
get_property could not find TARGET cc-wrapper. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/ExternalProject.cmake:2462 (_ep_add_configure_command)
tools/llgo/CMakeLists.txt:200 (externalproject_add)
tools/llgo/CMakeLists.txt:219 (add_libgo_variant)
Do I need to change the CMakeLists.txt?
Only following the steps on this site (https://llvm.org/svn/llvm-project/llgo/trunk/README.TXT) isn't working for me.
Thanks in advance,
Phil
I'm running in the same problem. Dockerfile to reproduce:
FROM ubuntu:latest
WORKDIR /gograal
RUN apt update && apt dist-upgrade -y
RUN apt install -y subversion git build-essential cmake python software-properties-common python-software-properties
RUN add-apt-repository ppa:gophers/archive # for golang-1.10-go (https://github.com/golang/go/wiki/Ubuntu)
RUN apt install -y golang-1.10-go
RUN svn co http://llvm.org/svn/llvm-project/llvm/trunk /gograal/llvm
RUN cd /gograal/llvm/tools && svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
RUN cd /gograal/llvm/tools && svn co http://llvm.org/svn/llvm-project/llgo/trunk llgo
RUN mkdir /gograal/llvm-build /gograal/llvm-inst
RUN cd /gograal/llvm-build && cmake /gograal/llvm -DCMAKE_INSTALL_PREFIX=/gograal/llvm-inst
RUN cd /gograal/llvm-build && make
RUN cd /gograal/llvm-build && make install
Note that the problem happens even if I don't specify -DCMAKE_INSTALL_PREFIX=/gograal/llvm-inst
Yup. Got the same error.
uname info: 4.13.0-39-generic #44~16.04.1-Ubuntu SMP x86_64 GNU/Linux
I also am getting the same error. I'm using Ubuntu 14.04 and working with cmake 3.5. Has there been any progress to fixing this?
Using an in-tree build, it turns out it depends on Go bindings being enabled so I added this to my build script to enable it whenever LLGO is enabled as well as setting a path to an existing go host toolchain.
if [[ $BUILD_LLGO == "ON" ]]; then
echo "--- BUILD_LLGO is enabled, setting GOPATH and enabling Go bindings."
GO_EXECUTABLE=$GOPATH/go
LLVM_BINDINGS="go;${LLVM_BINDINGS}"
else
GO_EXECUTABLE=OFF
fi