Skip to content

Unable to cross compile for aarch64 #3189

@cyrusbehr

Description

@cyrusbehr

I am trying to cross compile for aarch64. I am using the following build steps:

test -e v0.3.14.zip || wget https://github.com/xianyi/OpenBLAS/archive/refs/tags/v0.3.14.zip
test -e OpenBLAS-0.3.14 || unzip v0.3.14.zip

cd OpenBLAS-0.3.14
make BINARY=64 CC=aarch64-linux-gnu-gcc FC=aarch64-linux-gnu-gfortran HOSTCC=gcc NOFORTRAN=1 -j4

mkdir packaged
make DESTDIR=./packaged install

The compilation fails on the following:

aarch64-linux-gnu-gcc -c -O2 -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=20 -DMAX_PARALLEL_NUMBER=1 -DBUILD_SINGLE=1 -DBUILD_DOUBLE=1 -DBUILD_COMPLEX=1 -DBUILD_COMPLEX16=1 -DVERSION=\"0.3.14\" -UASMNAME -UASMFNAME -UNAME -UCNAME -UCHAR_NAME -UCHAR_CNAME -DASMNAME=samax_k -DASMFNAME=samax_k_ -DNAME=samax_k_ -DCNAME=samax_k -DCHAR_NAME=\"samax_k_\" -DCHAR_CNAME=\"samax_k\" -DNO_AFFINITY -I.. -UDOUBLE  -UCOMPLEX -UCOMPLEX -UDOUBLE  -DUSE_ABS -UUSE_MIN ../kernel/arm64/amax.S -o samax_k.o
make[1]: *** No rule to make target '../kernel/arm64/amin.S', needed by 'samin_k.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/cyrus/work/c-sdks/3rd_party_libs/OpenBLAS-0.3.14/kernel'
Makefile:163: recipe for target 'libs' failed
make: *** [libs] Error 1

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions