Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C calc
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-os
  • calc
  • Issues
  • #30
Closed
Open
Created Jul 09, 2020 by Philip Ridout@phill

Unable to build on windows 7

Windows 7

>rustc --version
rustc 1.46.0-nightly (8aa18cbdc 2020-07-08)

I tried to build the example from README.md and got the following:

  Downloaded bytecount v0.1.7
  Downloaded ord_subset v3.1.1
  Downloaded rustc-serialize v0.3.24
  Downloaded calculate v0.5.1
  Downloaded decimal v2.0.4
  Downloaded liner v0.4.4
  Downloaded 6 crates (1021.2 KB) in 3.61s
   Compiling libc v0.2.72
   Compiling winapi v0.3.9
   Compiling serde v1.0.114
   Compiling ord_subset v3.1.1
   Compiling bytecount v0.1.7
   Compiling rustc-serialize v0.3.24
   Compiling decimal v2.0.4
   Compiling termion v1.5.5
error[E0433]: failed to resolve: unresolved import
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\lib.rs:24:9
   |
24 | pub use sys::size::terminal_size;
   |         ^^^
   |         |
   |         unresolved import
   |         help: a similar path exists: `color::env::sys`

error[E0433]: failed to resolve: unresolved import
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\lib.rs:27:9
   |
27 | pub use sys::tty::{is_tty, get_tty};
   |         ^^^
   |         |
   |         unresolved import
   |         help: a similar path exists: `color::env::sys`

error[E0433]: failed to resolve: unresolved import
 --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.
5.5\src\async.rs:5:5
  |
5 | use sys::tty::get_tty;
  |     ^^^
  |     |
  |     unresolved import
  |     help: a similar path exists: `color::env::sys`

error[E0433]: failed to resolve: unresolved import
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\raw.rs:29:5
   |
29 | use sys::attr::{get_terminal_attr, raw_terminal_attr, set_terminal_attr};
   |     ^^^
   |     |
   |     unresolved import
   |     help: a similar path exists: `color::env::sys`

error[E0432]: unresolved import `sys`
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\raw.rs:28:5
   |
28 | use sys::Termios;
   |     ^^^
   |     |
   |     unresolved import
   |     help: a similar path exists: `color::env::sys`

error[E0425]: cannot find function `get_tty` in this scope
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\async.rs:14:36
   |
14 |     thread::spawn(move || for i in get_tty().unwrap().bytes() {
   |                                    ^^^^^^^ not found in this scope

error[E0425]: cannot find function `get_tty` in this scope
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\async.rs:43:36
   |
43 |     thread::spawn(move || for i in get_tty().unwrap().bytes() {
   |                                    ^^^^^^^ not found in this scope

error[E0425]: cannot find function `set_terminal_attr` in this scope
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\raw.rs:45:9
   |
45 |         set_terminal_attr(&self.prev_ios).unwrap();
   |         ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `get_terminal_attr` in this scope
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\raw.rs:90:23
   |
90 |         let mut ios = get_terminal_attr()?;
   |                       ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `raw_terminal_attr` in this scope
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\raw.rs:93:9
   |
93 |         raw_terminal_attr(&mut ios);
   |         ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `set_terminal_attr` in this scope
  --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-1
.5.5\src\raw.rs:95:9
   |
95 |         set_terminal_attr(&ios)?;
   |         ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `set_terminal_attr` in this scope
   --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-
1.5.5\src\raw.rs:107:9
    |
107 |         set_terminal_attr(&self.prev_ios)?;
    |         ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `get_terminal_attr` in this scope
   --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-
1.5.5\src\raw.rs:113:23
    |
113 |         let mut ios = get_terminal_attr()?;
    |                       ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `raw_terminal_attr` in this scope
   --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-
1.5.5\src\raw.rs:114:9
    |
114 |         raw_terminal_attr(&mut ios);
    |         ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `set_terminal_attr` in this scope
   --> .cargo\registry\src\github.com-1ecc6299db9ec823\termion-
1.5.5\src\raw.rs:115:9
    |
115 |         set_terminal_attr(&ios)?;
    |         ^^^^^^^^^^^^^^^^^ not found in this scope

error: aborting due to 15 previous errors

Some errors have detailed explanations: E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `termion`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Assignee
Assign to
Time tracking