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

wasm32/wasmbind: cannot find function tm_to_datetime in this scope #740

Closed
AmateurECE opened this issue Jul 26, 2022 · 1 comment
Closed

Comments

@AmateurECE
Copy link
Contributor

Compiling at 0903ab1 for target wasm32-unknown-unknown with feature wasmbind enabled results in a compilation error:

[edtwardy@Hackintosh trunk-test]$ cargo build --target wasm32-unknown-unknown
warning: URL fragment `#0903ab1a` in git URL is ignored for dependency (chrono). If you were trying to specify a specific git revision, use `rev = "0903ab1a"` in the dependency declaration.
    Updating git repository `https://github.com/chronotope/chrono#0903ab1a`
   Compiling chrono v0.4.20-beta.1 (https://github.com/chronotope/chrono#0903ab1a#0903ab1a)
error[E0425]: cannot find function `tm_to_datetime` in this scope
   --> /home/edtwardy/.cargo/git/checkouts/chrono-4fedc6b82b24d624/0903ab1/src/offset/local/stub.rs:17:5
    |
17  |     tm_to_datetime(Timespec::now().local())
    |     ^^^^^^^^^^^^^^ help: a function with a similar name exists: `tm_to_time`
...
199 | fn tm_to_time(tm: &Tm) -> i64 {
    | ----------------------------- similarly named function `tm_to_time` defined here

For more information about this error, try `rustc --explain E0425`.

build-error.log

@esheppa
Copy link
Collaborator

esheppa commented Jul 28, 2022

This should be solved by #746

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

Successfully merging a pull request may close this issue.

2 participants