We are working on cross compiling octave for an arm architecture. We need to also cross compile the dependencies included BLAS and LAPACK. Got non-optimized version of BLAS cross compiled no problem (obviously want to optimize after proof of concept worked out), but got errors such as these when cross compiling LAPACK:
./testlsame: 1: Syntax error: word unexpected (expecting ")")
./testslamch: 1: Syntax error: word unexpected (expecting ")")
./testdlamch: 1: Syntax error: word unexpected (expecting ")")
./testsecond: 1: Syntax error: word unexpected (expecting ")")
./testdsecnd: 1: Syntax error: word unexpected (expecting ")")
./testieee: 1: Syntax error: word unexpected (expecting ")")
./testversion: 1: Syntax error: word unexpected (expecting ")")
It seems it is trying to run some tests on the build machine (linux x86), but these tests were cross compiled for an arm architecture, or at least that is what I assume is happening. So, is there a basic guide for cross compiling LAPACK? Is there a prescribed workaround, like manually telling the make flow what is supported?
Thanks,
Corbin

