Trying to cross-compile OpenBLAS for ARM without Fortran compiler #4386
Replies: 3 comments 3 replies
-
In theory it should work. Are you sure that it is picking up the correct toolchain on your system ? (You may have to add something like |
Beta Was this translation helpful? Give feedback.
-
The error looks suspiciously like it is trying to include some objects that were mistakenly built for the x86_64 host earlier, and I wonder why it was picking up the system |
Beta Was this translation helpful? Give feedback.
-
Hi,did you solve this problem? could you share the way to solve it ? thanks ! |
Beta Was this translation helpful? Give feedback.
-
Trying to build OpenBlas 0.3.25 with a Linaro based Aarch64 cross-compiler chain that has no Fortran compiler. CMake gets the configure flags
-DTARGET=ARMV8 -DBUILD_SHARED_LIBS=1
according to
#3539
Should be able to build lapack through f2c, right? Apparently, there is still a problem:
[ 82%] Built target LAPACKE
[ 82%] Linking Fortran shared library lib/libopenblas.so
/usr/bin/ld: interface/CMakeFiles/interface.dir/CMakeFiles/scopy.c.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: interface/CMakeFiles/interface.dir/CMakeFiles/scopy.c.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: interface/CMakeFiles/interface.dir/CMakeFiles/scopy.c.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: interface/CMakeFiles/interface.dir/CMakeFiles/scopy.c.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: interface/CMakeFiles/interface.dir/CMakeFiles/scopy.c.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: interface/CMakeFiles/interface.dir/CMakeFiles/scopy.c.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: interface/CMakeFiles/interface.dir/CMakeFiles/scopy.c.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: interface/CMakeFiles/interface.dir/CMakeFiles/scopy.c.o: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/openblas_shared.dir/build.make:12709: lib/libopenblas.so.0.3] Error 1
make[1]: *** [CMakeFiles/Makefile2:428: CMakeFiles/openblas_shared.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Am I doing something wrong?
Regards
Beta Was this translation helpful? Give feedback.
All reactions