-
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 for ARMV8 #4011
Comments
the "permission denied" suggests you do not have write access in your OpenBLAS source directory. Did you perhaps unpack the source archive as root ? |
I simply cloned the repo and tried compiling it using the parameters I mentioned. Also, I am able to natively compile OpenMP using just
In case this helps:
|
Strange, I cannot reproduce this (without doing something evil, as follows...) . The error message looks a bit like it is trying to invoke libopenblas.a at this point, instead of running a command (which would be either |
I'm also able to reproduce the error in an Ubuntu 20.04 Docker environment using my exact make line as shown earlier. Here is my make.inc file
Changing my build arguments to this fixed the issue!
I'll leave this ticket open for a short while to allow any additional remarks. |
Thanks, that appears to confirm my idea - but it is still unclear to me why (and where) you would have an empty |
Well, the main system I tried on is Pop-OS 22.04. The Docker image is Ubuntu 20.04. The behavior was the same either way. I haven't tested on any other environment (e.g., Arch or Slackware). I believe I can share my Dockerfile if there is any additional interest in tracking down the issue. Otherwise, I'm happy to close this ticket. Please advise. I appreciate all your help! |
Can you check what running |
I have not hand-edited any part of the OpenMP project. My only input is manually setting environment vars at the command line, appended to
As an aside, I can compile natively just fine without these issues by simply executing |
Thanks, I guess it will have to remain a mystery then - anyway glad that we could solve the problem. |
I have the same Issue when cross compile for armv8 on Ubuntu22.04 |
Hmm, does your cross-compiler toolchain have its own ranlib (named with the same prefix as your cross-gcc, so something like aarch64-linux-gnu-ranlib ?) Maybe the flaw in the current OpenBLAS Makefile is assuming that such a program will always exist (and be required) if there are toolchain-gcc and toolchain-ld present. |
|
Thank you - however I cannot reproduce this on Ubuntu 22 with the gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu tarball. The library is compiled without any issues, and lapack-netlib/make.inc got created with the line |
I do some check about it. I found that, actually, |
the |
Which version are you trying to build ? I still cannot reproduce this with a fresh checkout of the current |
I'm at the newest commit. I can see the #4010 in my local repo |
Seems |
|
assuming that works for all the funky combinations of CC="my compiler -with-options" that started this mess... |
if When the compiler_name has the leading directory, the |
|
the |
I'm trying to cross compile for ARMV8. My build parameters and errors are as followed:
make CC=aarch64-linux-gnu-gcc-11 FC=aarch64-linux-gnu-gfortran-11 HOSTCC=gcc-11 TARGET=CORTEXA73 USE_OPENMP=1
OR
make CC=aarch64-linux-gnu-gcc-11 FC=aarch64-linux-gnu-gfortran-11 HOSTCC=gcc-11 TARGET=ARMV8 USE_OPENMP=1
The text was updated successfully, but these errors were encountered: