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

luv is supported arm64 or not #112

Closed
zhangyi opened this issue Feb 9, 2015 · 11 comments
Closed

luv is supported arm64 or not #112

zhangyi opened this issue Feb 9, 2015 · 11 comments
Labels

Comments

@zhangyi
Copy link

zhangyi commented Feb 9, 2015

I want to use luv for cocos2d-x game, but don't sure lua is supported arm64 or not.

@imzyxwvu
Copy link
Contributor

imzyxwvu commented Feb 9, 2015

lua does support arm64. luajit seems also working on arm64.

@creationix
Copy link
Member

I don't have any arm64 hardware to test on. Is this for new iOS/android
devices?

As far as I know, luv should support it. Its simply bindings between Lua
and libuv.
On Feb 9, 2015 12:22 AM, "imzyxwvu" notifications@github.com wrote:

lua does support arm64. luajit seems also working on arm64.


Reply to this email directly or view it on GitHub
#112 (comment).

@imzyxwvu
Copy link
Contributor

imzyxwvu commented Feb 9, 2015

iphone 5s and newer uses ARM64 processor. i got luajit and luv working on a shell of a jailbroken ios 8.1.2 iphone 5.

@rphillips
Copy link
Member

wow. sweet

@creationix
Copy link
Member

@imzyxwvu, how did you build it? I just tried luvi in an aarch64 linaro chroot (using qemu-aarch64-static) and luajit fails saying architecture not supported.

@imzyxwvu
Copy link
Contributor

imzyxwvu commented Mar 4, 2015

@creationix i built one for iOS, not ARM64 but should work on it. luajit built for ios won't enable jit because Apple just allow signed native code.

@imzyxwvu
Copy link
Contributor

imzyxwvu commented Mar 4, 2015

As far as I know, luajit-2.1 has official support that makes sure it works on ARM64 devices: http://repo.or.cz/w/luajit-2.0.git/blob_plain/refs/heads/v2.1:/doc/install.html
cocos2d-x is a cross-platform mobile game engine based on Lua so what zhangyi needs might be if it works on new iPhone models and maybe some new Android phones too.
Now luajit-2.0 works on my jailbroken ARM32 iPhone and Apple provides backward support for ARM32 applications on ARM64 devices. So I could only tell luajit-2.0 works on ARM64 iOS device.

@creationix
Copy link
Member

Luajit 2.1 is making progress on arm64. See https://github.com/luajit/luajit/issues?utf8=%E2%9C%93&q=is%3Aissue++64+

@creationix
Copy link
Member

Also see the arm64 tag over there.

@creationix
Copy link
Member

creationix commented Aug 4, 2016

I got a new odroid C2 and just built luvit!

A small patch was required to luv to allow luajit to configure properly. e4f2a80

There is still some issue in luvi's openssl asm code, but if you build with with the regular instead of the regular-asm mode, it works great on the odroid ubuntu image.

tim@odroid64:~/lit$ luvi -v
luvi v2.7.5
rex: 8.37 2015-04-28
libuv: 1.9.1
ssl: OpenSSL 1.0.2g  1 Mar 2016, lua-openssl 0.5.1
tim@odroid64:~/lit$ lit -v
lit version: 3.4.3
luvi version: v2.7.5
tim@odroid64:~/lit$ luvit -v
luvit version: 2.11.5
luvi version: v2.7.5
rex version: 8.37 2015-04-28
libuv version: 1.9.1
ssl version: OpenSSL 1.0.2g  1 Mar 2016, lua-openssl 0.5.1
tim@odroid64:~/lit$ uname -a
Linux odroid64 3.14.65-73 #1 SMP PREEMPT Tue Aug 2 08:21:02 BRT 2016 aarch64 aarch64 aarch64 GNU/Linux
tim@odroid64:~/lit$ file `which luvi`
/usr/local/bin/luvi: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=b503f3aacc86539b1f21f68fa1d4f3d6cf57a643, not stripped
tim@odroid64:~/lit$ ls -lh `which luvi`
-rwxr-xr-x 1 tim tim 3.4M Aug  4 23:07 /usr/local/bin/luvi

@zhaozg
Copy link
Member

zhaozg commented May 31, 2019

luv is really supported arm64/aarch64 when use luajit v2.1

@zhaozg zhaozg closed this as completed May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants