llgo fails when' Performing build step for 'libgo'

90 views
Skip to first unread message

Moeketsi Raselimo

unread,
Jul 25, 2019, 2:49:41 PM7/25/19
to llgo-dev
I have tried build the llgo following this REAME.txt . The only differences are in the cmake command and make. I ran the following instead

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_DOCS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/clang_8.0.0 ../llvm

and 
 
make-j 8

I'm using a machine with the following specs: Ubuntu-18.04.2 LTS with 16GiB RAM.  
GCC version: gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 
Cmake version : 3.10.2
go version: go1.12.4 linux/amd64

I'm getting the following errors.
[100%] Built target llgo
Scanning dependencies of target libgo
[100%] No force-reconfigure step for 'libgo'
[100%] Creating directories for 'libgo'
[100%] Clobbering libgo build directory...
[100%] No download step for 'libgo'
[100%] No patch step for 'libgo'
[100%] No update step for 'libgo'
[100%] Performing configure step for 'libgo'
[100%] Linking CXX executable ../../../../bin/c-index-test
[100%] Built target c-index-test
-- libgo configure command succeeded.  See also /home/max/llvm_all/build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-configure-*.log
[100%] Performing build step for 'libgo'
CMake Error at /home/max/llvm_all/build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-Release.cmake:16 (message):
  Command failed: 2

   'make' '-j12'

  See also

    /home/max/llvm_all/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[2]: *** [tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build] Error 1
CMakeFiles/Makefile2:83612: recipe for target 'tools/llgo/CMakeFiles/libgo.dir/all' failed
make[1]: *** [tools/llgo/CMakeFiles/libgo.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

I have also attached the logs.

what am i missing?

libgo-build-Release.cmake
libgo-build-out.log
libgo-build-err.log

Felix

unread,
Jul 26, 2019, 12:47:49 AM7/26/19
to llgo-dev
I'm having the same problem with f181dd99cf1c4e94f1e191b4ffb7357571af9039 of llvm-project (from GitHub). From the log, the actual error itself appears to be:

llgo: /home/felix/Downloads/llvm-project/llvm/lib/IR/Attributes.cpp:233: llvm::Type *llvm::Attribute::getValueAsType() const: Assertion `isTypeAttribute() && "Invalid attribute type to get the value as a type!"' failed.

When building in parallel, this identical error appears for each source file.
Reply all
Reply to author
Forward
0 new messages