I tested the compilation and found no problems like yours Use the following steps to check
cd imagebuilder/3.1/openwrt-imagebuilder-ar71xx-nand make info|grep GL-AR300M