BurntSushi / ucd-generate

A command line tool to generate Unicode tables as source code.
Apache License 2.0
93 stars 21 forks source link

Fails to build on 32-bit mips/arm: the trait `regex_automata::StateID` is not implemented for `u64` #13

Closed infinity0 closed 4 years ago

infinity0 commented 5 years ago

https://buildd.debian.org/status/package.php?p=rust-ucd-generate&suite=sid

https://buildd.debian.org/status/fetch.php?pkg=rust-ucd-generate&arch=mipsel&ver=0.2.1-1&stamp=1565069166&raw=0

   Compiling ucd-generate v0.2.1 (/<<PKGBUILDDIR>>)
     Running `CARGO_PKG_VERSION_PRE= CARGO_PKG_HOMEPAGE='https://github.com/BurntSushi/ucd-generate' CARGO_PKG_REPOSITORY='https://github.com/BurntSushi/ucd-generate' CARGO_PRIMARY_PACKAGE=1 CARGO_PKG_VERSION_PATCH=1 CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_NAME=ucd-generate CARGO_PKG_DESCRIPTION='A program for generating packed representations of the Unicode character
database that can be efficiently searched.
' CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_AUTHORS='Andrew Gallant <jamslam@gmail.com>' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' CARGO_PKG_VERSION=0.2.1 rustc --crate-name ucd_generate src/main.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=9ab98c81f210928d -C extra-filename=-9ab98c81f210928d --out-dir /<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps --target mipsel-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern byteorder=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libbyteorder-3e5d722a6d0ec6e8.rlib --extern clap=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libclap-5f7ca4d17efee90c.rlib --extern fst=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libfst-b10846890d7a7ac2.rlib --extern regex_automata=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libregex_automata-17bd458206005a4e.rlib --extern ucd_parse=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libucd_parse-9d99ee4ae391a19e.rlib --extern ucd_trie=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libucd_trie-8f97c9bd47582f20.rlib --extern ucd_util=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libucd_util-da5b2e49a7fb7143.rlib -C debuginfo=2 --cap-lints warn -C linker=mipsel-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/ucd-generate-0.2.1`
error[E0599]: no method named `to_u64` found for type `regex_automata::DenseDFA<std::vec::Vec<usize>, usize>` in the current scope
  --> src/regex.rs:29:31
   |
29 |                 let dfa = dfa.to_u64()?.to_sparse()?;
   |                               ^^^^^^ help: there is a method with a similar name: `to_u16`

error[E0599]: no method named `to_u64` found for type `regex_automata::DenseDFA<std::vec::Vec<usize>, usize>` in the current scope
  --> src/regex.rs:49:31
   |
49 |                 let dfa = dfa.to_u64()?;
   |                               ^^^^^^ help: there is a method with a similar name: `to_u16`

error[E0277]: the trait bound `u64: regex_automata::StateID` is not satisfied
  --> src/regex.rs:81:34
   |
81 |                 let re = builder.build_with_size_sparse::<u64>(&pattern)?;
   |                                  ^^^^^^^^^^^^^^^^^^^^^^ the trait `regex_automata::StateID` is not implemented for `u64`

error[E0277]: the trait bound `u64: regex_automata::StateID` is not satisfied
  --> src/regex.rs:81:26
   |
81 |                 let re = builder.build_with_size_sparse::<u64>(&pattern)?;
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `regex_automata::StateID` is not implemented for `u64`
   |
   = note: required by `regex_automata::SparseDFA`

error[E0277]: the trait bound `u64: regex_automata::StateID` is not satisfied
  --> src/regex.rs:82:21
   |
82 |                 wtr.sparse_regex(args.name(), &re)?;
   |                     ^^^^^^^^^^^^ the trait `regex_automata::StateID` is not implemented for `u64`

error[E0277]: the trait bound `u64: regex_automata::StateID` is not satisfied
   --> src/regex.rs:101:34
    |
101 |                 let re = builder.build_with_size::<u64>(&pattern)?;
    |                                  ^^^^^^^^^^^^^^^ the trait `regex_automata::StateID` is not implemented for `u64`

error[E0277]: the trait bound `u64: regex_automata::StateID` is not satisfied
   --> src/regex.rs:101:26
    |
101 |                 let re = builder.build_with_size::<u64>(&pattern)?;
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `regex_automata::StateID` is not implemented for `u64`
    |
    = note: required by `regex_automata::DenseDFA`

error[E0277]: the trait bound `u64: regex_automata::StateID` is not satisfied
   --> src/regex.rs:102:21
    |
102 |                 wtr.dense_regex(args.name(), &re)?;
    |                     ^^^^^^^^^^^ the trait `regex_automata::StateID` is not implemented for `u64`

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: Could not compile `ucd-generate`.

Caused by:
  process didn't exit successfully: `CARGO_PKG_VERSION_PRE= CARGO_PKG_HOMEPAGE='https://github.com/BurntSushi/ucd-generate' CARGO_PKG_REPOSITORY='https://github.com/BurntSushi/ucd-generate' CARGO_PRIMARY_PACKAGE=1 CARGO_PKG_VERSION_PATCH=1 CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_NAME=ucd-generate CARGO_PKG_DESCRIPTION='A program for generating packed representations of the Unicode character
database that can be efficiently searched.
' CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_AUTHORS='Andrew Gallant <jamslam@gmail.com>' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' CARGO_PKG_VERSION=0.2.1 rustc --crate-name ucd_generate src/main.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=9ab98c81f210928d -C extra-filename=-9ab98c81f210928d --out-dir /<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps --target mipsel-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern byteorder=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libbyteorder-3e5d722a6d0ec6e8.rlib --extern clap=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libclap-5f7ca4d17efee90c.rlib --extern fst=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libfst-b10846890d7a7ac2.rlib --extern regex_automata=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libregex_automata-17bd458206005a4e.rlib --extern ucd_parse=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libucd_parse-9d99ee4ae391a19e.rlib --extern ucd_trie=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libucd_trie-8f97c9bd47582f20.rlib --extern ucd_util=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libucd_util-da5b2e49a7fb7143.rlib -C debuginfo=2 --cap-lints warn -C linker=mipsel-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/ucd-generate-0.2.1` (exit code: 1)
dh_auto_test: /usr/share/cargo/bin/cargo build returned exit code 101
make: *** [debian/rules:3: build-arch] Error 255
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2