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

[Cross Compile] cannot cross compile on arm/v6 and arm/v7 architecture #1859

Closed
ZhiHanZ opened this issue Sep 16, 2021 · 1 comment
Closed
Labels
C-bug Category: something isn't working

Comments

@ZhiHanZ
Copy link
Collaborator

ZhiHanZ commented Sep 16, 2021

Summary
when compile on arm/v6 and arm/v7 architecture the following error log occured, compiler succeed on arm64 for cross compile

error[E0277]: the trait bound `u64: ToUsize` is not satisfied
   --> /cargo/git/checkouts/msql-srv-62b5153e0120bb3a/bb7ba7b/src/commands.rs:39:44
    |
39  |                 nom::bytes::complete::take(size)(i)?
    |                                            ^^^^ the trait `ToUsize` is not implemented for `u64`
    |
note: required by a bound in `nom::bytes::complete::take`
   --> /cargo/registry/src/github.com-1ecc6299db9ec823/nom-7.0.0/src/bytes/complete.rs:406:6
    |
406 |   C: ToUsize,
    |      ^^^^^^^ required by this bound in `nom::bytes::complete::take`

How to replicate

cross --version
cross 0.1.16
info: syncing channel updates for 'nightly-2021-09-11-x86_64-unknown-linux-gnu'

  nightly-2021-09-11-x86_64-unknown-linux-gnu unchanged - rustc 1.57.0-nightly (b69fe5726 2021-09-10)

cargo 1.56.0-nightly (18751dd3f 2021-09-01)
make cross-compile-debug 
@ZhiHanZ ZhiHanZ added the C-bug Category: something isn't working label Sep 16, 2021
@Xuanwo
Copy link
Member

Xuanwo commented Jul 2, 2022

Not used anymore, closing.

@Xuanwo Xuanwo closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants