[yocto] No GNU_HASH in the elf binary

Madhu Krishnamurthy madhukanthk at yahoo.com
Sat Jul 13 12:33:07 PDT 2019


Hello,I am trying to package an already built binary executable called mlc (memory latency checker) to yocto and I get this error. 
ERROR: mem-tst-0.1 do_package: QA Issue: File '/usr/local/flex_pkgs/diags/mlc' from mem was already stripped, this will prevent future debugging! [already-stripped]ERROR: mem-tst-0.1 do_package: Fatal QA errors found, failing task.ERROR: mem-tst-0.1 do_package: Function failed: do_packageERROR: Logfile of failure stored in: /home/cluser/ac/z_cpu/build/tmp/work/corei7-64-poky-linux/mem/tst-0.1/temp/log.do_package.27614ERROR: Task (/home/cluser/ac/z_cpu/poky/../meta-flex/meta-z/recipes-utils/mem/mem_tst_0.1.bb:do_package) failed with exit code '1'NOTE: Tasks Summary: Attempted 458 tasks of which 457 didn't need to be rerun and 1 failed.
I googled and found that I need to add this
INSANE_SKIP_mlc = "ldflags"INSANE_SKIP_mlc-dev = "ldflags"INHIBIT_PACKAGE_DEBUG_SPLIT = "1"INHIBIT_PACKAGE_STRIP = "1"
But after adding that I still get this error. ERROR: mem-tst-0.1 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/cluser/ac/z_cpu/build/tmp/work/corei7-64-poky-linux/mem/tst-0.1/packages-split/mem/usr/local/flex_pkgs/diags/mlc' [ldflags] Appreciate any help.
Thanks and regardsMadhu
(more log details)NOTE: Executing RunQueue TasksNOTE: mem-tst-0.1 do_package_qa: Direct dependencies are ['virtual:native:/home/cluser/ac/z_cpu/poky/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/cluser/ac/z_cpu/poky/meta/recipes-devtools/binutils/binutils-cross_2.29.bb:do_populate_sysroot']NOTE: mem-tst-0.1 do_package_qa: Installed into sysroot: []NOTE: mem-tst-0.1 do_package_qa: Skipping as already exists in sysroot: ['pseudo-native', 'binutils-cross-x86_64', 'gnu-config-native', 'bison-native', 'flex-native', 'texinfo-dummy-native', 'autoconf-native', 'quilt-native', 'zlib-native', 'gettext-minimal-native', 'automake-native', 'xz-native', 'libtool-native', 'm4-native']NOTE: mem-tst-0.1 do_package_qa: DO PACKAGE QANOTE: mem-tst-0.1 do_package_qa: Checking Package: memNOTE: mem-tst-0.1 do_package_qa: x86_64-poky-linux-objdump -p /home/cluser/ac/z_cpu/build/tmp/work/corei7-64-poky-linux/mem/tst-0.1/packages-split/mem/usr/local/flex_pkgs/diags/mlcERROR: mem-tst-0.1 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/cluser/ac/z_cpu/build/tmp/work/corei7-64-poky-linux/mem/tst-0.1/packages-split/mem/usr/local/flex_pkgs/diags/mlc' [ldflags]NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-staticdevNOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-localeNOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-docNOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-dbgNOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-devERROR: mem-tst-0.1 do_package_qa: QA run found fatal errors. Please consider fixing them.ERROR: mem-tst-0.1 do_package_qa: Function failed: do_package_qaERROR: Logfile of failure stored in: /home/cluser/ac/z_cpu/build/tmp/work/corei7-64-poky-linux/mem/tst-0.1/temp/log.do_package_qa.25300ERROR: Task (/home/cluser/ac/z_cpu/poky/../meta-flex/meta-z/recipes-utils/mem/mem_tst_0.1.bb:do_package_qa) failed with exit code '1'NOTE: Tasks Summary: Attempted 461 tasks of which 460 didn't need to be rerun and 1 failed.
Summary: 1 task failed:  /home/cluser/ac/z_cpu/poky/../meta-flex/meta-z/recipes-utils/mem/mem_tst_0.1.bb:do_package_qa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190713/9a74f716/attachment-0001.html>


More information about the yocto mailing list