<div dir="ltr"><div>Hi,</div><div><br></div><div>I've just ported my build to Rocko but I now can't build the SDK, the offending package is u-boot-tools which I have based on u-boot-mkimage (which also fails with the same error message).  Does anyone have any idea on how to debug/fix this?</div><div><br></div><div>Build Configuration:</div><div>BB_VERSION           = "1.36.0"</div><div>BUILD_SYS            = "x86_64-linux"</div><div>NATIVELSBSTRING      = "universal-4.8"</div><div>TARGET_SYS           = "arm-bia-linux-gnueabi"</div><div>MACHINE              = "varsomam43"</div><div>DISTRO               = "bia"</div><div>DISTRO_VERSION       = "20180207-requiem-r11029"</div><div>TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard cortexa9"</div><div>TARGET_FPU           = "hard"</div><div>meta-bia-distro      </div><div>meta-martin      </div><div>meta-martin-bsp  = "<unknown>:<unknown>"</div><div>meta-python          </div><div>meta-oe              </div><div>meta-webserver       </div><div>meta-filesystems     = "rocko:a65c1acb1822966c3553de9fc98d8bb6be705c4e"</div><div>meta-ti              = "rocko:4a746c78c3b7060a51cd6a876f69eead363c757c"</div><div>meta-networking      = "rocko:a65c1acb1822966c3553de9fc98d8bb6be705c4e"</div><div>meta                 </div><div>meta-poky            = "rocko:1648bcafa3d0e46acee61a34d0a07fabb85b1f8d"</div><div>meta-security-isafw  = "HEAD:489abdc65cefb566d696c8b218aa0b9b99a350ae"</div><div><br></div><div>NOTE: Fetching uninative binary shim from <a href="http://downloads.yoctoproject.org/releases/uninative/1.8/x86_64-nativesdk-libc.tar.bz2;sha256sum=de4947e98e09e1432d069311cc2093974ecb9138a714fd5466f73524de66a693">http://downloads.yoctoproject.org/releases/uninative/1.8/x86_64-nativesdk-libc.tar.bz2;sha256sum=de4947e98e09e1432d069311cc2093974ecb9138a714fd5466f73524de66a693</a></div><div>Initialising tasks: 100% |################################################################################################################################| Time: 0:00:01</div><div>NOTE: Executing SetScene Tasks</div><div>NOTE: Executing RunQueue Tasks</div><div>ERROR: nativesdk-u-boot-tools-v2016.03+gitAUTOINC+df61a74e68-r0 do_package: nativesdk-u-boot-tools: chrpath command failed with exit code 7:</div><div>b'/home/martin/bia-precision-rocko/build/tmp/work/x86_64-nativesdk-biasdk-linux/nativesdk-u-boot-tools/v2016.03+gitAUTOINC+df61a74e68-r0/package/opt/bia/20180207-requiem-r11029/sysroots/x86_64-biasdk-linux/usr/bin/uboot-dumpimage: RPATH=/home/martin/bia-precision-rocko/build/tmp/work/x86_64-nativesdk-biasdk-linux/nativesdk-u-boot-tools/v2016.03+gitAUTOINC+df61a74e68-r0/recipe-sysroot-native/usr/lib:/home/martin/bia-precision-rocko/build/tmp/work/x86_64-nativesdk-biasdk-linux/nativesdk-u-boot-tools/v2016.03+gitAUTOINC+df61a74e68-r0/recipe-sysroot-native/lib\n'b"new rpath '$ORIGIN/../../../../../../../home/martin/bia-precision-rocko/build/tmp/work/x86_64-nativesdk-biasdk-linux/nativesdk-u-boot-tools/v2016.03+gitAUTOINC+df61a74e68-r0/recipe-sysroot-native/usr/lib:$ORIGIN/../../../../../../../home/martin/bia-precision-rocko/build/tmp/work/x86_64-nativesdk-biasdk-linux/nativesdk-u-boot-tools/v2016.03+gitAUTOINC+df61a74e68-r0/recipe-sysroot-native/lib' too large; maximum length 333\n"</div><div>ERROR: nativesdk-u-boot-tools-v2016.03+gitAUTOINC+df61a74e68-r0 do_package: Function failed: perform_packagecopy</div><div>ERROR: Logfile of failure stored in: /home/martin/bia-precision-rocko/build/tmp/work/x86_64-nativesdk-biasdk-linux/nativesdk-u-boot-tools/v2016.03+gitAUTOINC+df61a74e68-r0/temp/log.do_package.9810</div><div>ERROR: Task (virtual:nativesdk:/home/martin/bia-precision-rocko/build/../yocto/martin/meta-martin-bsp/recipes-bsp/u-boot/u-boot-tools_2016.03.bb:do_package) failed with exit code '1'SUMMARY = "U-Boot native tools"</div><div><br></div><div>Here's the recipe</div><div><br></div><div>LICENSE = "GPLv2+"</div><div>LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"</div><div>SECTION = "bootloader"</div><div><br></div><div>DEPENDS = "openssl"</div><div><br></div><div># This revision corresponds to the tag "v2016.03"</div><div># We use the revision in order to avoid having to fetch it from the</div><div># repo during parse</div><div>SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"</div><div><br></div><div>PV = "v2016.03+git${SRCPV}"</div><div><br></div><div>SRC_URI = "git://<a href="http://git.denx.de/u-boot.git;branch=master">git.denx.de/u-boot.git;branch=master</a>"</div><div><br></div><div>S = "${WORKDIR}/git"</div><div><br></div><div>EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'</div><div>EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'</div><div>EXTRA_OEMAKE_class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'</div><div><br></div><div>do_compile () {</div><div><span style="white-space:pre">      </span>oe_runmake sandbox_defconfig</div><div><span style="white-space:pre">  </span>oe_runmake cross_tools NO_SDL=1</div><div>}</div><div><br></div><div>do_install () {</div><div><span style="white-space:pre">        </span>install -d ${D}${bindir}</div><div># MJT: Looks like these are now part of U-Boot native package so commenting out</div><div>#      Can remove once this is confirmed.</div><div>#<span style="white-space:pre">    </span>install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage</div><div>#<span style="white-space:pre">    </span>ln -sf uboot-mkimage ${D}${bindir}/mkimage</div><div><br></div><div><span style="white-space:pre">   </span>install -m 0755 tools/mkenvimage ${D}${bindir}/uboot-mkenvimage</div><div><span style="white-space:pre">       </span>ln -sf uboot-mkenvimage ${D}${bindir}/mkenvimage</div><div><br></div><div><span style="white-space:pre">     </span>install -m 0755 tools/dumpimage ${D}${bindir}/uboot-dumpimage</div><div><span style="white-space:pre"> </span>ln -sf uboot-dumpimage ${D}${bindir}/dumpimage</div><div><br></div><div><span style="white-space:pre">       </span>install -m 0755 tools/img2brec.sh ${D}${bindir}/uboot-img2brec.sh</div><div><span style="white-space:pre">     </span>ln -sf uboot-img2brec.sh ${D}${bindir}/img2brec.sh</div><div><br></div><div><span style="white-space:pre">   </span>install -m 0755 tools/img2srec ${D}${bindir}/uboot-img2srec</div><div><span style="white-space:pre">   </span>ln -sf uboot-img2srec ${D}${bindir}/img2srec</div><div><br></div><div><span style="white-space:pre"> </span>install -m 0755 tools/jtagconsole ${D}${bindir}/uboot-jtagconsole</div><div><span style="white-space:pre">     </span>ln -sf uboot-jtagconsole ${D}${bindir}/jtagconsole</div><div><br></div><div><span style="white-space:pre">   </span>install -m 0755 tools/netconsole ${D}${bindir}/uboot-netconsole</div><div><span style="white-space:pre">       </span>ln -sf uboot-netconsole ${D}${bindir}/netconsole</div><div>}</div><div><br></div><div>BBCLASSEXTEND = "native nativesdk"</div><div><br></div><div><br></div><div>Many Thanks in advance, Martin.</div></div>