I am trying to build ATLAS on an ARM board. When calling the configure script, I use -Fa alg '-fPIC'. The static library builds correctly, and make check and make ptcheck report no errors. However, when running make shard in the lib directory, I am getting the following error message:
/usr/bin/ld: cannot find rpath-link /usr/loca/lib: No such file or directory
/usr/bin/ld: liblapack.a(ATL_dgelqf.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object: recompile wirh -fPIC
This is quite strange because /usr/loca/lib exists and all .a ATLAS libraries are in that directory.
Any idea why this is error is happening and how can I fix it?