[Slackbuilds-users] Runc failing to build on 14.2
JCA
1.41421 at gmail.com
Tue Sep 5 16:53:56 UTC 2017
As it happens suspiciously often, I found the problem minutes after I
posted my question. The problem is that my PATH variable did not have an
entry for the go binary in the google-golang package, and the build system
was picking up the one under /usr/bin/, which is the gccgo binary.
On Tue, Sep 5, 2017 at 10:44 AM, JCA <1.41421 at gmail.com> wrote:
> I have just tried to build runc (required for docker) on Slackware64 14.2,
> using the latest version of go (1.8.3) and libseccomp (2.3.2) available at
> slackbuilds.org, without success:
>
> runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/tty.go
> runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/update.go
> runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/utils.go
> runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/utils_linux.go
> ln -sfn /tmp/SBo/runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe
> /tmp/SBo/runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/Godeps/_workspace/
> src/github.com/opencontainers/runc
> go build -i -ldflags "-X main.gitCommit=54296cf40ad8143b62dbcaa1d90e520a2136ddfe
> -X main.version=1.0.0-rc2" -tags "seccomp" -o runc .
> go build: when using gccgo toolchain, please pass linker flags using
> -gccgoflags, not -ldflags
> # _/tmp/SBo/runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe
> /tmp/SBo/runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/Godeps/_workspace/
> pkg/gccgo_linux_amd64/github.com/seccomp/liblibseccomp-
> golang.a(seccomp.cgo2.o): In function `_cgo_68447050d42b_Cfunc_
> seccomp_arch_add':
> /tmp/SBo/runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/Godeps/_workspace/
> src/github.com/seccomp/libseccomp-golang/seccomp.go:59: undefined
> reference to `seccomp_arch_add'
>
> Changing the Makefile in the runc source code package, as suggested in the
> diagnostic above, makes things, if anything, worse:
>
> /runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/main_unsupported.go
> ./runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/create.go
> ./runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/VERSION
> ln -sfn /tmp/SBo/runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe
> /tmp/SBo/runc-54296cf40ad8143b62dbcaa1d90e520a2136ddfe/Godeps/_workspace/
> src/github.com/opencontainers/runc
> go build -i -gccgoflags "-X main.gitCommit=54296cf40ad8143b62dbcaa1d90e520a2136ddfe
> -X main.version=1.0.0-rc2" -tags "seccomp" -o runc .
> # github.com/Sirupsen/logrus
> gccgo: error: main.gitCommit=54296cf40ad8143b62dbcaa1d90e520a2136ddfe: No
> such file or directory
> gccgo: error: main.version=1.0.0-rc2: No such file or directory
> gccgo: error: unrecognized command line option '-X'
> gccgo: error: unrecognized command line option '-X'
> # github.com/coreos/go-systemd/activation
> gccgo: error: main.gitCommit=54296cf40ad8143b62dbcaa1d90e520a2136ddfe: No
> such file or directory
> gccgo: error: main.version=1.0.0-rc2: No such file or directory
> gccgo: error: unrecognized command line option '-X'
> gccgo: error: unrecognized command line option '-X'
> # github.com/docker/docker/pkg/symlink
>
> Any idea as to what is going on, and how to fix this?
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170905/5a423d64/attachment.html>
More information about the SlackBuilds-users
mailing list