Compilation of u-boot-toradex 2016.11-toradex

I was able to compile u-boot from source like described in the Toradex Knowledge Base once executing make apalis-tk1_defconfig and make -j3 2>&1 | tee build.log. However when I compiled it a second time (make -j3 2>&1 | tee build.log) without any modifications of the sources I got the following errors:

common/built-in.o: In function `bootdelay_process':
/home/kromer/ws_gitlab/u-boot-toradex/common/autoboot.c:300: undefined reference to `bootcount_load'
/home/kromer/ws_gitlab/u-boot-toradex/common/autoboot.c:302: undefined reference to `bootcount_store'
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils) 2.25.0 Linaro 2015_10 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64-ex40/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_25-branch/bfd/elf32-arm.c:7827
arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils) 2.25.0 Linaro 2015_10 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64-ex40/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_25-branch/bfd/elf32-arm.c:7827
arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not found in the linker script
arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation
make: *** [u-boot] Error 1

The build of the configuration (make apalis-tk1_defconfig) stated less files in the output than in the first build:

~/u-boot-toradex$ make apalis-tk1_defconfig
#
# configuration written to .config
#

I used the u-boot git branch “2016.11-toradex” like described in the version mapping with tag Apalis_TK1_LinuxImageV2.7Beta1_20170112.

After checking out all of my remote repository files and building again I was able to build u-boot several times in sequence without issues. Sorry for this “false positive”!

(I just missed some local changes. In include/configs/apalis-tk1.h adding #include CONFIG_BOOTCOUNT_LIMIT caused this behavior.)