AnsweredAssumed Answered

do_package (arm-poky-linux-gnueabi-objcopy) fails

Question asked by Lukas Schwoebel on Nov 19, 2013
Latest reply on Nov 20, 2013 by Lukas Schwoebel

Good Morning,


on trying to compile a custom make-file-based package ("libxbee"), I get an error while the do_package routine is running. My board is iMX6 wandboard-quad and I am using the dora-branch.


ERROR: objcopy failed with exit code 256 (cmd was 'arm-poky-linux-gnueabi-objcopy' --add-gnu-debuglink='/..../build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/libxbee/3-r2/package/usr/lib/.debug/' '/..../build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/libxbee/3-r2/package/usr/lib/'):

arm-poky-linux-gnueabi-objcopy:/..../build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/libxbee/3-r2/package/usr/lib/stB6ee1m: cannot create debug link section `/..../build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/libxbee/3-r2/package/usr/lib/.debug/': Invalid operation

ERROR: Function failed: split_and_strip_files

ERROR: Logfile of failure stored in: /..../build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/libxbee/3-r2/temp/log.do_package.3126

ERROR: Task 516 (/..../sources/meta-wvsnp-pkgs/recipes-libxbee/libxbee/, do_package) failed with exit code '1'


I had some troubles to get it compiling, but these steps are running through smoothly now. But I cannot figure out what exactly fails during the packaging-process. To be honest, I can't even tell what the process is doing in detail (other than, you know, "packaging").


If you need it, here is my recipe file for it:


DESCRIPTION = "A C/C++ library to aid the use of Digi XBee radios in API mode."

SECTION = "base"



LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"



SRC_URI = "git://;protocol=git"

SRCREV = "aad1fce3864eccc80a003b3b93010e6f56bb87dd"



S = "${WORKDIR}/git/"



PR = "r1"



do_configure() {

  oe_runmake configure


do_compile() {

  oe_runmake all


do_install () {

    mkdir -p ${D}/usr/share/man/man3

    oe_runmake install SYS_ROOT=${D}


Does anyone have an idea?