Issue 1:
╭─mindcat@mindcat-linux-pc ~/workspace/nekoneko ‹master*›
╰─➤ RUST_BACKTRACE=1 RUST_LOG=nekoneko cargo build
Compiling env_logger v0.2.2 (https://github.com/rust-lang/log#e78b7368)
/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 8309, node: ExprStruct(Path { span: Span { lo: BytePos(4566650), hi: BytePos(4566661), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 8310, node: ExprPath(None, Path { span: Span { lo: BytePos(4566674), hi: BytePos(4566689), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4566674), hi: BytePos(4566689), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4566668), hi: BytePos(4566689), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 8311, node: ExprPath(None, Path { span: Span { lo: BytePos(4566703), hi: BytePos(4566720), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4566703), hi: BytePos(4566720), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4566695), hi: BytePos(4566720), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4566650), hi: BytePos(4566723), expn_id: ExpnId(4294967295) } })
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129

stack backtrace:
1: 0x7fa61c039f1f - sys::backtrace::write::hf79a3da4fdecb8a0OBA
2: 0x7fa61c064c32 - panicking::on_panic::h9f64f4c69e19f194hHJ
3: 0x7fa61bf99eda - rt::unwind::begin_unwind_inner::h37f4496c980fe936knJ
4: 0x7fa6193ecabd - rt::unwind::begin_unwind::h8320268356453106285
5: 0x7fa6193eca63 - diagnostic::SpanHandler::span_bug::h83c8af232eaba6a9h0D
6: 0x7fa619cc8ca3 - session::Session::span_bug::h857b2c7ae23c9286ISp
7: 0x7fa61b7e680c - trans::debuginfo::scope_metadata::hac54dfdbdcd04cd9SjE
8: 0x7fa61b6f9408 - trans::debuginfo::set_source_location::h1067a74086ed9dd48MD
9: 0x7fa61b6ade42 - trans::expr::trans_into::h95c6d2681fdd2548znh
10: 0x7fa61b6ae109 - trans::expr::trans_into::h95c6d2681fdd2548znh
11: 0x7fa61b71067f - trans::expr::trans_uniq_expr::h5f082eea62818f84ukj
12: 0x7fa61b7112ef - trans::expr::trans_unary::h4412379888608420Jgj
13: 0x7fa61b6fb80e - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
14: 0x7fa61b6ae417 - trans::expr::trans_into::h95c6d2681fdd2548znh
15: 0x7fa61b72e6f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
16: 0x7fa61b7311af - trans::expr::trans_struct::closure.42069
17: 0x7fa61b71b016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
18: 0x7fa61b6fd53d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
19: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
20: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
21: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
22: 0x7fa61b697b08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
23: 0x7fa61b6995a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
24: 0x7fa61b6dee4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
25: 0x7fa61b6dd43e - trans::callee::trans_fn_ref::hb48e614c9b6dd9bcE9f
26: 0x7fa61b6da88d - trans::callee::trans::ha56f4fe94448e6baVYf
27: 0x7fa61b6f0fbb - trans::callee::trans_call_inner::h9722042290657949952
28: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
29: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
30: 0x7fa61b72e6f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
31: 0x7fa61b7311af - trans::expr::trans_struct::closure.42069
32: 0x7fa61b71b016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
33: 0x7fa61b6fd53d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
34: 0x7fa61b6fb668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
35: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
36: 0x7fa61b6ec9f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
37: 0x7fa61b6f1ea0 - trans::callee::trans_call_inner::h9722042290657949952
38: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
39: 0x7fa61b6fb668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
40: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
41: 0x7fa61b6adee3 - trans::expr::trans_into::h95c6d2681fdd2548znh
42: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
43: 0x7fa61b6fcf7e - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
44: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
45: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
46: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
47: 0x7fa61b72f139 - trans::closure::trans_closure_expr::hc99a1619c43ed333flx
48: 0x7fa61b6fda38 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
49: 0x7fa61b6fb764 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
50: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
51: 0x7fa61b6ec9f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
52: 0x7fa61b6f1ea0 - trans::callee::trans_call_inner::h9722042290657949952
53: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
54: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
55: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
56: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
57: 0x7fa61b697b08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
58: 0x7fa61b6938a1 - trans::base::trans_item::h48fc370b7d259ac7vTt
59: 0x7fa61b78f7ec - trans::base::trans_crate::hc92be67ede893c70GPu
60: 0x7fa61c672e83 - driver::phase_4_translate_to_llvm::h9904f5d5fc3fb761rNa
61: 0x7fa61c64e83f - driver::compile_input::h3913ff7013f0c056Iba
62: 0x7fa61c716cb7 - run_compiler::h28a4446bae1034e7H5b
63: 0x7fa61c714829 - thunk::F.Invoke<A, R>::invoke::h6503055919709693733
64: 0x7fa61c7134a0 - rt::unwind::try::try_fn::h1384674024000742916
65: 0x7fa61c0d4de8 - rust_try_inner
66: 0x7fa61c0d4dd5 - rust_try
67: 0x7fa61c713c3f - thunk::F.Invoke<A, R>::invoke::h5780663349966142752
68: 0x7fa61c04f965 - sys::thread::thread_start::h4ab695857833a5dar8E
69: 0x7fa615ecc373 - start_thread
70: 0x7fa61bc1a27c - __clone
71: 0x0 - <unknown>

Could not compile `env_logger`.

To learn more, run the command again with --verbose.
╭─mindcat@mindcat-linux-pc ~/workspace/nekoneko ‹master*›
╰─➤ rustc --version 101 ↵
rustc 1.0.0-nightly (3b3bb0e68 2015-03-04) (built 2015-03-05)

Issue 2:
$ RUST_BACKTRACE=1 cargo build --verbose
Fresh gcc v0.2.1
Fresh pkg-config v0.2.1
Compiling openssl-sys v0.4.0 (file:///tmp/rust-openssl/openssl-sys)
Running `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim`
src/lib.rs:1:1: 1:1 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 5326, node: ExprStruct(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5327, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5328, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } })
src/lib.rs:1 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /mnt/trash1/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:129

stack backtrace:
1: 0x7fa97995e8e0 - sys::backtrace::write::he6b1641fd079577cfmB
2: 0x7fa979984760 - <unknown>
3: 0x7fa9798d60f0 - rt::unwind::begin_unwind_inner::h634afd378febd66detK
4: 0x7fa976e432b0 - <unknown>
5: 0x7fa976e43240 - diagnostic::SpanHandler::span_bug::h189abf680a7a28f874E
6: 0x7fa97793d500 - session::Session::span_bug::h720ba33852c899b7rSs
7: 0x7fa9787a8a10 - <unknown>
8: 0x7fa9786d9700 - <unknown>
9: 0x7fa978698f50 - <unknown>
10: 0x7fa978698f50 - <unknown>
11: 0x7fa9786999b0 - <unknown>
12: 0x7fa978756fc0 - <unknown>
13: 0x7fa97870d900 - <unknown>
14: 0x7fa97873aef0 - <unknown>
15: 0x7fa9786d9d30 - <unknown>
16: 0x7fa97869a200 - <unknown>
17: 0x7fa9786cea00 - <unknown>
18: 0x7fa9786d50f0 - <unknown>
19: 0x7fa9786dbb30 - <unknown>
20: 0x7fa9786db080 - <unknown>
21: 0x7fa97869a200 - <unknown>
22: 0x7fa9786cea00 - <unknown>
23: 0x7fa9786d50f0 - <unknown>
24: 0x7fa9786dbb30 - <unknown>
25: 0x7fa9786db080 - <unknown>
26: 0x7fa97869a200 - <unknown>
27: 0x7fa9786cea00 - <unknown>
28: 0x7fa9786d3a90 - <unknown>
29: 0x7fa9786dbb30 - <unknown>
30: 0x7fa978698f50 - <unknown>
31: 0x7fa978787d40 - <unknown>
32: 0x7fa978698830 - <unknown>
33: 0x7fa9786999b0 - <unknown>
34: 0x7fa9786dbb30 - <unknown>
35: 0x7fa978698f50 - <unknown>
36: 0x7fa9786999b0 - <unknown>
37: 0x7fa978756fc0 - <unknown>
38: 0x7fa97870d900 - <unknown>
39: 0x7fa9786dbb30 - <unknown>
40: 0x7fa9786db080 - <unknown>
41: 0x7fa97869a200 - <unknown>
42: 0x7fa9786cea00 - <unknown>
43: 0x7fa9786d50f0 - <unknown>
44: 0x7fa9786dbb30 - <unknown>
45: 0x7fa978698f50 - <unknown>
46: 0x7fa9786999b0 - <unknown>
47: 0x7fa9786dbb30 - <unknown>
48: 0x7fa978698f50 - <unknown>
49: 0x7fa9786999b0 - <unknown>
50: 0x7fa978756fc0 - <unknown>
51: 0x7fa9786887a0 - <unknown>
52: 0x7fa978684210 - <unknown>
53: 0x7fa97875dd80 - trans::base::trans_crate::ha8556e563b91ec61fQv
54: 0x7fa979f5f250 - driver::phase_4_translate_to_llvm::hc334bfd7f2b08e6d2Oa
55: 0x7fa979f384b0 - driver::compile_input::h6a09d1f5442479b9Eba
56: 0x7fa97a007770 - run_compiler::h940da8caa9037102Bbc
57: 0x7fa97a005d00 - <unknown>
58: 0x7fa97a004be0 - <unknown>
59: 0x7fa9799e1770 - <unknown>
60: 0x7fa9799e1760 - rust_try
61: 0x7fa97a004e90 - <unknown>
62: 0x7fa979971e00 - <unknown>
63: 0x7fa974614f70 - <unknown>
64: 0x7fa97955d389 - clone
65: 0x0 - <unknown>

Could not compile `openssl-sys`.

Caused by:
Process didn't exit successfully: `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim` (status=101)

Rust version:

rustc 1.0.0-dev (81bce5290 2015-02-16) (built 2015-02-17)
binary: rustc
commit-hash: 81bce5290ff55b9a2eddd83d31b0778180904d7f
commit-date: 2015-02-16
build-date: 2015-02-17
host: x86_64-unknown-linux-gnu
release: 1.0.0-dev

OS: Gentoo Linux AMD64