Yocto QA issue: test-dev doesn't have GNU_HASH error has never gone

306 Views Asked by At

I have created my own recipe(test.bb), which is golang package, and build it with bitbake. However, on the do_package_qa flow it ran into error "test-dev doesn't have GNU_HASH (didn't pass LDFLAGS?).

...
inherit go
inherit features_check

TARGET_CC_ARCH += "${LDFLAGS}"

do_compile() {
    export CGO_CFLAGS="-I${STAGING_INCDIR}"
    export CGO_LDFLAGS="-Wl,--hash-style=gnu"

    cd ${S}/src/${GO_IMPORT}
    go build
}

I tried to add

  • TARGET_CC_ARCH += "${LDFLAGS}" in my recipe
  • export CGO_LDFLAGS="-Wl,--hash-stle=gnu"
  • INSANE_SKIP_${PN} = "ldflags"
  • and my "GO_LDFLAGS" env variable contains "-Wl,--hash-style=gnu" (checked by bitbake -e test | grep "^GO") but, they couldn't resolve it. Can anyone give hint for this?
0

There are 0 best solutions below