{"action":"closed","issue":{"url":"https://api.github.com/repos/retep998/winapi-rs/issues/203","labels_url":"https://api.github.com/repos/retep998/winapi-rs/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/retep998/winapi-rs/issues/203/comments","events_url":"https://api.github.com/repos/retep998/winapi-rs/issues/203/events","html_url":"https://github.com/retep998/winapi-rs/issues/203","id":105282043,"number":203,"title":"advapi32-sys build command fails","user":{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars.githubusercontent.com/u/456674?v=3","gravatar_id":"","url":"https://api.github.com/users/BurntSushi","html_url":"https://github.com/BurntSushi","followers_url":"https://api.github.com/users/BurntSushi/followers","following_url":"https://api.github.com/users/BurntSushi/following{/other_user}","gists_url":"https://api.github.com/users/BurntSushi/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntSushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntSushi/subscriptions","organizations_url":"https://api.github.com/users/BurntSushi/orgs","repos_url":"https://api.github.com/users/BurntSushi/repos","events_url":"https://api.github.com/users/BurntSushi/events{/privacy}","received_events_url":"https://api.github.com/users/BurntSushi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-08T01:10:23Z","updated_at":"2015-09-08T02:25:34Z","closed_at":"2015-09-08T02:25:34Z","body":"I cloned this repo, cd'd into `lib/advapi32-sys` and ran `cargo build --release`. It looks like the build fails because the `build.rs` fails? But it doesn't seem to print a useful error message and I don't know how to get a better one. I do indeed have `C:\\Windows\\System32\\advapi32.dll` on my machine.\r\n\r\n```\r\nC:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys> \"C:\\Program Files\\Rust stable 1.2\\bin\\cargo.exe\" build --release --verbose                                                                         \r\n   Compiling winapi-build v0.1.1 (file:///C:/Users/andrew/winapi-rs/lib/advapi32-sys)                                                                                                          \r\n     Running `rustc C:\\Users\\andrew\\winapi-rs\\build\\src\\lib.rs --crate-name build --crate-type lib -C opt-level=3 -C metadata=b713ee6924909eb4 -C extra-filename=-b713ee6924909eb4 --out-dir C:\r\n\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\deps --emit=dep-info,link -L dependency=C:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\deps -L dependency=C:\\Users\\andrew\\wi\r\nnapi-rs\\lib\\advapi32-sys\\target\\release\\deps`                                                                                                                                                  \r\n   Compiling winapi v0.2.2 (file:///C:/Users/andrew/winapi-rs/lib/advapi32-sys)                                                                                                                \r\n     Running `rustc C:\\Users\\andrew\\winapi-rs\\src\\lib.rs --crate-name winapi --crate-type lib -C opt-level=3 -C metadata=14a19109f362310d -C extra-filename=-14a19109f362310d --out-dir C:\\User\r\ns\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\deps --emit=dep-info,link -L dependency=C:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\deps -L dependency=C:\\Users\\andrew\\winapi-\r\nrs\\lib\\advapi32-sys\\target\\release\\deps`                                                                                                                                                       \r\n   Compiling advapi32-sys v0.1.2 (file:///C:/Users/andrew/winapi-rs/lib/advapi32-sys)                                                                                                          \r\n     Running `rustc build.rs --crate-name build_script_build --crate-type bin -C prefer-dynamic -g --out-dir C:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\build\\advapi32-sys-59623\r\n58b1a8d5462 --emit=dep-info,link -L dependency=C:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release -L dependency=C:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\deps --extern \r\nbuild=C:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\deps\\libbuild-b713ee6924909eb4.rlib`                                                                                           \r\n     Running `C:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\build\\advapi32-sys-5962358b1a8d5462\\build-script-build`                                                                \r\nBuild failed, waiting for other jobs to finish...                                                                                                                                              \r\nC:\\Users\\andrew\\winapi-rs\\src\\winuser.rs:1079:14: 1079:31 warning: trivial numeric cast: `u32` as `u32`. Cast can be replaced by coercion, this might require type ascription or a temporary va\r\nriable                                                                                                                                                                                         \r\nC:\\Users\\andrew\\winapi-rs\\src\\winuser.rs:1079     ::HIWORD(wParam as ::DWORD) as ::c_short                                                                                                     \r\n                                                           ^~~~~~~~~~~~~~~~~                                                                                                                   \r\nC:\\Users\\andrew\\winapi-rs\\src\\lib.rs:5:54: 5:75 note: lint level defined here                                                                                                                  \r\nC:\\Users\\andrew\\winapi-rs\\src\\lib.rs:5 #![warn(missing_copy_implementations, trivial_casts, trivial_numeric_casts)]                                                                            \r\n                                                                                            ^~~~~~~~~~~~~~~~~~~~~                                                                              \r\nC:\\Users\\andrew\\winapi-rs\\src\\winuser.rs:1082:14: 1082:31 warning: trivial numeric cast: `u32` as `u32`. Cast can be replaced by coercion, this might require type ascription or a temporary va\r\nriable                                                                                                                                                                                         \r\nC:\\Users\\andrew\\winapi-rs\\src\\winuser.rs:1082     ::LOWORD(wparam as ::DWORD) as ::c_short as ::c_int                                                                                          \r\n                                                           ^~~~~~~~~~~~~~~~~                                                                                                                   \r\nC:\\Users\\andrew\\winapi-rs\\src\\lib.rs:5:54: 5:75 note: lint level defined here                                                                                                                  \r\nC:\\Users\\andrew\\winapi-rs\\src\\lib.rs:5 #![warn(missing_copy_implementations, trivial_casts, trivial_numeric_casts)]                                                                            \r\n                                                                                            ^~~~~~~~~~~~~~~~~~~~~                                                                              \r\nfailed to run custom build command for `advapi32-sys v0.1.2 (file:///C:/Users/andrew/winapi-rs/lib/advapi32-sys)`                                                                              \r\nProcess didn't exit successfully: `C:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys\\target\\release\\build\\advapi32-sys-5962358b1a8d5462\\build-script-build` (exit code: -1073741515)                  \r\n                                                                                                                                                                                               \r\nC:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys> \r\n```\r\n\r\nVersion info (installed via MSI installed from rust-lang.org):\r\n\r\n```\r\nC:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys> \"C:\\Program Files\\Rust stable 1.2\\bin\\rustc.exe\" --version                                                                                         \r\nrustc 1.2.0 (082e47636 2015-08-03)                                                                                                                                                             \r\n                                                                                                                                                                                            \r\nC:\\Users\\andrew\\winapi-rs\\lib\\advapi32-sys> \"C:\\Program Files\\Rust stable 1.2\\bin\\cargo.exe\" --version                                                                                         \r\ncargo 0.4.0-nightly (15b497b 2015-07-08) (built 2015-07-10)\r\n```\r\n\r\nNote that I am an extreme newbie when it comes to Windows. Assume I know almost nothing about it. :-)"}}