Package: u-boot
Version: 2014.10+dfsg1-2
Severity: wishlist

I've tried cross building u-boot for armhf on an amd64 machine, using
crossbuild-essential-armhf from experimental and gcc-arm-linux-gnueabihf
From sid, and it builds all the targets for u-boot-imx, u-boot-omap,
u-boot-exynos and u-boot-sunxi just fine, but fails on building
u-boot-tools:

  # Avoid requirement for .config
  mkdir -p debian/build/tools/include/config
  touch debian/build/tools/include/config/auto.conf
  # Load dummy config
  make O=debian/build/tools sandbox_defconfig
  make[2]: Entering directory '/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1'
  make[3]: Entering directory 
'/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1/debian/build/tools'
    HOSTCC  scripts/basic/fixdep
    GEN     ./Makefile
    HOSTCC  scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/zconf.lex.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    HOSTLD  scripts/kconfig/conf
  #
  # configuration written to .config
  #
  make[3]: Leaving directory 
'/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1/debian/build/tools'
  make[2]: Leaving directory '/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1'
  # board-independent tools
  /usr/bin/make O=debian/build/tools -j5 \
        HOSTCC=arm-linux-gnueabihf-gcc \
        HOSTSTRIP=arm-linux-gnueabihf-strip \
        NO_SDL=1 \
      tools-only
  make[2]: Entering directory '/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1'
  make[3]: Entering directory 
'/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1/debian/build/tools'
    CHK     include/config/uboot.release
    CHK     include/generated/timestamp_autogenerated.h
    HOSTCC  scripts/basic/fixdep
    UPD     include/generated/timestamp_autogenerated.h
    UPD     include/config/uboot.release
    CHK     include/generated/version_autogenerated.h
    UPD     include/generated/version_autogenerated.h
  /bin/sh: 1: scripts/basic/fixdep: not found
  make[4]: *** [scripts/basic/fixdep] Error 127
  scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed
  make[3]: *** [scripts_basic] Error 2
  /«BUILDDIR»/u-boot-2015.04~rc3+dfsg1/Makefile:395: recipe for target 
'scripts_basic' failed
  make[3]: Leaving directory 
'/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1/debian/build/tools'
  make[2]: *** [sub-make] Error 2
  Makefile:145: recipe for target 'sub-make' failed
  make[1]: *** [override_dh_auto_build] Error 2
  make[2]: Leaving directory '/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1'
  debian/rules:28: recipe for target 'override_dh_auto_build' failed
  make[1]: Leaving directory '/«BUILDDIR»/u-boot-2015.04~rc3+dfsg1'
  make: *** [build] Error 2
  debian/rules:24: recipe for target 'build' failed
  dpkg-buildpackage: error: debian/rules build gave error exit status 2


My current workaround is to disable u-boot-tools builds when
cross-building, but this requires changes to the source package,
rather than simply being able to build using the .dsc uploaded to
debian, so is pretty sub-optimal.


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to