You can use Openembedded [1] / Yocto project [2] for cross compiling octave, it builds the toolchain for you. For an octave recipe you can use and/or adapt this one: [3]