LLGO build fails

201 views
Skip to first unread message

mata...@gmail.com

unread,
Jul 27, 2016, 5:01:26 PM7/27/16
to llgo-dev
Hi,

I have tried for hours and days to install LLGOon ubuntu 16.04 without success using the following link:
https://github.com/llvm-mirror/llgo
Each time got different error.

I went through the forum and tried several solutions.

The last phase I got was failing at 94% on the following error:
"
[ 94%] Performing configure step for 'libgo'
-- libgo configure command succeeded. See also /path/to/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-configure-*.log
[ 94%] Performing build step for 'libgo'
CMake Error at /path/to/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-Debug.cmake:16 (message):
Command failed: 2

'make' '-j4'

See also

/path/to/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[2]: *** [tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build] Error 1
CMakeFiles/Makefile2:49223: recipe for target 'tools/llgo/CMakeFiles/libgo.dir/all' failed
make[1]: *** [tools/llgo/CMakeFiles/libgo.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
"

Is there any slight chance someone is willing to upload Virtaul Machine with working LLGO to my dropbox?

Thank you so much!!!!

Andrew Wilkins

unread,
Jul 28, 2016, 12:17:10 AM7/28/16
to llgo-dev, mata...@gmail.com
On Thursday, 28 July 2016 05:01:26 UTC+8, mata...@gmail.com wrote:
Hi,

I have tried for hours and days to install LLGOon ubuntu 16.04 without success using the following link:
https://github.com/llvm-mirror/llgo
Each time got different error.

I went through the forum and tried several solutions.

The last phase I got was failing at 94% on the following error:
"
[ 94%] Performing configure step for 'libgo'
-- libgo configure command succeeded.  See also /path/to/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-configure-*.log
[ 94%] Performing build step for 'libgo'
CMake Error at /path/to/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-Debug.cmake:16 (message):
  Command failed: 2

   'make' '-j4'

  See also

    /path/to/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-*.log


I'm getting the same, looks like there's something wrong with debug info:

inlinable function call in a function with debug info must have a !dbg location
  call void @"sync.init#1"(i8* nest undef)
inlinable function call in a function with debug info must have a !dbg location
  call void @"sync.init#2"(i8* nest undef)
LLVM ERROR: Broken function found, compilation aborted!
make[2]: *** [sync.lo] Error 1

I'll try to look into it soon.

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:49223: recipe for target 'tools/llgo/CMakeFiles/libgo.dir/all' failed
make[1]: *** [tools/llgo/CMakeFiles/libgo.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
"

Is there any slight chance someone is willing to upload Virtaul Machine with working LLGO to my dropbox?

Thank you so much!!!!


I'm in the process of packaging llgo as a "snap" (http://snapcraft.io/). I'll mail the list when it's ready.

Cheers,
Andrew

Elliott Stoneham

unread,
Jul 28, 2016, 4:07:29 AM7/28/16
to llgo-dev, mata...@gmail.com
Wonderful news about packaging llgo as a "snap" Andrew, I'll look forward to trying it!

Andrew Wilkins

unread,
Jul 28, 2016, 4:40:30 AM7/28/16
to llgo...@googlegroups.com, mata...@gmail.com
On Thu, 28 Jul 2016 at 12:17 Andrew Wilkins <axw...@gmail.com> wrote:
On Thursday, 28 July 2016 05:01:26 UTC+8, mata...@gmail.com wrote:
Hi,

I have tried for hours and days to install LLGOon ubuntu 16.04 without success using the following link:
https://github.com/llvm-mirror/llgo
Each time got different error.

I went through the forum and tried several solutions.

The last phase I got was failing at 94% on the following error:
"
[ 94%] Performing configure step for 'libgo'
-- libgo configure command succeeded.  See also /path/to/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-configure-*.log
[ 94%] Performing build step for 'libgo'
CMake Error at /path/to/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-Debug.cmake:16 (message):
  Command failed: 2

   'make' '-j4'

  See also

    /path/to/llvm-build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-*.log


I'm getting the same, looks like there's something wrong with debug info:

inlinable function call in a function with debug info must have a !dbg location
  call void @"sync.init#1"(i8* nest undef)
inlinable function call in a function with debug info must have a !dbg location
  call void @"sync.init#2"(i8* nest undef)
LLVM ERROR: Broken function found, compilation aborted!
make[2]: *** [sync.lo] Error 1

I'll try to look into it soon.

The fix is here: https://reviews.llvm.org/D22905You only need the change to debug.go, the other is just to help in debugging codegen.

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:49223: recipe for target 'tools/llgo/CMakeFiles/libgo.dir/all' failed
make[1]: *** [tools/llgo/CMakeFiles/libgo.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
"

Is there any slight chance someone is willing to upload Virtaul Machine with working LLGO to my dropbox?

Thank you so much!!!!


I'm in the process of packaging llgo as a "snap" (http://snapcraft.io/). I'll mail the list when it's ready.

Cheers,
Andrew

--
You received this message because you are subscribed to the Google Groups "llgo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to llgo-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mata...@gmail.com

unread,
Jul 28, 2016, 2:51:55 PM7/28/16
to llgo-dev, mata...@gmail.com
It worked!!

Thank you very much Andrew!!!!

Jason Aten

unread,
Aug 18, 2016, 9:23:48 AM8/18/16
to llgo-dev, Andrew Wilkins


On Thursday, July 28, 2016 at 9:40:30 AM UTC+1, Andrew Wilkins wrote
The fix is here: https://reviews.llvm.org/D22905You only need the change to debug.go, the other is just to help in debugging codegen.

This helped me to build libgo without a problem. However it appears llgoi also needs some love, as below. Any help appreciated!

...
[ 95%] Built target libbacktrace
[ 95%] Built target cc-wrapper
[ 95%] Clobbering libgo build directory...
[ 95%] No force-reconfigure step for 'libgo'
[ 95%] Performing configure step for 'libgo'
-- libgo configure command succeeded.  See also /home/jaten/pkg/llvm/build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-configure-*.log
[ 95%] Performing build step for 'libgo'
-- libgo build command succeeded.  See also /home/jaten/pkg/llvm/build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-build-*.log
[ 95%] Performing install step for 'libgo'
-- libgo install command succeeded.  See also /home/jaten/pkg/llvm/build/tools/llgo/libgo-prefix/src/libgo-stamp/libgo-install-*.log
[ 95%] Completed 'libgo'
[ 95%] Built target libgo
Scanning dependencies of target llgo-go
[ 95%] Building Go executable llgo-go
[ 95%] Built target llgo-go
Scanning dependencies of target cgo
[ 95%] Building Go executable cgo
[ 95%] Built target cgo
Scanning dependencies of target llgoi
[ 95%] Building Go executable llgoi
fatal error: markspan: span bits not zero

runtime stack:
runtime_dopanic
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/panic.c:135
runtime_throw
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/panic.c:193
runtime_markspan
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/mgc0.c:2678
MCentral_Grow
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/mcentral.c:283
runtime_MCentral_CacheSpan
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/mcentral.c:84
runtime_MCache_Refill
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/mcache.c:79
runtime_mallocgc
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/malloc.goc:211
__go_alloc
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/malloc.goc:321
runtime_mallocinit
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/malloc.goc:643
runtime_schedinit
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/proc.c:462
main
    /home/jaten/pkg/llvm/src/tools/llgo/third_party/gofrontend/libgo/runtime/go-main.c:47

    :0

    :0

    :0
make[2]: *** [bin/llgoi] Error 1
make[1]: *** [tools/llgo/CMakeFiles/llgoi.dir/all] Error 2

make: *** [all] Error 2
[jaten@bytem build]$ find . -name llgoi
[jaten@bytem build]$ 

Andrew Wilkins

unread,
Aug 25, 2016, 12:44:09 AM8/25/16
to llgo-dev, axw...@gmail.com
I'm not able to reproduce this at the moment. I've just done a fresh build of llgoi without any problems. Sorry.
Reply all
Reply to author
Forward
0 new messages