[Slackbuilds-users] runc

Gabriel Diaz gdiaz at qswarm.com
Thu Jun 4 18:41:41 UTC 2020


hello

The log you posted suggest you are using the gcc-go instead of the
golang one. Check this:

$ go version
go version go1.12.2 gccgo (GCC) 9.3.0 linux/amd64

If it is this one, it will fail to build.  It should look like something like:

$ go version
go version go1.14.3 linux/amd64

slds.
gabriel

On Thu Jun 4, 2020 at 9:21 PM CEST, Bruno T. Russo wrote:
> <div dir="ltr">Hi all!<div><br></div><div>I trying compile runc. I
> checked and I have all dependencies
> installed.</div><div><br></div><div>When run:
> </div><div><br></div><div>#<span style="font-family:monospace"><span
> style="color:rgb(0,0,0)">./runc.SlackBuild</span><br></span><div><div
> dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div
> dir="ltr"><div dir="ltr"><div><br></div><div>this error is
> reported:</div><div><br></div><div><span
> style="font-family:monospace"><span style="color:rgb(0,0,0)">go build
> -buildmode=pie -ldflags "-X
> main.gitCommit=dc9208a3303feef5b3839f4323d9beb36df0a9dd -X
> main.version=1.</span><br>0.0-rc10 " -tags "seccomp" -o
> runc .
> <br>go build: when using gccgo toolchain, please pass linker flags using
> -gccgoflags, not -ldflags
> <br># _/tmp/SBo/runc-1.0.0-rc10
> <br>/usr/bin/ld: $WORK/b001/_pkg1_.a(_cgo_defun.o): relocation
> R_X86_64_32 against `.rodata' can not be used when ma<br>king a PIE
> object; recompile with -fPIE
> <br>/usr/bin/ld: $WORK/b001/_pkg2_.a(_cgo_defun.o): relocation
> R_X86_64_32 against `.rodata' can not be used when ma<br>king a PIE
> object; recompile with -fPIE
> <br>/usr/bin/ld: $WORK/b001/_pkg3_.a(_cgo_defun.o): relocation
> R_X86_64_32 against `.rodata' can not be used when ma<br>king a PIE
> object; recompile with -fPIE
> <br>/usr/bin/ld: final link failed: nonrepresentable section on output
> <br>collect2: error: ld returned 1 exit status
> <br>make: *** [Makefile:32: runc] Error 2<br>
> <br></span></div><div><font face="monospace">Any bit to
> resolve?</font></div><div><div
> style="font-size:12.8000001907349px"><br></div><div
> style="font-size:12.8000001907349px"><br></div><div
> style="font-size:12.8000001907349px"><font color="#333333"
> size="2">thanks, </font></div><div
> style="font-size:12.8000001907349px"><font color="#333333"><span
> style="font-size:11px"><br></span></font></div><div
> style="font-size:12.8000001907349px"><font color="#333333"><span
> style="font-size:11px">___________________________________________________</span></font></div><div
> style="font-size:12.8000001907349px"><font color="#333333" size="2"
> face="tahoma, sans-serif"><b>Bruno Tadeu Russo
> <br></b></font></div></div><div></div></div></div></div></div></div></div>




More information about the SlackBuilds-users mailing list