[Slackbuilds-users] runc slackbuild failed to build

Matteo Bernardini matteo.bernardini at gmail.com
Fri May 6 07:26:43 UTC 2022


hi Dimitris,

I think you haven't logged out and logged back in from your root session
after having installed google-go-lang because from your output it seems you
are still using go from gcc.

Matteo

Il giorno ven 6 mag 2022 alle ore 09:22 Dimitris Zlatanidis <
d.zlatanidis at gmail.com> ha scritto:

> go build -trimpath "-mod=vendor" "-buildmode=pie"  -tags "seccomp"
> -ldflags "-X main.gitCommit=12644e614e25b05da6fd08a38ffa0cfe1903fdec -X
> main.version=1.0.2 " -o runc .
> go build: when using gccgo toolchain, please pass linker flags using
> -gccgoflags, not -ldflags
> # github.com/opencontainers/runc
> /usr/bin/ld: $WORK/b001/_pkg1_.a(_cgo_defun.o): relocation R_X86_64_32
> against `.rodata' can not be used when making 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 making 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 making a PIE object; recompile
> with -fPIE
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:34: runc] Error 2
>
> Anyone who knows?
>
> Cheers,
> Dimitris
>
> --
> Dimitris Zlatanidis
> https://dslackw.gitlab.io/slpkg/
> https://gitlab.com/dslackw
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220506/2155012f/attachment.htm>


More information about the SlackBuilds-users mailing list