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

armv7 sqlite is compiled with IDIV #524

Closed
crnflke opened this issue Jul 28, 2020 · 1 comment
Closed

armv7 sqlite is compiled with IDIV #524

crnflke opened this issue Jul 28, 2020 · 1 comment

Comments

@crnflke
Copy link

crnflke commented Jul 28, 2020

The included ARMV7 sqlite library in 3.32.3.1 is compiled with idiv instructions which are not supported on some Cortex-A series processors (for example the Cortex-A8 and the Cortex-A9 do not include it).

The dockcross people have spotted the same issue (dockcross/dockcross#290) and have a special dockcross for this - https://github.com/dockcross/dockcross/tree/master/linux-armv7a

I did a test recompile with this alternate dockcross image and this then worked correctly on our system (although as a note the CROSS_PREFIX changes to

/usr/xcc/arm-cortexa8_neon-linux-gnueabihf/bin/arm-cortexa8_neon-linux-gnueabihf- 

If you want to ship both versions then it is possible to determine if an ARM processor has it as it seems to indicate it in /proc/cpuinfo. On our imx6 we get

Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 

And the internet suggests that a Cortex A-15 will yield

Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt

(source: https://pyra-handheld.com/boards/threads/omap5432-at-home.75874/)

@xerial
Copy link
Owner

xerial commented Jul 28, 2020

Thanks for the report!

So it seems just using linux-armv7a dockcross image will fork for the maximum compatibilities. Let me try this cross compiler version.

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

2 participants