herumi / bls

288 stars 132 forks source link

Android ARMv7 #95

Closed magtamas closed 1 year ago

magtamas commented 1 year ago

Hi! I import .so files into my android project, everything is fine until i install my app to device with ARMv7 processor. I have these abiFilters, and it should work based on that, but it is not:

abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'

Can you please help me, how to build .so files for android with ARMv7 support? Thx

herumi commented 1 year ago

What error do you get? Could you show me the minimum code to reproduce the error? I'll investigate it, but it will take time to prepare the environment.

magtamas commented 1 year ago

I got this error:

2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A Build fingerprint: 'samsung/a13venseea/a13ve:12/SP1A.210812.016/A137FXXS1AVJ1:user/release-keys' 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A Revision: '2' 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A ABI: 'arm' 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A Processor: '7' 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A Timestamp: 2023-01-11 14:43:32.690702968+0100 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A Process uptime: 2s 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A Cmdline: **** 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A pid: 6773, tid: 6773, name: .benker.app.tst >>> **** <<< 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A uid: 10291 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7309f59c 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A r0 00000006 r1 994b9231 r2 fa7c3d06 r3 14af0b0d 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A r4 00000005 r5 7309f59c r6 14af0abe r7 ffa1e700 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A r8 fe9f0f54 r9 ffa1e828 r10 ffa1e760 r11 fffffffb 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A ip 00000000 sp ffa1e6b0 lr ba253b47 pc ba253b60 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A backtrace: 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A #00 pc 00042b60 /data/app/~~0P2sTkSTvZ48mdxKTOX0bg==/****-NSrkZzuQ4Tdd_D17NWikWg==/base.apk!libblsBase.so (mcl::bint::divSmall(unsigned int*, unsigned int, unsigned int*, unsigned int, unsigned int const*, unsigned int)+148) (BuildId: 5e4110c711a6422b54138a4d2a935cb0e8afcd0b) 2023-01-11 14:43:32.965 6850-6850 DEBUG pid-6850 A #01 pc 000430ed /data/app/~~0P2sTkSTvZ48mdxKTOX0bg==/****-NSrkZzuQ4Tdd_D17NWikWg==/base.apk!libblsBase.so (mcl::bint::div(unsigned int*, unsigned int, unsigned int*, unsigned int, unsigned int const*, unsigned int)+192) (BuildId: 5e4110c711a6422b54138a4d2a935cb0e8afcd0b) 2023-01-11 14:43:32.966 6850-6850 DEBUG pid-6850 A #02 pc 0004e9b3 /data/app/~~0P2sTkSTvZ48mdxKTOX0bg==/****-NSrkZzuQ4Tdd_D17NWikWg==/base.apk!libblsBase.so (mcl::VintT<mcl::vint::FixedBuffer>::udiv(mcl::VintT<mcl::vint::FixedBuffer>*, mcl::VintT<mcl::vint::FixedBuffer>&, mcl::vint::FixedBuffer const&, unsigned int, mcl::vint::FixedBuffer const&, unsigned int)+186) (BuildId: 5e4110c711a6422b54138a4d2a935cb0e8afcd0b) 2023-01-11 14:43:32.966 6850-6850 DEBUG pid-6850 A #03 pc 00069c5f /data/app/~~0P2sTkSTvZ48mdxKTOX0bg==/****-NSrkZzuQ4Tdd_D17NWikWg==/base.apk!libblsBase.so (mcl::VintT<mcl::vint::FixedBuffer>::setRand(bool*, mcl::VintT<mcl::vint::FixedBuffer> const&, mcl::fp::RandGen)+182) (BuildId: 5e4110c711a6422b54138a4d2a935cb0e8afcd0b) 2023-01-11 14:43:32.966 6850-6850 DEBUG pid-6850 A #04 pc 00069a3d /data/app/~~0P2sTkSTvZ48mdxKTOX0bg==/****-NSrkZzuQ4Tdd_D17NWikWg==/base.apk!libblsBase.so (mcl::VintT<mcl::vint::FixedBuffer>::isPrime(bool*, mcl::VintT<mcl::vint::FixedBuffer> const&, int)+540) (BuildId: 5e4110c711a6422b54138a4d2a935cb0e8afcd0b) 2023-01-11 14:43:32.966 6850-6850 DEBUG pid-6850 A #05 pc 000455e1 /data/app/~~0P2sTkSTvZ48mdxKTOX0bg==/****-NSrkZzuQ4Tdd_D17NWikWg==/base.apk!libblsBase.so (mcl::SquareRoot::set(bool*, mcl::VintT<mcl::vint::FixedBuffer> const&, bool)+116) (BuildId: 5e4110c711a6422b54138a4d2a935cb0e8afcd0b) 2023-01-11 14:43:32.966 6850-6850 DEBUG pid-6850 A #06 pc 00045151 /data/app/~~0P2sTkSTvZ48mdxKTOX0bg==/****-NSrkZzuQ4Tdd_D17NWikWg==/base.apk!libblsBase.so (mcl::fp::Op::init(mcl::VintT<mcl::vint::FixedBuffer> const&, unsigned int, int, mcl::fp::Mode, unsigned int)+4832) (BuildId: 5e4110c711a6422b54138a4d2a935cb0e8afcd0b) 2023-01-11 14:43:32.966 6850-6850 DEBUG pid-6850 A #07 pc 0004e3bd /data/app/~~0P2sTkSTvZ48mdxKTOX0bg==/****-NSrkZzuQ4Tdd_D17NWikWg==/base.apk!libblsBase.so (mcl::FpT<mcl::bn::local::FrTag, 256u>::init(bool*, int, mcl::VintT<mcl::vint::FixedBuffer> const&, mcl::fp::Mode)+52) (BuildId: 5e4110c711a6422b54138a4d2a935cb0e8afcd0b)

magtamas commented 1 year ago

I close this issue, because i have new informations. Not the ARMv7 the problem. I open for new issue:

https://github.com/herumi/bls/issues/96