Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go 1.5 not building #181

Closed
sebgoa opened this issue Oct 2, 2016 · 2 comments
Closed

go 1.5 not building #181

sebgoa opened this issue Oct 2, 2016 · 2 comments

Comments

@sebgoa
Copy link
Contributor

sebgoa commented Oct 2, 2016

just to confirm, we are now using go 1.6, and 1.5 does not work anymore.

travis runs 1.6

we need to update the readme

@kadel
Copy link
Member

kadel commented Oct 2, 2016

You should be able to compile Kompose with go 1.5

on go1.5 I can build with cgo disabled it like this:

CGO_ENABLED=0 GO15VENDOREXPERIMENT=1 go build -o kompose -tags experimental ./cli/main

I don't know why, but if I try to build it with cgo it fails on:

# github.com/skippbox/kompose/vendor/github.com/opencontainers/runc/libcontainer/system
cannot load DWARF output from $WORK/github.com/skippbox/kompose/vendor/github.com/opencontainers/runc/libcontainer/system/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0

With go1.7 I can build it in both cases (with and without cgo).
It looks like that for go1.5 cgo has to be disabled. I don't know why :-( Maybe I'm doing something wrong. I don't know much about go compiler :-(
Maybe @janetkuo has idea?

@ngtuna
Copy link
Contributor

ngtuna commented Oct 2, 2016

So I made a direct update to README accordingly for both cases. 9cb74ed

@sebgoa sebgoa closed this as completed Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants