{"action":"created","issue":{"url":"https://api.github.com/repos/riscv-rust/rust/issues/11","repository_url":"https://api.github.com/repos/riscv-rust/rust","labels_url":"https://api.github.com/repos/riscv-rust/rust/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/riscv-rust/rust/issues/11/comments","events_url":"https://api.github.com/repos/riscv-rust/rust/issues/11/events","html_url":"https://github.com/riscv-rust/rust/issues/11","id":342338107,"node_id":"MDU6SXNzdWUzNDIzMzgxMDc=","number":11,"title":"libc error when compiling for riscv32ia","user":{"login":"ingenieroariel","id":54999,"node_id":"MDQ6VXNlcjU0OTk5","avatar_url":"https://avatars1.githubusercontent.com/u/54999?v=4","gravatar_id":"","url":"https://api.github.com/users/ingenieroariel","html_url":"https://github.com/ingenieroariel","followers_url":"https://api.github.com/users/ingenieroariel/followers","following_url":"https://api.github.com/users/ingenieroariel/following{/other_user}","gists_url":"https://api.github.com/users/ingenieroariel/gists{/gist_id}","starred_url":"https://api.github.com/users/ingenieroariel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingenieroariel/subscriptions","organizations_url":"https://api.github.com/users/ingenieroariel/orgs","repos_url":"https://api.github.com/users/ingenieroariel/repos","events_url":"https://api.github.com/users/ingenieroariel/events{/privacy}","received_events_url":"https://api.github.com/users/ingenieroariel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-18T13:52:13Z","updated_at":"2018-07-29T05:33:48Z","closed_at":"2018-07-26T17:59:39Z","author_association":"NONE","body":"Run with these options:\r\n```\r\n./x.py build --exclude src/tools/miri --target riscv32ia-unknown-none\r\n```\r\nI got the full stack trace:\r\n```\r\nx@msi:/d/rust$ ./x.py build --exclude src/tools/miri --target riscv32ia-unknown-none\r\nUpdating only changed submodules\r\nSubmodules updated in 0.02 seconds\r\n    Finished dev [unoptimized] target(s) in 0.0 secs\r\nPathSet { set: {\"/d/rust/src/liballoc\", \"/d/rust/src/liballoc_system\", \"/d/rust/src/libcore\", \"/d/rust/src/libpanic_abort\", \"/d/rust/src/librustc_asan\", \"/d/rust/src/librustc_lsan\", \"/d/rust/src/librustc_msan\", \"/d/rust/src/librustc_tsan\", \"/d/rust/src/libstd\", \"/d/rust/src/libstd_unicode\", \"/d/rust/src/libunwind\"} } not skipped for \"compile::Std\" -- not in [\"src/tools/miri\"]\r\nBuilding stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)\r\n    Finished release [optimized] target(s) in 0.0 secs\r\nCopying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)\r\nBuilding stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)\r\n    Finished release [optimized] target(s) in 0.0 secs\r\nCopying stage0 test from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)\r\nBuilding stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)\r\n    Finished release [optimized] target(s) in 0.0 secs\r\nCopying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)\r\nBuilding stage0 codegen artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu, llvm)\r\n    Finished release [optimized] target(s) in 0.0 secs\r\nAssembling stage1 compiler (x86_64-unknown-linux-gnu)\r\nBuilding stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)\r\n    Finished release [optimized] target(s) in 0.0 secs\r\nCopying stage1 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)\r\nBuilding stage1 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)\r\n    Finished release [optimized] target(s) in 0.0 secs\r\nCopying stage1 test from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)\r\nBuilding stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)\r\n    Finished release [optimized] target(s) in 0.0 secs\r\nCopying stage1 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)\r\nBuilding stage1 codegen artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu, llvm)\r\n    Finished release [optimized] target(s) in 0.0 secs\r\nAssembling stage2 compiler (x86_64-unknown-linux-gnu)\r\nBuilding stage2 std artifacts (x86_64-unknown-linux-gnu -> riscv32ia-unknown-none)\r\n   Compiling core v0.0.0 (file:///d/rust/src/libcore)\r\n   Compiling unwind v0.0.0 (file:///d/rust/src/libunwind)\r\n   Compiling compiler_builtins v0.0.0 (file:///d/rust/src/rustc/compiler_builtins_shim)\r\n   Compiling std v0.0.0 (file:///d/rust/src/libstd)\r\n   Compiling std_unicode v0.0.0 (file:///d/rust/src/libstd_unicode)\r\n   Compiling libc v0.0.0 (file:///d/rust/src/rustc/libc_shim)\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:171:43\r\n    |\r\n171 |             pub fn fopen(filename: *const c_char,\r\n    |                                           ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:172:39\r\n    |\r\n172 |                          mode: *const c_char) -> *mut FILE;\r\n    |                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:175:45\r\n    |\r\n175 |             pub fn freopen(filename: *const c_char, mode: *const c_char,\r\n    |                                             ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:175:66\r\n    |\r\n175 |             pub fn freopen(filename: *const c_char, mode: *const c_char,\r\n    |                                                                  ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:179:44\r\n    |\r\n179 |             pub fn remove(filename: *const c_char) -> c_int;\r\n    |                                            ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:180:43\r\n    |\r\n180 |             pub fn rename(oldname: *const c_char, newname: *const c_char) -> c_int;\r\n    |                                           ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:180:67\r\n    |\r\n180 |             pub fn rename(oldname: *const c_char, newname: *const c_char) -> c_int;\r\n    |                                                                   ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:183:41\r\n    |\r\n183 |                            buffer: *mut c_char,\r\n    |                                         ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:186:56\r\n    |\r\n186 |             pub fn setbuf(stream: *mut FILE, buf: *mut c_char);\r\n    |                                                        ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:190:36\r\n    |\r\n190 |             pub fn fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char;\r\n    |                                    ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:190:81\r\n    |\r\n190 |             pub fn fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char;\r\n    |                                                                                 ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:194:36\r\n    |\r\n194 |             pub fn fputs(s: *const c_char, stream: *mut FILE)-> c_int;\r\n    |                                    ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:195:35\r\n    |\r\n195 |             pub fn puts(s: *const c_char) -> c_int;\r\n    |                                   ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_long` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:209:53\r\n    |\r\n209 |             pub fn fseek(stream: *mut FILE, offset: c_long, whence: c_int) -> c_int;\r\n    |                                                     ^^^^^^ not found in this scope\r\n\r\nerror[E0412]: cannot find type `c_long` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:210:48\r\n    |\r\n210 |             pub fn ftell(stream: *mut FILE) -> c_long;\r\n    |                                                ^^^^^^ not found in this scope\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:218:37\r\n    |\r\n218 |             pub fn perror(s: *const c_char);\r\n    |                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:219:35\r\n    |\r\n219 |             pub fn atoi(s: *const c_char) -> c_int;\r\n    |                                   ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:222:37\r\n    |\r\n222 |             pub fn strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double;\r\n    |                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:222:61\r\n    |\r\n222 |             pub fn strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double;\r\n    |                                                             ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:223:37\r\n    |\r\n223 |             pub fn strtol(s: *const c_char,\r\n    |                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:224:43\r\n    |\r\n224 |                           endp: *mut *mut c_char, base: c_int) -> c_long;\r\n    |                                           ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_long` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:224:67\r\n    |\r\n224 |                           endp: *mut *mut c_char, base: c_int) -> c_long;\r\n    |                                                                   ^^^^^^ not found in this scope\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:225:38\r\n    |\r\n225 |             pub fn strtoul(s: *const c_char, endp: *mut *mut c_char,\r\n    |                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:225:62\r\n    |\r\n225 |             pub fn strtoul(s: *const c_char, endp: *mut *mut c_char,\r\n    |                                                              ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_ulong` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:226:44\r\n    |\r\n226 |                            base: c_int) -> c_ulong;\r\n    |                                            ^^^^^^^ not found in this scope\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:237:37\r\n    |\r\n237 |             pub fn system(s: *const c_char) -> c_int;\r\n    |                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:238:37\r\n    |\r\n238 |             pub fn getenv(s: *const c_char) -> *mut c_char;\r\n    |                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:238:53\r\n    |\r\n238 |             pub fn getenv(s: *const c_char) -> *mut c_char;\r\n    |                                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:240:37\r\n    |\r\n240 |             pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char;\r\n    |                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:240:57\r\n    |\r\n240 |             pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char;\r\n    |                                                         ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:240:73\r\n    |\r\n240 |             pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char;\r\n    |                                                                         ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:241:38\r\n    |\r\n241 |             pub fn strncpy(dst: *mut c_char, src: *const c_char, n: size_t)\r\n    |                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:241:58\r\n    |\r\n241 |             pub fn strncpy(dst: *mut c_char, src: *const c_char, n: size_t)\r\n    |                                                          ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:242:36\r\n    |\r\n242 |                            -> *mut c_char;\r\n    |                                    ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:243:35\r\n    |\r\n243 |             pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                   ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:243:54\r\n    |\r\n243 |             pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:243:70\r\n    |\r\n243 |             pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:244:36\r\n    |\r\n244 |             pub fn strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char;\r\n    |                                    ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:244:55\r\n    |\r\n244 |             pub fn strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char;\r\n    |                                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:244:82\r\n    |\r\n244 |             pub fn strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char;\r\n    |                                                                                  ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:245:38\r\n    |\r\n245 |             pub fn strcmp(cs: *const c_char, ct: *const c_char) -> c_int;\r\n    |                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:245:57\r\n    |\r\n245 |             pub fn strcmp(cs: *const c_char, ct: *const c_char) -> c_int;\r\n    |                                                         ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:246:39\r\n    |\r\n246 |             pub fn strncmp(cs: *const c_char, ct: *const c_char, n: size_t) -> c_int;\r\n    |                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:246:58\r\n    |\r\n246 |             pub fn strncmp(cs: *const c_char, ct: *const c_char, n: size_t) -> c_int;\r\n    |                                                          ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:247:39\r\n    |\r\n247 |             pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int;\r\n    |                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:247:58\r\n    |\r\n247 |             pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int;\r\n    |                                                          ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:248:38\r\n    |\r\n248 |             pub fn strchr(cs: *const c_char, c: c_int) -> *mut c_char;\r\n    |                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:248:64\r\n    |\r\n248 |             pub fn strchr(cs: *const c_char, c: c_int) -> *mut c_char;\r\n    |                                                                ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:249:39\r\n    |\r\n249 |             pub fn strrchr(cs: *const c_char, c: c_int) -> *mut c_char;\r\n    |                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:249:65\r\n    |\r\n249 |             pub fn strrchr(cs: *const c_char, c: c_int) -> *mut c_char;\r\n    |                                                                 ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:250:38\r\n    |\r\n250 |             pub fn strspn(cs: *const c_char, ct: *const c_char) -> size_t;\r\n    |                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:250:57\r\n    |\r\n250 |             pub fn strspn(cs: *const c_char, ct: *const c_char) -> size_t;\r\n    |                                                         ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:251:39\r\n    |\r\n251 |             pub fn strcspn(cs: *const c_char, ct: *const c_char) -> size_t;\r\n    |                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:251:58\r\n    |\r\n251 |             pub fn strcspn(cs: *const c_char, ct: *const c_char) -> size_t;\r\n    |                                                          ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:252:38\r\n    |\r\n252 |             pub fn strdup(cs: *const c_char) -> *mut c_char;\r\n    |                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:252:54\r\n    |\r\n252 |             pub fn strdup(cs: *const c_char) -> *mut c_char;\r\n    |                                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:253:39\r\n    |\r\n253 |             pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:253:58\r\n    |\r\n253 |             pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                                          ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:253:74\r\n    |\r\n253 |             pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                                                          ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:254:38\r\n    |\r\n254 |             pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:254:57\r\n    |\r\n254 |             pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                                         ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:254:73\r\n    |\r\n254 |             pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;\r\n    |                                                                         ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:255:38\r\n    |\r\n255 |             pub fn strlen(cs: *const c_char) -> size_t;\r\n    |                                      ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:256:39\r\n    |\r\n256 |             pub fn strnlen(cs: *const c_char, maxlen: size_t) -> size_t;\r\n    |                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:259:47\r\n    |\r\n259 |             pub fn strerror(n: c_int) -> *mut c_char;\r\n    |                                               ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:260:35\r\n    |\r\n260 |             pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char;\r\n    |                                   ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:260:53\r\n    |\r\n260 |             pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char;\r\n    |                                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:260:69\r\n    |\r\n260 |             pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char;\r\n    |                                                                     ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:261:36\r\n    |\r\n261 |             pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t;\r\n    |                                    ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:261:55\r\n    |\r\n261 |             pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t;\r\n    |                                                       ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `wchar_t` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:262:39\r\n    |\r\n262 |             pub fn wcslen(buf: *const wchar_t) -> size_t;\r\n    |                                       ^^^^^^^ not found in this scope\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:263:40\r\n    |\r\n263 |             pub fn wcstombs(dest: *mut c_char, src: *const wchar_t, n: size_t) -> ::size_t;\r\n    |                                        ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `wchar_t` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:263:60\r\n    |\r\n263 |             pub fn wcstombs(dest: *mut c_char, src: *const wchar_t, n: size_t) -> ::size_t;\r\n    |                                                            ^^^^^^^ not found in this scope\r\n\r\nerror[E0412]: cannot find type `c_char` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:277:35\r\n    |\r\n277 |             pub fn atof(s: *const c_char) -> c_double;\r\n    |                                   ^^^^^^ did you mean `c_schar`?\r\n\r\nerror[E0412]: cannot find type `c_long` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:278:28\r\n    |\r\n278 |             pub fn labs(i: c_long) -> c_long;\r\n    |                            ^^^^^^ not found in this scope\r\n\r\nerror[E0412]: cannot find type `c_long` in this scope\r\n   --> rustc/libc_shim/../../liblibc/src/lib.rs:278:39\r\n    |\r\n278 |             pub fn labs(i: c_long) -> c_long;\r\n    |                                       ^^^^^^ not found in this scope\r\n\r\nerror: aborting due to 76 previous errors\r\n\r\nFor more information about this error, try `rustc --explain E0412`.\r\nerror: Could not compile `libc`.\r\n\r\nCaused by:\r\n  process didn't exit successfully: `/d/rust/build/bootstrap/debug/rustc --crate-name libc rustc/libc_shim/../../liblibc/src/lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 --cfg feature=\"default\" --cfg feature=\"stdbuild\" -C metadata=70db4fd830eb0511 -C extra-filename=-70db4fd830eb0511 --out-dir /d/rust/build/x86_64-unknown-linux-gnu/stage2-std/riscv32ia-unknown-none/release/deps --target riscv32ia-unknown-none -L dependency=/d/rust/build/x86_64-unknown-linux-gnu/stage2-std/riscv32ia-unknown-none/release/deps -L dependency=/d/rust/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern core=/d/rust/build/x86_64-unknown-linux-gnu/stage2-std/riscv32ia-unknown-none/release/deps/libcore-6db47a0e2830c329.rlib` (exit code: 101)\r\nwarning: build failed, waiting for other jobs to finish...\r\nerror: build failed\r\nthread 'main' panicked at 'command did not execute successfully: \"/d/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo\" \"build\" \"--target\" \"riscv32ia-unknown-none\" \"-j\" \"8\" \"--release\" \"--features\" \"panic-unwind\" \"--manifest-path\" \"/d/rust/src/libstd/Cargo.toml\" \"--message-format\" \"json\"\r\nexpected success, got: exit code: 101', bootstrap/compile.rs:1096:9\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\nfailed to run: /d/rust/build/bootstrap/debug/bootstrap build --exclude src/tools/miri --target riscv32ia-unknown-none\r\nBuild completed unsuccessfully in 0:00:25\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/riscv-rust/rust/issues/comments/408653355","html_url":"https://github.com/riscv-rust/rust/issues/11#issuecomment-408653355","issue_url":"https://api.github.com/repos/riscv-rust/rust/issues/11","id":408653355,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODY1MzM1NQ==","user":{"login":"TheWaWaR","id":1160419,"node_id":"MDQ6VXNlcjExNjA0MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1160419?v=4","gravatar_id":"","url":"https://api.github.com/users/TheWaWaR","html_url":"https://github.com/TheWaWaR","followers_url":"https://api.github.com/users/TheWaWaR/followers","following_url":"https://api.github.com/users/TheWaWaR/following{/other_user}","gists_url":"https://api.github.com/users/TheWaWaR/gists{/gist_id}","starred_url":"https://api.github.com/users/TheWaWaR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheWaWaR/subscriptions","organizations_url":"https://api.github.com/users/TheWaWaR/orgs","repos_url":"https://api.github.com/users/TheWaWaR/repos","events_url":"https://api.github.com/users/TheWaWaR/events{/privacy}","received_events_url":"https://api.github.com/users/TheWaWaR/received_events","type":"User","site_admin":false},"created_at":"2018-07-29T05:33:48Z","updated_at":"2018-07-29T05:33:48Z","author_association":"NONE","body":"Is there any documentation to learn how to compile `riscv-rust` and run some sample code?"}}
{"actor":{"display_login":"TheWaWaR"}}