Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
N
newlib
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 4
    • Merge Requests 4
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • redox-os
  • newlib
  • Issues
  • #83

Closed
Open
Opened Jan 09, 2019 by Nathaniel Barragan@NateDogg1232

Newlib no longer compiles

When compiling on Arch (fully updated to newest packages as of yesterday), I come across this error when building newlib.

I haven't gone into syscall yet, as I wanted to test out the operating system first and mess around with some usermode stuff before I start messing with the kernel and stuff, but I'm coming across issues when trying to install the toolchain.

    Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating git repository `https://github.com/redox-os/liblibc`
    Updating byteorder v1.2.3 -> v1.2.7
    Updating libc v0.2.40 (https://github.com/redox-os/liblibc#297fc414) -> #a7e78a78
    Updating redox_syscall v0.1.38 -> v0.1.50
   Compiling newlib_redox v0.1.0 (file:///home/nathaniel/Programs/redox-repos/libc/packages/arch/newlib/src/newlib/newlib/libc/sys/redox)
error[E0425]: cannot find function `execve` in module `syscall`
  --> src/process.rs:48:17
   |
48 |     Ok(syscall::execve(::cstr_to_slice(name), &args)? as c_int)
   |                 ^^^^^^ not found in `syscall`

error[E0425]: cannot find function `execve` in module `syscall`
   --> src/process.rs:154:22
    |
154 |             syscall::execve(shell, &args)?;
    |                      ^^^^^^ not found in `syscall`

warning: unused import: `mem`
 --> src/hostname.rs:2:12
  |
2 | use core::{mem, str, slice};
  |            ^^^
  |
  = note: #[warn(unused_imports)] on by default

error[E0061]: this function takes 2 parameters but 3 parameters were
supplied
  --> src/redox.rs:11:8
   |
11 |     Ok(syscall::fmap(file as usize, offset, size)? as *mut c_void)
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters

error: aborting due to 3 previous errors

Some errors occurred: E0061, E0425.
For more information about an error, try `rustc --explain E0061`.
error: Could not compile `newlib_redox`.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: redox-os/newlib#83