Did you put openwrt cc packages directly in the LEDE imagebuilder? That will not work. The toolchain is different.