redox-os issueshttps://gitlab.redox-os.org/groups/redox-os/-/issues2019-01-16T09:50:39Zhttps://gitlab.redox-os.org/redox-os/randd/-/issues/7Value assigned to immutable variable2019-01-16T09:50:39ZGhost UserValue assigned to immutable variableA bug was introduced by commit 0e613dcc which first declares `has_rdrand` to be immutable and sets its value to false and then is later modified. This prevented my Redox build from compiling.A bug was introduced by commit 0e613dcc which first declares `has_rdrand` to be immutable and sets its value to false and then is later modified. This prevented my Redox build from compiling.https://gitlab.redox-os.org/redox-os/ipcd/-/issues/2README link2023-09-24T09:22:01ZRoland KovácsREADME linkLink in README to Hello world example points to github.Link in README to Hello world example points to github.https://gitlab.redox-os.org/redox-os/orbcalculator/-/issues/2Undeclared ident 'Property'2020-02-20T09:17:26ZAndrzej BoruckiUndeclared ident 'Property'cargo build, Linux Mint 19.1 Tessa
>>>
/home/andrzej-borucki/.cargo/bin/cargo build --color=always --all --all-targets
Compiling calculator v0.1.0 (/home/andrzej-borucki/projects/orbcalculator)
error[E0433]: failed to resolve: use of...cargo build, Linux Mint 19.1 Tessa
>>>
/home/andrzej-borucki/.cargo/bin/cargo build --color=always --all --all-targets
Compiling calculator v0.1.0 (/home/andrzej-borucki/projects/orbcalculator)
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:59:16
|
59 | label: Property::new(Label(sight.clone())),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:69:20
|
69 | selector: (Property::new(Selector::new(Some(String::from("calculatorbutton"))))),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0407]: method `template` is not a member of trait `Widget`
--> src/main.rs:80:5
|
80 | / fn template(&self) -> Template {
81 | | let eval_state = self.state.clone();
82 | | let clear_state = self.state.clone();
83 | |
... |
230 | | }))
231 | | }
| |_____^ not a member of trait `Widget`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:189:40
|
189 | label: Property::new(Label(String::from("C"))),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:199:44
|
199 | selector: (Property::new(Selector::new(Some(String::from(
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:208:40
|
208 | label: Property::new(Label(String::from("="))),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:59:16
|
59 | label: Property::new(Label(sight.clone())),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:69:20
|
69 | selector: (Property::new(Selector::new(Some(String::from("calculatorbutton"))))),
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0433]: failed to resolve: use of undeclared type or module `Property`
--> src/main.rs:218:44
|
218 | selector: (Property::new(Selector::new(Some(String::from(
| ^^^^^^^^ use of undeclared type or module `Property`
error[E0407]: method `properties` is not a member of trait `Widget`
--> src/main.rs:233:5
|
233 | / fn properties(&self) -> Vec<PropertyResult> {
234 | | vec![self.result.build()]
235 | | }
| |_____^ not a member of trait `Widget`
....
>>>https://gitlab.redox-os.org/redox-os/chashmap/-/issues/2CHashMap::shrink_to_fit and CHashMap::with_capacity reserving ~3.4x buckets n...2023-04-06T15:01:23ZAlex HornbyCHashMap::shrink_to_fit and CHashMap::with_capacity reserving ~3.4x buckets needed by ::insertHi, I have a CHashMap where I know I will insert N elements, N is large, and each element is quite small, so CHashMaps own memory usage is significant.
Unfortunately if I ::insert then ::shrink_to_fit or if I pre-allocate with_capacity...Hi, I have a CHashMap where I know I will insert N elements, N is large, and each element is quite small, so CHashMaps own memory usage is significant.
Unfortunately if I ::insert then ::shrink_to_fit or if I pre-allocate with_capacity(N) CHashMap reserves 4x N buckets rather than the expected N*loadfactor_denom/loadfactor_num that ::insert/::expand would check for.
This can result in maps growing significantly when ::shrink_to_fit is called, and means that one has to fudge the number passed to ::with_capacity to avoid over allocation of buckets in the "size known" usecase.
Two underling issues/questions:
1. Is there a reason LENGTH_MULTIPLIER is 4 rather than 2? I think 2 is all that is needed to amortize the reallocation on growth when an insert/expand needs to expand.
2. In known-length use cases CHashMap::shrink_to_fit and CHashMap::with_capacity is it an oversight that LENGTH_MULTIPLIER rather than MAX_LOAD_FACTOR_DENOM/MAX_LOAD_FACTOR_NUM is being applied to the length? Applying load factor would be considerably more space efficient, and more consistent with the bounds checked by insert/expand.
Happy to contribute changes if that helps.https://gitlab.redox-os.org/redox-os/uefi/-/issues/2status.rs ERROR_BIT constant is fixed to a 64-bit width.2022-03-02T18:23:40ZBret Barkelewstatus.rs ERROR_BIT constant is fixed to a 64-bit width.It's entirely possible that I missed a "constraints" document somewhere (I've only started reviewing Redox and there's a lot I'm not familiar with), but if this were on a 32-bit platform, the ERROR_BIT evaluation would not work. Everythi...It's entirely possible that I missed a "constraints" document somewhere (I've only started reviewing Redox and there's a lot I'm not familiar with), but if this were on a 32-bit platform, the ERROR_BIT evaluation would not work. Everything else seems to be "usize", which would presumably scale with architecture.https://gitlab.redox-os.org/redox-os/redoxer/-/issues/2Could not install via Cargo2019-11-29T17:12:17ZGhost UserCould not install via CargoOn Ubuntu 18.04 and on macOS
```
Compiling scoped_threadpool v0.1.9
error[E0621]: explicit lifetime required in the type of `other`
--> /home/florian/.cargo/registry/src/github.com-1ecc6299db9ec823/version-compare-0.0.4/src/version....On Ubuntu 18.04 and on macOS
```
Compiling scoped_threadpool v0.1.9
error[E0621]: explicit lifetime required in the type of `other`
--> /home/florian/.cargo/registry/src/github.com-1ecc6299db9ec823/version-compare-0.0.4/src/version.rs:308:13
|
304 | pub fn compare(&self, other: &Version) -> CompOp {
| -------- help: add explicit lifetime `'a` to the type of `other`: `&version::Version<'a>`
...
308 | other.parts.iter().peekable()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'a` required
error: aborting due to previous error
For more information about this error, try `rustc --explain E0621`.
error: could not compile `version-compare`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `redoxer v0.2.9`, intermediate artifacts can be found at `/tmp/cargo-installiAVtw8`
Caused by:
build failed
```https://gitlab.redox-os.org/redox-os/logd/-/issues/2Build fails due to time crate2019-12-13T18:22:38ZThiago Duarte AreiasBuild fails due to time crateThis is the same issue and fix as https://gitlab.redox-os.org/redox-os/drivers/issues/28This is the same issue and fix as https://gitlab.redox-os.org/redox-os/drivers/issues/28https://gitlab.redox-os.org/redox-os/seahash/-/issues/2Hashing as const fn2020-01-28T02:15:07ZDenis GolovanHashing as const fnHi
Looks like recent Rust nightly implemented if/loops expressions for const fn.
It seems that now it is possible to make hashing functions const fn.
Are there any plans to adapt them for seahash?
BR,
DenisHi
Looks like recent Rust nightly implemented if/loops expressions for const fn.
It seems that now it is possible to make hashing functions const fn.
Are there any plans to adapt them for seahash?
BR,
Denishttps://gitlab.redox-os.org/redox-os/redox/-/issues/1183failed to load source for a dependency on `termion`2018-06-10T00:26:26ZJeremy Sollerfailed to load source for a dependency on `termion`*Created by: liamnaddell*
<!-- Thank you for taking the time to submit an issue! By following these comments and filling out the sections below, you can help the developers get the necessary information to fix your issue. Please provide...*Created by: liamnaddell*
<!-- Thank you for taking the time to submit an issue! By following these comments and filling out the sections below, you can help the developers get the necessary information to fix your issue. Please provide a single issue per report. You can also preview this report before submitting it. Feel free to modify/remove sections to fit the nature of your issue. -->
<!-- Please search to check that your issue has not been created already. By preventing duplicate issues, you can help keep the repository organized. If your current issue has already been created and is still unresolved, you can contribute by commenting there. -->
<!-- Replace the empty checkbox [ ] below with a checked one [x] if you have already searched for your issue. -->
- [x ] I agree that I have searched opened and closed issues to prevent duplicates.
I know there is another issue with this name, but this is probably due to a different cause, and that old issue is from 2017, and is closed.
--------------------
## Description
<!-- Briefly summarize/describe the issue that you are experiencing below. -->
No matter how I clone down and compile redox-os, it always fails with `failed to load source for a dependency on termion`
## Environment info
<!-- To understand where your issue originates, please include some relevant information about your environment. -->
<!-- If you have built Redox OS yourself, please provide the following information: -->
- Operating system: Debian/linux
- `uname -a`:
`Linux localhost 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1 (2018-04-29) x86_64 GNU/Linux`
- `rustc -V`:
`rustc 1.27.0-nightly (7f3444e1b 2018-04-26)`
- `git rev-parse HEAD`:
80dbffe2e0948d8db689ba627beaf0e35a2ca73f
<!-- Depending on your issue, additional information about your environment (network config, package versions, dependencies, etc.) can also help. You can list that below. -->
### Deps
-I installed the toolchain via apt as instructed by in the book.
-My autoconf is version 2.69
-My automake is version 1.15
-My gcc is version 6.3.0
-My libtool is 2.4.6
-My x86_64-unknown-redox-gcc is version 7.0.1
-And I can ping gentoo.org
## Steps to reproduce
<!-- If possible, please list the steps to reproduce ("trigger") your issue below. Being detailed definitely helps speed up bug fixes. -->
1. Install toolchain via apt as given in instruction by the book
2. run the bootstrap.sh script or clone the repo down the manual way
3. `make all`
4. failure with `failed to load a source for a dependency on termion`
## Behavior
<!-- It may seem obvious to know what to expect, but isolating the behavior from everything else simplifies the development process. Remember to provide a single issue in this report. You can use the References section below to link your issues together. -->
<!-- Describe the behavior you expect your steps should yield (i.e., correct behavior). -->
- **Expected behavior**:
Extra-utils compiling
<!-- Describe the behavior you observed when running your steps (i.e., buggy behavior). -->
- **Actual behavior**:
failed to load a source for a dependency on termion
<!-- **Solution?** Have a solution in mind? Propose your solution below. -->
- **Proposed solution**
no idea, this is probably due to me being stupid
## Optional references
<!-- If you have found issues or pull requests that are related to or blocking this issue, please link them below. See https://help.github.com/articles/autolinked-references-and-urls/ for more options. You can also link related code snippets by providing the permalink. See https://help.github.com/articles/creating-a-permanent-link-to-a-code-snippet/ for more information. -->
Related to:
- Failure to build redox due to a missing branch in termion named "redox_termios" #1086
## Side notes
- I see a lot of stuff compiled three or four times, and termion is compiled successfully multiple times before failure.
- I can compile the code `int main() {}` with x86_64-unknown-redox-gcc
- This might be due to bad autoconf and automake versions, and if this is the case, it would be advisable to add some kind of warning message to the redox-os `Makefile`
- I might be able to work on a project where the bootstrap.sh script downloads a chroot enviornment that comes with all of the deps necessary to build redox if the autoconf/automake thing is the case. This would be good because I cannot find a single linux distro that distributes the versions of automake and autoconf required
https://gitlab.redox-os.org/redox-os/redox/-/issues/1185Virtual Box won't boot.2023-06-13T02:42:49ZJeremy SollerVirtual Box won't boot.*Created by: nebrelbug*
<!-- Thank you for taking the time to submit an issue! By following these comments and filling out the sections below, you can help the developers get the necessary information to fix your issue. Please provide a...*Created by: nebrelbug*
<!-- Thank you for taking the time to submit an issue! By following these comments and filling out the sections below, you can help the developers get the necessary information to fix your issue. Please provide a single issue per report. You can also preview this report before submitting it. Feel free to modify/remove sections to fit the nature of your issue. -->
<!-- Please search to check that your issue has not been created already. By preventing duplicate issues, you can help keep the repository organized. If your current issue has already been created and is still unresolved, you can contribute by commenting there. -->
<!-- Replace the empty checkbox [ ] below with a checked one [x] if you have already searched for your issue. -->
- [x] I agree that I have searched opened and closed issues to prevent duplicates.
--------------------
## Description
<!-- Briefly summarize/describe the issue that you are experiencing below. -->
I just downloaded the Redox 0.3.3 and 0.3.5 .iso files, and neither of them work when I try to run them on VirtualBox. I run under the type "other/other/unknown (64 bit)", and gave it 2048 MB of memory. In one of my tests, I created a hard disk and in the other I didn't. I tried it with "Live CD/DVD" and without it.
But on both of the tests, it didn't work. On one of the tests, it hung at this screen:
![redoxcapture](https://user-images.githubusercontent.com/25597854/40575804-84cfecc2-60e3-11e8-8f5e-3d79bf7a4137.png)
And on the other test it exited with a critical error after getting to that part.
I was using version 0.3.5 of the ISO and 0.3.3, respectively.
Is there something I'm doing wrong or is there an issue with Redox? Thanks!
## Environment info
<!-- To understand where your issue originates, please include some relevant information about your environment. -->
<!-- If you are using a pre-built release of Redox, please specify the release version below. -->
- Redox OS Release:
0.3.5 Remove me
## Steps to reproduce
<!-- If possible, please list the steps to reproduce ("trigger") your issue below. Being detailed definitely helps speed up bug fixes. -->
1. Download Redox ISO
2. Create new Virtualbox VM with type and version "other other/other (64 bit)"
3. Give it 2048 MB RAM, optionally create hard disk
4. Add redox ISO file as the CD, optionally select Live CD
5. Open VMhttps://gitlab.redox-os.org/redox-os/ion/-/issues/768Brace expansion discards empty alternatives2018-06-10T02:59:04ZMichael Aaron Murphymmstick@pm.meBrace expansion discards empty alternatives*Created by: xTibor*
**Reproduction**:
This example comes from [Rosetta Code](http://rosettacode.org/wiki/Brace_expansion):
```
$ echo It{{em,alic}iz,erat}e{d,}
```
**Expected behavior**:
```
Itemized Itemize Italicized Italic...*Created by: xTibor*
**Reproduction**:
This example comes from [Rosetta Code](http://rosettacode.org/wiki/Brace_expansion):
```
$ echo It{{em,alic}iz,erat}e{d,}
```
**Expected behavior**:
```
Itemized Itemize Italicized Italicize Iterated Iterate
```
**Actual behavior**:
```
Itemized Italicized Iterated
```
**Build information**:
`rustc -V`: `rustc 1.28.0-nightly (5d0631a64 2018-05-30)`
`git rev-parse HEAD`: 91598eac6f2ce4bd5f83e3fde9fc2570009cf059
System: KDE neon 5.12 (Ubuntu 16.04)
https://gitlab.redox-os.org/redox-os/ion/-/issues/487Review Exit Status Codes2018-06-10T04:02:25ZMichael Aaron Murphymmstick@pm.meReview Exit Status CodesWe should define a set of exit status that the shell may return. If we follow Bash, we might have something like this:
- 0 means `SUCCESS`
- 1 means `FAILURE`
- 2 means `BAD_ARG`
- 3...125 can be defined by programs executed by the...We should define a set of exit status that the shell may return. If we follow Bash, we might have something like this:
- 0 means `SUCCESS`
- 1 means `FAILURE`
- 2 means `BAD_ARG`
- 3...125 can be defined by programs executed by the shell
- 126 means `COULD_NOT_EXEC`
- 127 means `COMMAND_NOT_FOUND`
- 128 `INVALID_EXIT_ARG`
- 128+N where N is equal to the signal that stopped the shell
- 255+ is `EXIT_OUT_OF_RANGE`
But we may want to think about defining our own error codes.
https://gitlab.redox-os.org/redox-os/ion/-/issues/761$(^) Parsing Bug2018-06-18T16:34:37ZMichael Aaron Murphymmstick@pm.me$(^) Parsing BugThe following command will hang the ion shell:
```
whois $(dig gitlab.com | grep ^gitlab.com)
```
Unsure at this time as to the cause. Either the parser or job executionThe following command will hang the ion shell:
```
whois $(dig gitlab.com | grep ^gitlab.com)
```
Unsure at this time as to the cause. Either the parser or job executionhttps://gitlab.redox-os.org/redox-os/ion/-/issues/496JIT2018-06-18T16:34:37ZMichael Aaron Murphymmstick@pm.meJIT*Created by: mcandre*
Will ion get a JIT? So that large, looping shell scripts can finally run faster than they have been!*Created by: mcandre*
Will ion get a JIT? So that large, looping shell scripts can finally run faster than they have been!https://gitlab.redox-os.org/redox-os/calc/-/issues/23Incorrect results with unary minus signs2018-06-10T06:47:01ZMichael Aaron Murphymmstick@pm.meIncorrect results with unary minus signs*Created by: xTibor*
**Reproduction**:
```rust
use calc::eval;
// ...
println!("{:?}", eval("-1 + 1"));
```
**Expected behavior**:
`0`
**Actual behavior**:
`-2`
Calc interprets that expression as `-(1 + 1)`
**Build inform...*Created by: xTibor*
**Reproduction**:
```rust
use calc::eval;
// ...
println!("{:?}", eval("-1 + 1"));
```
**Expected behavior**:
`0`
**Actual behavior**:
`-2`
Calc interprets that expression as `-(1 + 1)`
**Build information**:
* `calc`: 233711fdcb1c793fb6feef895ad88e7f0dcea39a
* `rustc -V`: `rustc 1.23.0-nightly (d6b06c63a 2017-11-09)`
* System: KDE neon 5.11 (Ubuntu 16.04 LTS)
https://gitlab.redox-os.org/redox-os/calc/-/issues/24Stack overflow on deeply nested expressions2019-07-31T20:02:10ZMichael Aaron Murphymmstick@pm.meStack overflow on deeply nested expressions*Created by: xTibor*
**Reproduction**:
```rust
extern crate calc;
fn main() {
// Might need more parens on other systems
calc::eval("((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((...*Created by: xTibor*
**Reproduction**:
```rust
extern crate calc;
fn main() {
// Might need more parens on other systems
calc::eval("((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((").unwrap();
}
```
**Expected behavior**:
It would be nice to have a recursion limit in the parser and throwing an error when that limit is reached.
**Actual behavior**:
```
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Aborted
```
**Build information**:
`rustc -V`: `rustc 1.28.0-nightly (952f344cd 2018-05-18)`
`git rev-parse HEAD`: 25ea8856d7fee560e46303797bb960f003d0f128
System: KDE neon 5.12 (Ubuntu 16.04)https://gitlab.redox-os.org/redox-os/cookbook/-/issues/56Problem with the SSL CA cert (path? access rights?)2018-06-16T13:33:58ZJeremy SollerProblem with the SSL CA cert (path? access rights?)*Created by: sinkarharshad*
Trying redox on my ubuntu 16.04 machine:
When I try to compile Redox,
```
$ make all
cd kernel && xargo clean
rm -rf build/initfs
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook...*Created by: sinkarharshad*
Trying redox on my ubuntu 16.04 machine:
When I try to compile Redox,
```
$ make all
cd kernel && xargo clean
rm -rf build/initfs
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook initfs.toml
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running `installer/target/debug/redox_installer --cookbook=cookbook initfs.toml`
Install Config {
general: GeneralConfig {
prompt: false,
sysroot: Some(
"build/initfs"
)
},
packages: {
"drivers": PackageConfig {
version: None,
git: None,
path: None
},
"init": PackageConfig {
version: None,
git: None,
path: None
},
"redoxfs": PackageConfig {
version: None,
git: None,
path: None
}
},
files: [
FileConfig {
path: "/etc/init.rc",
data: "export PATH /bin\nexport TMPDIR /tmp\nvesad T T G\nstdio display:1\nps2d\npcid /etc/pcid/initfs.toml\nredoxfs disk:0 file\ncd file:\nrun.d /etc/init.d\n"
}
],
users: {}
}
Create directory /home/shk4abt/devel/redoxos/redox/build/initfs/
repo - fetching drivers
cook - drivers fetch
Cloning into 'source'...
fatal: unable to access 'https://github.com/redox-os/drivers.git/': Problem with the SSL CA cert (path? access rights?)
./repo.sh failed.mk/initfs.mk:2: recipe for target 'build/initfs.tag' failed
make: *** [build/initfs.tag] Error 1
```
can anyone please help me to resolve this issue?
(Refereed issues: #28, #3346, but did not help :!)
Thank you in advance
https://gitlab.redox-os.org/redox-os/kernel/-/issues/92Open files leak when killing process2023-05-25T19:37:46ZJeremy SollerOpen files leak when killing process*Created by: jD91mZM2*
Schemes' `close` function does not get called when killing a process, for example with Ctrl+C. You can verify this by killing `smolnetd` and trying to restart it (complains about file already being used). You can ...*Created by: jD91mZM2*
Schemes' `close` function does not get called when killing a process, for example with Ctrl+C. You can verify this by killing `smolnetd` and trying to restart it (complains about file already being used). You can also verify this with the [IPC hello example](https://github.com/redox-os/ipcd/blob/master/examples/hello.rs) by doing the same thing. With the latter, I've verified that the IPC scheme isn't getting called at all when the process gets killed.
Using the `exit(0)` syscall still works.Jeremy SollerJeremy Sollerhttps://gitlab.redox-os.org/redox-os/redoxfs/-/issues/35Implement fchmod and fchown2018-06-16T08:06:32ZJeremy SollerImplement fchmod and fchownJeremy SollerJeremy Sollerhttps://gitlab.redox-os.org/redox-os/drivers/-/issues/18Failed to build Redox using Docker images with the toolchain. ahcid error.2018-06-15T02:27:16ZJeremy SollerFailed to build Redox using Docker images with the toolchain. ahcid error.*Created by: SanchayanMaity*
**Reproduction**:
Follow instructions for building redox using docker images as per [here](https://github.com/redox-os/redox/tree/master/docker)
**Expected behavior**:
Runs redox
**Actual behavior**...*Created by: SanchayanMaity*
**Reproduction**:
Follow instructions for building redox using docker images as per [here](https://github.com/redox-os/redox/tree/master/docker)
**Expected behavior**:
Runs redox
**Actual behavior**:
Build for ahcid fails at the fourth step.
**Log**:
```
docker run --cap-add MKNOD --cap-add SYS_ADMIN -e LOCAL_UID="$(id -u)" -e LOCAL_GID="$(id -g)" --device /dev/fuse -v "$(pwd):/home/user/src" --rm redox make fetch all
cd cookbook; \
./fetch.sh "$(cargo run --manifest-path ../installer/Cargo.toml -- --list-packages ../initfs.toml ../filesystem.toml)"
Updating git repository `https://github.com/redox-os/pkgutils.git`
Updating git repository `https://github.com/redox-os/userutils.git`
Updating git repository `https://github.com/redox-os/tar-rs`
Updating git repository `https://github.com/libOctavo/octavo.git`
Updating git repository `https://github.com/ids1024/pb`
Updating git repository `https://github.com/redox-os/arg-parser.git`
Updating git repository `https://github.com/redox-os/libextra.git`
Updating git repository `https://github.com/redox-os/termion.git`
Downloading termion v1.5.1
Downloading serde_derive v0.8.23
Downloading liner v0.1.5
Downloading serde v1.0.11
Downloading toml v0.4.5
Downloading version-compare v0.0.4
Downloading serde_derive v1.0.11
Downloading hyper v0.10.12
Downloading clap v2.26.0
Downloading libflate v0.1.11
Downloading hyper-rustls v0.6.1
Downloading unicode-width v0.1.4
Downloading libc v0.2.29
Downloading winapi v0.2.8
Downloading time v0.1.38
Downloading kernel32-sys v0.2.2
Downloading winapi-build v0.1.1
Downloading quote v0.3.15
Downloading serde_derive_internals v0.15.1
Downloading syn v0.11.11
Downloading synom v0.11.3
Downloading unicode-xid v0.0.4
Downloading httparse v1.2.3
Downloading base64 v0.5.2
Downloading mime v0.2.6
Downloading num_cpus v1.6.2
Downloading unicase v1.4.2
Downloading traitobject v0.1.0
Downloading typeable v0.1.2
Downloading url v1.5.1
Downloading log v0.3.8
Downloading language-tags v0.2.2
Downloading byteorder v1.1.0
Downloading version_check v0.1.3
Downloading matches v0.1.6
Downloading percent-encoding v1.0.0
Downloading idna v0.1.4
Downloading unicode-bidi v0.3.4
Downloading unicode-normalization v0.1.5
Downloading bitflags v0.9.1
Downloading vec_map v0.8.0
Downloading unicode-segmentation v1.2.0
Downloading textwrap v0.7.0
Downloading term_size v0.3.0
Downloading adler32 v1.0.1
Downloading rustls v0.9.0
Downloading webpki-roots v0.11.0
Downloading ring v0.11.0
Downloading untrusted v0.5.0
Downloading webpki v0.14.0
Downloading base64 v0.6.0
Downloading rayon v0.7.1
Downloading gcc v0.3.52
Downloading rayon-core v1.2.1
Downloading lazy_static v0.2.8
Downloading coco v0.1.1
Downloading futures v0.1.14
Downloading either v1.1.0
Downloading scopeguard v0.3.2
Downloading safemem v0.2.0
Downloading byteorder v0.5.3
Downloading generic-array v0.2.1
Downloading static-buffer v0.2.0
Downloading typenum v1.9.0
Downloading redox_termios v0.1.1
Downloading redox_syscall v0.1.30
Downloading argon2rs v0.2.5
Downloading scoped_threadpool v0.1.7
Downloading blake2-rfc v0.2.17
Downloading constant_time_eq v0.1.3
Downloading serde_codegen v0.8.23
Downloading syn v0.10.8
Downloading serde_codegen_internals v0.11.3
Downloading xattr v0.1.11
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running `/home/user/src/installer/target/debug/redox_installer --list-packages ../initfs.toml ../filesystem.toml`
cook - drivers fetch
Already up-to-date.
cook - init fetch
Already up-to-date.
cook - redoxfs fetch
Already up-to-date.
cook - coreutils fetch
Already up-to-date.
cook - drivers fetch
Already up-to-date.
cook - extrautils fetch
Already up-to-date.
cook - findutils fetch
Already up-to-date.
cook - ion fetch
Already up-to-date.
cook - netstack fetch
Already up-to-date.
cook - netutils fetch
Already up-to-date.
cook - orbdata fetch
Already up-to-date.
Synchronizing submodule url for 'icons'
cook - orbital fetch
Already up-to-date.
cook - orbterm fetch
Already up-to-date.
cook - orbutils fetch
Already up-to-date.
cook - pkgutils fetch
Already up-to-date.
cook - ptyd fetch
Already up-to-date.
cook - randd fetch
Already up-to-date.
cook - smith fetch
Already up-to-date.
cook - userutils fetch
Already up-to-date.
cook - uutils fetch
Already up-to-date.
cd kernel && xargo clean
rm -rf build/initfs
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook initfs.toml
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running `installer/target/debug/redox_installer --cookbook=cookbook initfs.toml`
Install Config {
general: GeneralConfig {
prompt: false,
sysroot: Some(
"build/initfs"
)
},
packages: {
"drivers": PackageConfig {
version: None,
git: None,
path: None
},
"init": PackageConfig {
version: None,
git: None,
path: None
},
"redoxfs": PackageConfig {
version: None,
git: None,
path: None
}
},
files: [
FileConfig {
path: "/etc/init.rc",
data: "export PATH /bin\nexport TMPDIR /tmp\nvesad T T G\nstdio display:1\nps2d\npcid /etc/pcid/initfs.toml\nredoxfs disk:0 file\ncd file:\nexport PATH file:/bin\nrun.d /etc/init.d\n",
symlink: false
}
],
users: {}
}
Create directory /home/user/src/build/initfs/
repo - building drivers
cook - drivers build
Updating git repository `https://github.com/redox-os/netutils.git`
Updating git repository `https://github.com/redox-os/event.git`
Updating git repository `https://github.com/willem66745/ntpclient-rust`
Updating git repository `https://github.com/a8m/pb`
Downloading bitflags v0.7.0
Downloading spin v0.4.5
Downloading hyper v0.10.13
Downloading orbclient v0.3.8
Downloading ransid v0.2.10
Downloading redox_event v0.1.0
Downloading plain v0.2.1
Compiling ahcid v0.1.0 (file:///home/user/src/cookbook/recipes/drivers/build/ahcid)
Compiling synom v0.11.3
Compiling num_cpus v1.6.2
Compiling rand v0.3.16
error: unused extern crate
--> ahcid/src/main.rs:4:1
|
4 | extern crate bitflags;
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> ahcid/src/main.rs:1:9
|
1 | #![deny(warnings)]
| ^^^^^^^^
= note: #[deny(unused_extern_crates)] implied by #[deny(warnings)]
error: aborting due to previous error
error: Could not compile `ahcid`.
warning: build failed, waiting for other jobs to finish...
error: build failed
./repo.sh failed.make: *** [build/initfs.tag] Error 1
mk/initfs.mk:2: recipe for target 'build/initfs.tag' failed
```
**Workaround**:
Workaround pointed by @fengalin.
```
docker run --cap-add MKNOD --cap-add SYS_ADMIN \
-e LOCAL_UID="$(id -u)" -e LOCAL_GID="$(id -g)" \
--device /dev/fuse -v "$(pwd):/home/user/src" --rm redox bash -c "RUSTFLAGS=\"-A unused_extern_crates\" make fetch all"
```
------
_If the above does not fit the nature of the issue feel free to modify it._