Thanks Bruce, yes it's still needed as work around for those with
ld-is-gold in DISTRO_FEATURES. Once binutils are upgraded in oe-core I'll
retest and send removal of this once it starts working fine again.

On Fri, May 7, 2021 at 5:08 AM Bruce Ashfield <[email protected]>
wrote:

> This is on master-next now.
>
> From the follow ups, I assume that this is still needed. Once I get a
> bit of soak and runtime testing done on some other queued changes,
> this will be part of my next push.
>
> Bruce
>
> On Mon, May 3, 2021 at 9:40 AM Martin Jansa <[email protected]>
> wrote:
> >
> > * just a work around for internal error in binutils-2.36 gold:
> >   http://errors.yoctoproject.org/Errors/Details/580099/
> >   CGO_ENABLED=1 x86_64-oe-linux-go build -trimpath  -tags "seccomp
> seccomp                       netgo osusergo" -ldflags "-w -extldflags
> -static -X main.gitCommit="fce58ab2d5c488bc573d02712db476a6daa9a60c-dirty"
> -X main.version=1.0.0-rc93+dev " -o runc .
> >
>  
> TOPDIR/tmp-glibc/work/core2-64-oe-linux/runc-opencontainers/1.0.0-rc93+gitAUTOINC+fce58ab2d5-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/11.0.1/ld:
> internal error in format_file_lineno, at ../../gold/dwarf_reader.cc:2278
> >   collect2: error: ld returned 1 exit status
> >
> > * it fails like this only together with gcc-11, with gcc-10.3 it
> >   builds fine even with gold
> >
> > Signed-off-by: Martin Jansa <[email protected]>
> > ---
> >  recipes-containers/runc/runc-opencontainers_git.bb | 7 +++++++
> >  1 file changed, 7 insertions(+)
> >
> > diff --git a/recipes-containers/runc/runc-opencontainers_git.bb
> b/recipes-containers/runc/runc-opencontainers_git.bb
> > index f3ff9a8..51ba7c9 100644
> > --- a/recipes-containers/runc/runc-opencontainers_git.bb
> > +++ b/recipes-containers/runc/runc-opencontainers_git.bb
> > @@ -8,3 +8,10 @@ SRC_URI = " \
> >  RUNC_VERSION = "1.0.0-rc93"
> >
> >  CVE_PRODUCT = "runc"
> > +
> > +# use BFD when ld-is-gold is used to work around:
> > +# http://errors.yoctoproject.org/Errors/Details/580099/
> > +# CGO_ENABLED=1 x86_64-oe-linux-go build -trimpath  -tags "seccomp
> seccomp                       netgo osusergo" -ldflags "-w -extldflags
> -static -X main.gitCommit="fce58ab2d5c488bc573d02712db476a6daa9a60c-dirty"
> -X main.version=1.0.0-rc93+dev " -o runc .
> > +#
> TOPDIR/tmp-glibc/work/core2-64-oe-linux/runc-opencontainers/1.0.0-rc93+gitAUTOINC+fce58ab2d5-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/11.0.1/ld:
> internal error in format_file_lineno, at ../../gold/dwarf_reader.cc:2278
> > +# collect2: error: ld returned 1 exit status
> > +LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold',
> ' -fuse-ld=bfd ', '', d)}"
> > --
> > 2.30.2
> >
> >
> > 
> >
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6494): 
https://lists.yoctoproject.org/g/meta-virtualization/message/6494
Mute This Topic: https://lists.yoctoproject.org/mt/82551391/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to