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

Build failed due to mismatch type error on android termux #64

Closed
hnmn opened this issue Jun 7, 2020 · 3 comments
Closed

Build failed due to mismatch type error on android termux #64

hnmn opened this issue Jun 7, 2020 · 3 comments

Comments

@hnmn
Copy link

hnmn commented Jun 7, 2020

I was trying to build deno from source
Using cargo but sys-info gives
Following error

error[E0308]: mismatched types
   --> /data/data/com.termux/files/home/.cargo/registry/src/github.com-1ecc6299db9ec823/sys-info-0.7.0/lib.rs:618:22
    |
618 | pub fn boottime() -> Result<timeval, Error> {
    |        --------      ^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found `()`
    |        |
    |        implicitly returns `()` as its body has no tail or `return` expression
    |
    = note:   expected enum `std::result::Result<libc::timeval, Error>`
            found unit type `()`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
The following warnings were emitted during compilation:

warning: c/linux.c:96:11: warning: implicitly declaring library function 'index' with type 'char *(const char *, int)' [-Wimplicit-function-declaration]
warning:                 mount = index(procline, ' ');
warning:                         ^
warning: c/linux.c:96:11: note: include the header <strings.h> or explicitly provide a declaration for 'index'
warning: 1 warning generated.

error: could not compile `sys-info`.

I'm on aarch64

@tomap
Copy link

tomap commented Oct 11, 2020

Hi, I just ran into an issue while trying to build deno from sources

error[E0308]: mismatched types
--> /data/data/com.termux/files/home/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/sys-info-0.7.0/lib.rs:618:22
| 618 | pub fn boottime() -> Result<timeval, Error> { | -------- ^^^^^^^^^^^^^^^^^^^^^^ expected enum std::result::Result, found () | | | implicitly returns () as its body has no tail or return expression | = note: expected enum std::result::Result<libc::timeval, Error>
found unit type () warning: unused doc comment --> /data/data/com.termux/files/home/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/lexical-core-0.7.4/src/ftoa/ryu.rs:25:1 |
25 | /// d must be non-special (NaN or infinite), non-negative,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations |
= help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion error: aborting due to previous error; 1

Not sure I pasted enough information. If you need more, please ask

@JOT85
Copy link
Contributor

JOT85 commented Jan 8, 2021

I believe this was fixed by #70?
If so, can this issue be closed?

@hnmn hnmn closed this as completed Jan 9, 2021
@tomap
Copy link

tomap commented Jan 18, 2021

Maybe publish a new 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

3 participants