Build process fails

392 views
Skip to first unread message

phil.bu...@tum.de

unread,
Nov 17, 2016, 4:44:52 AM11/17/16
to llgo-dev
Hi everyone,

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

carloalber...@gmail.com

unread,
Apr 1, 2018, 8:02:14 PM4/1/18
to llgo-dev

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

usel...@gmail.com

unread,
May 4, 2018, 3:46:43 PM5/4/18
to llgo-dev

Yup. Got the same error.

uname info: 4.13.0-39-generic #44~16.04.1-Ubuntu SMP x86_64 GNU/Linux

jjgar...@gmail.com

unread,
May 29, 2018, 9:20:52 PM5/29/18
to llgo-dev

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?

Anita

unread,
Aug 16, 2018, 5:37:41 PM8/16/18
to llgo-dev

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

Reply all
Reply to author
Forward
0 new messages