Trying to cross-compile OpenBLAS for ARM without Fortran compiler #4386
Unanswered
Desperado17
asked this question in
Q&A
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 |
1 reply
|
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 |
2 replies
|
Hi,did you solve this problem? could you share the way to solve it ? thanks ! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions