Unable to build ar71xx_generic due to one failed image

I've built the firmware many times before, and usually a single failure will not terminate the entire build. I don't use the re355 and couldn't care less that the file size is too large. Unfortunately, it prohibits the compile from finishing compilation of the image for my router which compiles later in the build chain.

How to skip this?

4568738 bytes (4.6 MB, 4.4 MiB) copied, 0.0224572 s, 203 MB/s
/home/user/openwrt/staging_dir/host/bin/tplink-safeloader -B EAP120 -V r8021-9e58c20ec9 -k /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/eap120-v1-kernel.bin -r /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-sysupgrade.bin -o /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-sysupgrade.bin.new -j  -S && mv /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-sysupgrade.bin.new /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-sysupgrade.bin || rm -f /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-sysupgrade.bin
cp /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-sysupgrade.bin /home/user/openwrt/bin/targets/ar71xx/generic/openwrt-ar71xx-generic-eap120-v1-squashfs-sysupgrade.bin
[ -f /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/eap120-v1-kernel.bin -a -f /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/root.squashfs ]
dd if=/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/root.squashfs >> /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-factory.bin
8923+1 records in
8923+1 records out
4568738 bytes (4.6 MB, 4.4 MiB) copied, 0.0204875 s, 223 MB/s
/home/user/openwrt/staging_dir/host/bin/tplink-safeloader -B EAP120 -V r8021-9e58c20ec9 -k /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/eap120-v1-kernel.bin -r /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-factory.bin -o /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-factory.bin.new -j   && mv /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-factory.bin.new /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-factory.bin || rm -f /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-factory.bin
cp /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-eap120-v1-squashfs-factory.bin /home/user/openwrt/bin/targets/ar71xx/generic/openwrt-ar71xx-generic-eap120-v1-squashfs-factory.bin
rm -f /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin
cp /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/vmlinux /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin
/home/user/openwrt/staging_dir/host/bin/patch-cmdline /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin 'board=RE355 mtdparts=spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro console=ttyS0,115200'
search space used is default of 16KB
/home/user/openwrt/staging_dir/host/bin/lzma e /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin -lc1 -lp2 -pb2  /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin.new
/home/user/openwrt/staging_dir/host/bin/mktplinkfw -c -H 0x0 -W 0 -L 0x80060000 -E 0x80060000 -m 1 -N "OpenWrt" -V r8021-9e58c20ec9 -k /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin -o /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin.new 
[mktplinkfw] firmware file "/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin.new" completed
[ -f /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin -a -f /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/root.squashfs ]
dd if=/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/root.squashfs >> /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin
8923+1 records in
8923+1 records out
4568738 bytes (4.6 MB, 4.4 MiB) copied, 0.0202177 s, 226 MB/s
/home/user/openwrt/staging_dir/host/bin/tplink-safeloader -B RE355 -V r8021-9e58c20ec9 -k /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/re355-v1-kernel.bin -r /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin -o /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin.new -j  -S && mv /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin.new /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin || rm -f /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin
file-system partition too big (more than 4587520 bytes): Success
[ ! -s "/home/user/openwrt/key-build" -o ! -s "/home/user/openwrt/key-build.ucert" ] || { cp "/home/user/openwrt/key-build.ucert" "/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin.ucert" ; usign -S -m "/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin" -s "/home/user/openwrt/key-build" -x "/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin.sig" ; ucert -A -c "/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin.ucert" -x "/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin.sig" ; fwtool -S "/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin.ucert" "/home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin" ; }
Cannot open message file: No such file or directory
Failed to open firmware file
make[5]: *** [Makefile:71: /home/user/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-re355-v1-squashfs-sysupgrade.bin] Error 1
make[5]: Leaving directory '/home/user/openwrt/target/linux/ar71xx/image'
make[4]: *** [Makefile:24: install] Error 2
make[4]: Leaving directory '/home/user/openwrt/target/linux/ar71xx'
make[3]: *** [Makefile:13: install] Error 2
make[3]: Leaving directory '/home/user/openwrt/target/linux'
time: target/linux/install#279.61#14.00#306.67
make[2]: *** [target/Makefile:25: target/linux/install] Error 2
make[2]: Leaving directory '/home/user/openwrt'
make[1]: *** [target/Makefile:19: /home/user/openwrt/staging_dir/target-mips_24kc_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/user/openwrt'
make: *** [/home/user/openwrt/include/toplevel.mk:218: world] Error 2

Thanks.

Hi

I have the same problem. This is not only for ar71xx, but on ramips.
The correct behaviour would be to skip these images which are too big, but I don't know how to do that.

[mktplinkfw2] *** error: images are too big

If there could be some directions on how to achieve this, it would be nice.
In this specific case, it is for wr840n-v5. How can I exclude this device from the list and compile for all others? In my case I would like to compile for all devices.