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

Package request: deno #5306

Closed
ravener opened this issue May 16, 2020 · 11 comments · Fixed by #8578
Closed

Package request: deno #5306

ravener opened this issue May 16, 2020 · 11 comments · Fixed by #8578
Labels
package request A new package was requested

Comments

@ravener
Copy link
Contributor

ravener commented May 16, 2020

Deno is a secure TypeScript runtime with V8 engine. Written in rust by the same creator as Node.js.

Recently version 1.0.0 was released so it's starting to become more stable.

GitHub: https://github.com/denoland/deno

@Grimler91 Grimler91 mentioned this issue May 20, 2020
@Grimler91 Grimler91 added the package request A new package was requested label May 20, 2020
@tomap
Copy link

tomap commented Oct 11, 2020

Hi, I tried to compile deno from sources, and there was at least one error with package sys-info which does not seem to know termux env
I believe there is already an issue open, even if it's not exactly the same context:
FillZpp/sys-info-rs#64

@kcubeterm
Copy link
Member

Sys-info(0.8.0) is now compiled successfully. But problem is rusty_v8 don't support arm64.
denoland/rusty_v8#270

@tomap
Copy link

tomap commented Feb 5, 2021

Indeed

error[E0308]: mismatched types                                                             --> /data/data/com.termux/files/home/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.16.0/build.rs:148:18                                                             |                                                                                   148 | fn platform() -> &'static str {                                                       |    --------      ^^^^^^^^^^^^ expected `&str`, found `()`                             |    |                                                                                  |    implicitly returns `()` as its body has no tail or `return` expression         
error: aborting due to previous error                                                                                                                                           For more information about this error, try `rustc --explain E0308`.                     error: could not compile `rusty_v8`

@stupidestmodder
Copy link

any news on this???

@istomyang
Copy link

Sys-info(0.8.0) is now compiled successfully. But problem is rusty_v8 don't support arm64.
denoland/rusty_v8#270

Hey! Rusty_v8 supports arm64 since 0.20.0, maybe you can try. Compiling code for arm64 needs arm CPU like Raspberry Pi , I am a newbie and don't have that device. 😔

@tomap
Copy link

tomap commented Jun 19, 2021

You can install rust on termux on your android device

Then clone the rusty_v8
Then runs cargo build -vv

It was failing lat time I checked

Here is the error you get:


error[E0308]: mismatched types
   --> build.rs:157:18
    |
157 | fn platform() -> &'static str {
    |    --------      ^^^^^^^^^^^^ expected `&str`, found `()`
    |    |
    |    implicitly returns `()` as its body has no tail or `return` expression

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `rusty_v8`

@x7y62
Copy link

x7y62 commented Aug 26, 2021

There's already a working progress to support rusty_v8 on Android. See this

@tomap
Copy link

tomap commented Aug 26, 2021

I just tested, but it does not compile on termux error: linker /data/data/com.termux/files/home/rusty_v8/./third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang not found | = note: No such file or directory (os error 2)

error: aborting due to previous error error: build failed

I checked the differences with master, but don't see much

https://github.com/denoland/rusty_v8/compare/android

@x7y62
Copy link

x7y62 commented Aug 26, 2021

Make sure you pull the submodules first or pass the --recursive flag during clone

$ git clone https://github.com/denoland/rusty_v8.git --recursive -b android

@LesVu
Copy link

LesVu commented Nov 14, 2021

I've managed to compile it on devices. It work without any problem.

@stupidestmodder
Copy link

I've managed to compile it on devices. It work without any problem.

could you provide more info about it?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package request A new package was requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants