-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross compile to CORTEXA9 does not complete #936
Comments
There shpuld be some error before. |
In non-cross compiling, this fault with sgemm_kernel.o appears to come up when the build system is confused about the type and capabilities of the cpu (wrong combination of arguments supplied to make, or running in an emulator that provides an unusual subset of host cpu features to the virtual machine). |
Hello all - make CC=arm-linux-gnueabihf-gcc FC=arm-linux-gnueabihf-gfortran HOSTCC=gcc TARGET=CORTEXA9 Dave From: Martin Kroeker [notifications@github.com] In non-cross compiling, this fault with sgemm_kernel.o appears to come up when the build system is confused about the type and capabilities of the cpu (wrong combination of arguments supplied to make, or running in an emulator that provides an unusual subset of host cpu features to the virtual machine). � |
An d who closes this ticket? |
Would it make sense to create a wiki entry out of this (I see there is "how to build for android", but no cross-compiling tip that fits davmaz' case) ? |
Yes, that would be nice. I can outline what I did for everything to work (thanks to you). From: Martin Kroeker [notifications@github.com] Would it make sense to create a wiki entry out of this (I see there is "how to build for android, but no cross-compiling tip that fits davmaz' case) ? � |
I believe the wiki is currently open for anyone here to write. |
These steps worked: |
I put the steps that worked for me in a final comment and closed the issue. From: Martin Kroeker [notifications@github.com] I believe the wiki is currently open for anyone here to write. — |
Add an example for cross compiling ARM. |
After make clean, I ran
sudo make BINARY=32 CC=/usr/local/bin/gcc FC=/usr/local/bin/gfortran HOSTCC=gcc TARGET=CORTEXA9
This goes a LONG way forward, but dies on
ar -ru ../libopenblas_cortexa9p-r0.2.19.dev.a samax_k.o samin_k.o smax_k.o smin_k.o isamax_k.o isamin_k.o ismax_k.o ismin_k.o sasum_k.o saxpy_k.o scopy_k.o sdot_k.o sdsdot_k.o dsdot_k.o snrm2_k.o srot_k.o
...
...
zomatcopy_k_rt.o zomatcopy_k_cnc.o zomatcopy_k_rnc.o zomatcopy_k_ctc.o zomatcopy_k_rtc.o zimatcopy_k_cn.o zimatcopy_k_rn.o zimatcopy_k_ct.o zimatcopy_k_rt.o zimatcopy_k_cnc.o zimatcopy_k_rnc.o zimatcopy_k_ctc.o zimatcopy_k_rtc.o zgeadd_k.o zneg_tcopy.o zlaswp_ncopy.o lsame.o scabs1.o dcabs1.o cpuid.o
ar: sgemm_kernel.o: No such file or directory
make[1]: *** [libs] Error 1
make[1]: Leaving directory `/home/dmazzoni/Downloads/OpenBLAS/OpenBLAS-develop/kernel'
make: *** [libs] Error 1
The text was updated successfully, but these errors were encountered: