Skip to content
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

Building liboqs for androids x86 abi is not supported #2

Open
Hatzen opened this issue Jan 12, 2021 · 3 comments
Open

Building liboqs for androids x86 abi is not supported #2

Hatzen opened this issue Jan 12, 2021 · 3 comments

Comments

@Hatzen
Copy link
Owner

Hatzen commented Jan 12, 2021

The checkout version of liboqs is from 02.01.21 or at least near to it..
Current error message is saved here: 7bfa9a3#diff-af3adf8234fdbd907a0b3b37970a4437aefa0f94f37df700c548299c3ea47e3b

@Hatzen
Copy link
Owner Author

Hatzen commented Feb 2, 2021

probably as x86 is a 32-bit file and compiling machine is a 64bit system?

@Hatzen
Copy link
Owner Author

Hatzen commented Apr 1, 2021

Getting error when compiling

root@LAPTOP-xxx:/home/hatzen/liboqs-test-android# bash scripts/build-android.sh /home/hatzen/ndk/android-ndk-r21 -s 19 -a x86
Valid directory for NDK at /home/hatzen/ndk/android-ndk-r21
Compiling for ABI x86
Compiling for SDK 19
Cleaning up previous build
Building in directory build
-- The ASM compiler identification is Clang
-- Found assembler: /home/hatzen/ndk/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Check for working C compiler: /home/hatzen/ndk/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Check for working C compiler: /home/hatzen/ndk/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:32 (message):
  Unknown or unsupported processor: i686


-- Configuring incomplete, errors occurred!
See also "/home/hatzen/liboqs-test-android/build/CMakeFiles/CMakeOutput.log".

@Hatzen
Copy link
Owner Author

Hatzen commented Sep 6, 2021

Maybe try

-m32  
-march=i686
-mtune=i686

or similar?

https://link.springer.com/chapter/10.1007/978-1-4842-0100-8_12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant