Build Issues
I was compiling redox on a fresh solus build. It errored out when compiling the logd crate. The error was that this version of the time crate defines the inner mod twice in the same file.
When opening the file. The two mod inner both have a config statement. #[cfg(target_os = "redox")] #[cfg(unix)]
When it came to the time crate. I just opened it up in kwrite and deleted the duplicate with the target_os redox. That seemed to make it compile.
Logd output
cook - logd fetch
Cloning into 'source'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 29 (delta 6), reused 0 (delta 0), pack-reused 11
Receiving objects: 100% (29/29), 7.57 KiB | 7.57 MiB/s, done.
Resolving deltas: 100% (8/8), done.
repo - preparing logd
cook - logd prepare
repo - building logd
cook - logd build
Downloaded chrono v0.4.9
Downloaded num-integer v0.1.41
Compiling autocfg v0.1.6
Compiling libc v0.2.65
Compiling redox_syscall v0.1.56
Compiling num-traits v0.2.8
Compiling num-integer v0.1.41
Compiling time v0.1.42
error[E0428]: the name inner
is defined multiple times
--> /home/dakota/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.42/src/sys.rs:351:1
|
138 | mod inner {
| --------- previous definition of the module inner
here
...
351 | mod inner {
| ^^^^^^^^^ inner
redefined here
|
= note: inner
must be defined only once in the type namespace of this module
error: aborting due to previous error
For more information about this error, try rustc --explain E0428
.
error: could not compile time
.
warning: build failed, waiting for other jobs to finish...
error: build failed
./repo.sh failed.make: *** [mk/filesystem.mk:16: build/filesystem.bin] Error 1