Skip to contentSkip to conversation

No GNU_HASH in the elf binary

DISCUSSION Madhu Krishnamurthy 2 participants 3 messages Jul 15, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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

#2 lore raw

Hello

Quoted 9 lines · Madhu Krishnamurthy

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_package

Your recipe is not called mlc but mem-tst-0.1

Quoted 8 lines

ERROR: 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.27614
ERROR: 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.

Quoted 4 lines

I googled and found that I need to add this

*INSANE_SKIP_mlc = "ldflags"*
*INSANE_SKIP_mlc-dev = "ldflags"*

Thus the two lines above can't work. The preferred way to do this is to use ${PN} variable which expands to the package name. Like this: >> INSANE_SKIP_${PN} = "ldflags" <<

Best regards
Moritz

Quoted 54 lines

*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 regards
Madhu

(more log details)
NOTE: Executing RunQueue Tasks
NOTE: 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 QA
NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem
NOTE: 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/mlc *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]*
NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-staticdev
NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-locale
NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-doc
NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-dbg
NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-dev
*ERROR: 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_qa*
*ERROR: 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.25300* *ERROR: 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

#3 lore raw

Moritz,Yes, that was it. Thank you very much. Appreciate your help.
best regardsMadhu

    On Monday, July 15, 2019, 12:12:38 AM PDT, Moritz Porst <[email protected]> wrote:  

Hello

On 15.07.19 08:42, Madhu Krishnamurthy wrote:

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_package Your recipe is not called mlc but mem-tst-0.1

ERROR: 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.27614 ERROR: 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"

Thus the two lines above can't work. The preferred way to do this is to use ${PN} variable which expands to the package name. Like this: >> INSANE_SKIP_${PN} = "ldflags" <<

Best regards
Moritz

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 regards Madhu
(more log details) NOTE: Executing RunQueue Tasks NOTE: 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 QA NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem NOTE: 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/mlc 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] NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-staticdev NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-locale NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-doc NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-dbg NOTE: mem-tst-0.1 do_package_qa: Checking Package: mem-dev ERROR: 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_qa ERROR: 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.25300 ERROR: 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