[meta-virtualization] Help: consul do_compile failed after go upgrade to v1.12.

Hongzhi, Song hongzhi.song at windriver.com
Mon Mar 18 20:15:19 PDT 2019

Hi Bruce,

There is a failure on do_compile of consul under meta-cloud-services.

This is introduced by go-1.12 which was upgraded several days ago.

But it can't be reproduced on my ubuntu-host, while only be reproduced 
on Yocto.

I try my best to fix it but has no result.

So, I will be great appreciate for anyone's help.



There are some info about the failure:

Error info:


    # github.com/hashicorp/consul/connect/certgen
    type..eUfRrckI: missing section for relocation target type..FEeY9FdU
    type..eUfRrckI: reloc 8 (R_CALL) to non-elf symbol type..FEeY9FdU
    (outer=type..FEeY9FdU) 49 (SABIALIAS)
    # github.com/hashicorp/consul
    type..eUfRrckI: missing section for relocation target type..FEeY9FdU
    type..K6Uq9NPs: missing section for relocation target type..tBBUxeDj


    The above info come from go/src/cmd/link/internal/ld/data.go

Commit ID from go upstream:


    cmd/compile, cmd/link: separate stable and internal ABIs

Script: consul: run.do_compile

    The following command failed with -linkshared. It will pass if
    remove -linkshared.

    x86_64-poky-linux-go install *-linkshared* -p 128 -v -ldflags="-r
    /usr/lib/go/pkg/linux_amd64_dynlink  -extldflags ' -m64 -march=core2
    -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong 
    -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
    -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
    -fstack-protector-strong -Wl,-z,relro,-z,now'" -buildmode=pie


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20190319/ce51b5ca/attachment.html>

More information about the meta-virtualization mailing list