Ok. I looked at the image and it is clearly broken. I looked up the builder log:
http://phase1.builds.lede-project.org/builders/ipq40xx%2Fgeneric/builds/163/steps/images/logs/stdio
> >/var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 114: "41150" >> 24 | ("41150" & 0xff0000) >> 8 | ("41150" & 0xff00) << 8 | ("41150" & 0xff) << 24 : syntax error: operand expected (error token is ""41150" >> 24 | ("41150" & 0xff0000) >> 8 | ("41150" & 0xff00) << 8 | ("41150" & 0xff) << 24 ")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 114: "20316160" >> 24 | ("20316160" & 0xff0000) >> 8 | ("20316160" & 0xff00) << 8 | ("20316160" & 0xff) << 24 : syntax error: operand expected (error token is ""20316160" >> 24 | ("20316160" & 0xff0000) >> 8 | ("20316160" & 0xff00) << 8 | ("20316160" & 0xff) << 24 ")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 135: "" & 0xff: syntax error: operand expected (error token is """ & 0xff")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 136: >> 8: syntax error: operand expected (error token is ">> 8")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 135: "" & 0xff: syntax error: operand expected (error token is """ & 0xff")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 136: >> 8: syntax error: operand expected (error token is ">> 8")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 114: "53034" >> 24 | ("53034" & 0xff0000) >> 8 | ("53034" & 0xff00) << 8 | ("53034" & 0xff) << 24 : syntax error: operand expected (error token is ""53034" >> 24 | ("53034" & 0xff0000) >> 8 | ("53034" & 0xff00) << 8 | ("53034" & 0xff) << 24 ")
> cp /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx/tmp/openwrt-ipq40xx-zyxel_nbg6617-squashfs-sysupgrade.bin /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/bin/targets/ipq40xx/generic/openwrt-ipq40xx-zyxel_nbg6617-squashfs-sysupgrade.bin
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 114: "2248620" >> 24 | ("2248620" & 0xff0000) >> 8 | ("2248620" & 0xff00) << 8 | ("2248620" & 0xff) << 24 : syntax error: operand expected (error token is ""2248620" >> 24 | ("2248620" & 0xff0000) >> 8 | ("2248620" & 0xff00) << 8 | ("2248620" & 0xff) << 24 ")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 135: "" & 0xff: syntax error: operand expected (error token is """ & 0xff")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 136: >> 8: syntax error: operand expected (error token is ">> 8")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 135: "" & 0xff: syntax error: operand expected (error token is """ & 0xff")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 136: >> 8: syntax error: operand expected (error token is ">> 8")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 135: "" & 0xff: syntax error: operand expected (error token is """ & 0xff")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 136: >> 8: syntax error: operand expected (error token is ">> 8")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 114: "56991" >> 24 | ("56991" & 0xff0000) >> 8 | ("56991" & 0xff00) << 8 | ("56991" & 0xff) << 24 : syntax error: operand expected (error token is ""56991" >> 24 | ("56991" & 0xff0000) >> 8 | ("56991" & 0xff00) << 8 | ("56991" & 0xff) << 24 ")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 135: "" & 0xff: syntax error: operand expected (error token is """ & 0xff")
> /var/lib/buildbot/slaves/slashdirt-02/MAIN/build/scripts/make-ras.sh: line 136: >> 8: syntax error: operand expected (error token is ">> 8")
so it's clear that the builder hit a problem in the make-ras.sh's to_be32. The question is what's the cause? A incompatible bash interpreter, or an obsolete bash? @jow (can you tell me what the distro + packages the slashdirt builder
are running?)
As for a fix: I did update the make-ras.sh script in my LEDE-IPQ40XX (the OpenWrt version is older) a while long ago (maybe 2-3 month now?) to address issues that came up when I was testing the script with OpenWrt's busybox and goodol' Mac OS X 10.5' bash.
I opted to integrate the to_be32 and append_bin into a new append_be32() that worked on all DUTs.