# Cannot build "line" crate on Raspberry Pi

**URL:** <https://discourse.pijul.org/t/cannot-build-line-crate-on-raspberry-pi/200>\
**Category:** Question\
**Created:** [April 24, 2018, 1:50pm UTC](https://discourse.pijul.org/t/cannot-build-line-crate-on-raspberry-pi/200 "2018-04-24T13:50:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eschnett](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/eschnett/32/107_2.png) [@eschnett](https://discourse.pijul.org/u/eschnett)\
**Post date:** [April 24, 2018, 1:50pm UTC](https://discourse.pijul.org/t/cannot-build-line-crate-on-raspberry-pi/200/1 "2018-04-24T13:50:46Z")

</div>

I am trying to install Pijul on a Raspberry Pi via “cargo”. This fails, as the “line” crate does not build:

```
   Compiling line v0.1.2
     Running `rustc --crate-name line /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/line-0.1.2/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=6bb7bdd0175c5ad6 -C extra-filename=-6bb7bdd0175c5ad6 --out-dir /tmp/cargo-install.uMKISrATkB5v/release/deps -L dependency=/tmp/cargo-install.uMKISrATkB5v/release/deps --extern libc=/tmp/cargo-install.uMKISrATkB5v/release/deps/liblibc-ad61a5f1c544ff16.rlib --extern utf8parse=/tmp/cargo-install.uMKISrATkB5v/release/deps/libutf8parse-bc66f75cd17075c3.rlib --cap-lints allow`
error[E0308]: mismatched types
 --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/line-0.1.2/src/unix.rs:9:27
  |
9 | if libc::ioctl(1, libc::TIOCGWINSZ as u64, &mut size) == 0 {
  | ^^^^^^^^^^^^^^^^^^^^^^^ expected u32, found u64

error: aborting due to previous error

error: failed to compile `pijul v0.10.1`, intermediate artifacts can be found at `/tmp/cargo-install.uMKISrATkB5v`

Caused by:
  Could not compile `line`.

Caused by:
  process didn't exit successfully: `rustc --crate-name line /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/line-0.1.2/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=6bb7bdd0175c5ad6 -C extra-filename=-6bb7bdd0175c5ad6 --out-dir /tmp/cargo-install.uMKISrATkB5v/release/deps -L dependency=/tmp/cargo-install.uMKISrATkB5v/release/deps --extern libc=/tmp/cargo-install.uMKISrATkB5v/release/deps/liblibc-ad61a5f1c544ff16.rlib --extern utf8parse=/tmp/cargo-install.uMKISrATkB5v/release/deps/libutf8parse-bc66f75cd17075c3.rlib --cap-lints allow` (exit code: 101)
```

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [April 24, 2018, 2:42pm UTC](https://discourse.pijul.org/t/cannot-build-line-crate-on-raspberry-pi/200/2 "2018-04-24T14:42:52Z")

</div>

Hi! I think I just fixed it (line 0.1.3), thanks a lot for reporting!
