[Slackbuilds-users] runc

Matteo Bernardini matteo.bernardini at gmail.com
Thu Jun 4 17:56:11 UTC 2020


Il giorno gio 4 giu 2020 alle ore 19:51 Bruno T. Russo
<brusso at gmail.com> ha scritto:
>
> Hi all!
>
> I trying compile runc. I checked and I have all dependencies installed.
>
> When run:
>
> #./runc.SlackBuild
>
> this error is reported:
>
> go build -buildmode=pie  -ldflags "-X main.gitCommit=dc9208a3303feef5b3839f4323d9beb36df0a9dd -X main.version=1.
> 0.0-rc10 " -tags "seccomp" -o runc .
> go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags
> # _/tmp/SBo/runc-1.0.0-rc10
> /usr/bin/ld: $WORK/b001/_pkg1_.a(_cgo_defun.o): relocation R_X86_64_32 against `.rodata' can not be used when ma
> king a PIE object; recompile with -fPIE
> /usr/bin/ld: $WORK/b001/_pkg2_.a(_cgo_defun.o): relocation R_X86_64_32 against `.rodata' can not be used when ma
> king a PIE object; recompile with -fPIE
> /usr/bin/ld: $WORK/b001/_pkg3_.a(_cgo_defun.o): relocation R_X86_64_32 against `.rodata' can not be used when ma
> king a PIE object; recompile with -fPIE
> /usr/bin/ld: final link failed: nonrepresentable section on output
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:32: runc] Error 2
>
> Any bit to resolve?

Hi Bruno,

once you have installed google-go-lang you should exit from your root
session and relogin again so that you will load some files in
/etc/profile.d (it's explained in google-go-lang's README): once you
have done that you can go on building runc.
if you don't do that it will try to build it with the gcc's go
compiler and it will fail, like your case.

Matteo


More information about the SlackBuilds-users mailing list