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



-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to