-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[OpenSSL] Cross compile OpenSSL for armv8 unsupported arm archicecture #99
Comments
Hello! Is there some news about the fix? |
@carpajr hello! not yet, but I am looking at OpenSSL issues. |
@carpajr in your profile:
I don't see you're setting custom
is this gcc binary an actual cross-compiler? could you give me the output of the following commands:
|
@SSE4, I've defined the profile for cross-compiling:
It works for armv6 and armv7. |
@carpajr so do I understand correctly it works for |
@SSE4, you understood right. The compilation process works correctly only for armv6 and armv7. I'm using Conan for a few days, and I'm not sure that compilation worked before for armv8.
|
I believe you are using the wrong tool chain if you want to target aarch64. You need a tool chain where SIZEOF_PTRDIFF_T is 8 |
build expat with gcc8
@stephen-webb I have a similar problem, my toolchain supports aarch64 according to the README. But Does it mean that it's broken completely (cannot compile c++/c code)? Or it just cannot process asm? |
I have a similar problem too, but I use Clang as compiler as in this link: https://gitlab.com/blurt/blurt/-/issues/126 |
interesting, maybe toolchain requires an additional flag to get |
Yeah, I think the problem is compiler Do you have any ideas @SSE4 ? |
@MasterPi-2124 from your logs I see compiler executable is
(okay, it's under ccache wrapper, but it should be completely transparent) I don't now what exactly is this
(I need an output of that or similar command) |
the failing code is here: https://github.com/openssl/openssl/blob/master/crypto/arm_arch.h#L55 |
Here is the output of your commands. Could you explain each of them, please?
Thank you. |
but you may also notice:
it means compiler produces code for x86_64 (aka amd64). therefore, it is rejected by the checks in |
That seems strange. I asked my friend, who is using Ubuntu 20.04 x86_64, clang 12.0.1, but he built it successfully. |
I faced the same issue, in my case I have used a specific toolchain for the ARM Cortex-A53 (armv8) camera which works under 32-bit Linux. I feel a serious gap in my knowledge here... How can tell to Conan generate a 32-bit code for 'armv8'? cc @SSE4 @stephen-webb maybe you have some suggestions/ideas? |
Use the PATH to get a valid cmake on CentOS 6.
Hi there! Is this problem still present nowadays? Thank you in advance :) |
moved from https://github.com/conan-community/community/issues/220, by @kevswims
Description of Problem, Request, or Question
I am trying to cross compile OpenSSL with a yocto toolchain. My issue looks similar to https://github.com/conan-community/community/issues/157 but I that is already been fixed so I am not quite sure what is causing this.
The error output says
error "unsupported ARM architecture"
Package Details (Include if Applicable)
Steps to reproduce (if Applicable)
Build logs (Include if Available)
It looks like the
linux-aarch64
is getting passed into the./Configure
call but it is not setting the correct macro in GCC to set the architecture correctly in https://github.com/openssl/openssl/blob/OpenSSL_1_1_1-stable/crypto/arm_arch.hThe text was updated successfully, but these errors were encountered: