{"action":"created","issue":{"url":"https://api.github.com/repos/termoshtt/llvmenv/issues/21","repository_url":"https://api.github.com/repos/termoshtt/llvmenv","labels_url":"https://api.github.com/repos/termoshtt/llvmenv/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/termoshtt/llvmenv/issues/21/comments","events_url":"https://api.github.com/repos/termoshtt/llvmenv/issues/21/events","html_url":"https://github.com/termoshtt/llvmenv/issues/21","id":339107404,"node_id":"MDU6SXNzdWUzMzkxMDc0MDQ=","number":21,"title":"fail to build llvm 6.0.0","user":{"login":"longwusha","id":22556004,"node_id":"MDQ6VXNlcjIyNTU2MDA0","avatar_url":"https://avatars2.githubusercontent.com/u/22556004?v=4","gravatar_id":"","url":"https://api.github.com/users/longwusha","html_url":"https://github.com/longwusha","followers_url":"https://api.github.com/users/longwusha/followers","following_url":"https://api.github.com/users/longwusha/following{/other_user}","gists_url":"https://api.github.com/users/longwusha/gists{/gist_id}","starred_url":"https://api.github.com/users/longwusha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longwusha/subscriptions","organizations_url":"https://api.github.com/users/longwusha/orgs","repos_url":"https://api.github.com/users/longwusha/repos","events_url":"https://api.github.com/users/longwusha/events{/privacy}","received_events_url":"https://api.github.com/users/longwusha/received_events","type":"User","site_admin":false},"labels":[{"id":928449971,"node_id":"MDU6TGFiZWw5Mjg0NDk5NzE=","url":"https://api.github.com/repos/termoshtt/llvmenv/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-07T01:39:01Z","updated_at":"2018-07-08T05:58:18Z","closed_at":null,"author_association":"NONE","body":"i can use my browser to download the source archive  from the same link(http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz), but llvmenv failed.\r\n\r\nanyone can help?\r\n\r\nMore Info:\r\n\r\n```\r\nlsw@lsw-deepin:~/tools/llvm/6$ RUST_BACKTRACE=1 llvmenv build-entry 6.0.0\r\nDownload: http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz\r\nthread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: Io(Custom { kind: WouldBlock, error: StringError(\"timed out\") }), url: None }\r\n\r\nstack backtrace:\r\n   0:     0x557f43abd76c - backtrace::backtrace::trace::haf9c4d8d1e10b5d4\r\n   1:     0x557f43abcdc2 - backtrace::capture::Backtrace::new_unresolved::hc7fe874deef8cca0\r\n   2:     0x557f43abc96f - failure::backtrace::internal::InternalBacktrace::new::hb1d59bc9929c5a63\r\n   3:     0x557f43abc631 - failure::backtrace::Backtrace::new::hc0c1cf7573669102\r\n   4:     0x557f438c01bc - llvmenv::entry::download::hc98cc8739ff4f2b9\r\n   5:     0x557f438bca06 - llvmenv::entry::Entry::checkout::h6037f0a016008eb2\r\n   6:     0x557f438cb046 - llvmenv::main::h50ec54bfba91cb4d\r\n   7:     0x557f438b7b06 - std::rt::lang_start::{{closure}}::heac0806c178ff7f4\r\n   8:     0x557f43adc2f2 - std::rt::lang_start_internal::{{closure}}::h342eaeec3a520255\r\n                        at libstd/rt.rs:59\r\n                         - std::panicking::try::do_call::h8b090b6144a018fb\r\n                        at libstd/panicking.rs:310\r\n   9:     0x557f43b01d89 - __rust_maybe_catch_panic\r\n                        at libpanic_unwind/lib.rs:105\r\n  10:     0x557f43ae68a5 - std::panicking::try::h11349d7f0dce3b3c\r\n                        at libstd/panicking.rs:289\r\n                         - std::panic::catch_unwind::hfbb0f172d1ed4df2\r\n                        at libstd/panic.rs:374\r\n                         - std::rt::lang_start_internal::h6c73689767a9401e\r\n                        at libstd/rt.rs:58\r\n  11:     0x557f438cc393 - main\r\n  12:     0x7faaeb4132b0 - __libc_start_main\r\n  13:     0x557f4389ec79 - _start\r\n  14:                0x0 - <unknown>', libcore/result.rs:945:5\r\nstack backtrace:\r\n   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace\r\n             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49\r\n   1: std::sys_common::backtrace::print\r\n             at libstd/sys_common/backtrace.rs:71\r\n             at libstd/sys_common/backtrace.rs:59\r\n   2: std::panicking::default_hook::{{closure}}\r\n             at libstd/panicking.rs:211\r\n   3: std::panicking::default_hook\r\n             at libstd/panicking.rs:227\r\n   4: std::panicking::rust_panic_with_hook\r\n             at libstd/panicking.rs:463\r\n   5: std::panicking::begin_panic_fmt\r\n             at libstd/panicking.rs:350\r\n   6: rust_begin_unwind\r\n             at libstd/panicking.rs:328\r\n   7: core::panicking::panic_fmt\r\n             at libcore/panicking.rs:71\r\n   8: core::result::unwrap_failed\r\n   9: llvmenv::main\r\n  10: std::rt::lang_start::{{closure}}\r\n  11: std::panicking::try::do_call\r\n             at libstd/rt.rs:59\r\n             at libstd/panicking.rs:310\r\n  12: __rust_maybe_catch_panic\r\n             at libpanic_unwind/lib.rs:105\r\n  13: std::rt::lang_start_internal\r\n             at libstd/panicking.rs:289\r\n             at libstd/panic.rs:374\r\n             at libstd/rt.rs:58\r\n  14: main\r\n  15: __libc_start_main\r\n  16: _start\r\n```"},"comment":{"url":"https://api.github.com/repos/termoshtt/llvmenv/issues/comments/403264711","html_url":"https://github.com/termoshtt/llvmenv/issues/21#issuecomment-403264711","issue_url":"https://api.github.com/repos/termoshtt/llvmenv/issues/21","id":403264711,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzI2NDcxMQ==","user":{"login":"termoshtt","id":1238153,"node_id":"MDQ6VXNlcjEyMzgxNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1238153?v=4","gravatar_id":"","url":"https://api.github.com/users/termoshtt","html_url":"https://github.com/termoshtt","followers_url":"https://api.github.com/users/termoshtt/followers","following_url":"https://api.github.com/users/termoshtt/following{/other_user}","gists_url":"https://api.github.com/users/termoshtt/gists{/gist_id}","starred_url":"https://api.github.com/users/termoshtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/termoshtt/subscriptions","organizations_url":"https://api.github.com/users/termoshtt/orgs","repos_url":"https://api.github.com/users/termoshtt/repos","events_url":"https://api.github.com/users/termoshtt/events{/privacy}","received_events_url":"https://api.github.com/users/termoshtt/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T05:58:18Z","updated_at":"2018-07-08T05:58:18Z","author_association":"OWNER","body":"Hum... I am not familiar with networking. llvmenv uses [reqwest::get](https://docs.rs/reqwest/0.8.6/reqwest/fn.get.html) to download llvm archive file. Could you test it in a minimal setting like:\r\n\r\n```rust\r\nextern crate reqwest;\r\nuse std::fs;\r\n\r\nfn main()  {\r\n    let mut req = reqwest::get(\"http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz\").expect(\"GET failed\");\r\n    let mut f = fs::File::create(\"llvm-src.tar.xz\").unwrap();\r\n    req.copy_to(&mut f).expect(\"Copy failed\");\r\n}\r\n```"}}
{"actor":{"display_login":"termoshtt"}}