-
Notifications
You must be signed in to change notification settings - Fork 492
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
liboqs is not ready for cross-compilation #2029
Comments
Thanks for this report @embetrix . Could you please be specific what you'd expect to work (and doesn't)? Please see the bug report template to make this "actionable" (incl. improve CI testing). |
@baentsch : Thanks I updated the description |
Thanks for the clarification @embetrix . Would you be OK renaming the issue to "cross-compiling to arm64 on x64 not using emulation" then as otherwise using this toolchain file should do the trick, no? |
@baentsch the problem is more generic, I'm working on the integration of OQS for yocto/openembedded : https://en.wikipedia.org/wiki/OpenEmbedded The cross-compilation should be supported on any host (x86, x86-64, arm, arm64, riscv) to any target, right now it build and work but enabling the oqs_use_cpufeature_instructions is not possible, since the CmakeList.txt seems not to have planned this kind of situation. |
@embetrix Would you be willing to contribute a PR to support this feature as you develop the integration? |
@SWilson4 : sure I will look into it |
Describe the bug
liboqs CMake has a lot of hardocded settings and not ready to cross-compile e.g for armv8 on x86-64 hosts for example by setting target cpu features :
https://github.com/open-quantum-safe/liboqs/blob/main/CONFIGURE.md#oqs_use_cpufeature_instructions
To Reproduce
Compile:
Expected behavior
liboqs CMake shoould be adapted to enable cross-compilation : host arch != from target arch
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: