The Boost 1.58 can't support build for MIPS32 on a x86_64 machine, the error message is" unrecognized command line option '-m32'". The Boost.Build for version 1.58.0 requires a patch for gcc.jam. This patch prevents bjam from adding -m32 and -m64 options to gcc compiler, when compiling for targets that use the mips1 arch.
Bug discussed here: https://github.com/openwrt/packages/issues/1160