Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
set -e
mkdir -p target
mkdir -p deps
git clone deps/regex
git clone deps/semver
git clone deps/strsim-rs
git clone deps/rustc-serialize
git clone deps/
git clone deps/curl-rust --branch bundle
git clone deps/rust-encoding
#git clone deps/flate2-rs
git clone deps/flate2-rs --branch add_feature_libc
git clone deps/glob
git clone deps/hamcrest-rust
#git clone deps/tar-rs
git clone deps/tar-rs --branch add_feature_libc
#git clone deps/libssh2-static-sys
#git clone deps/libz-sys
git clone deps/libz-sys --branch add_feature_libc
git clone deps/ssh2-rs
git clone deps/openssl-static-sys
git clone deps/openssl-sys
git clone deps/toml-rs
git clone deps/rust-url
git clone deps/bitflags
#git clone deps/git2-rs
git clone deps/git2-rs --branch update_libgit2_sys
git clone deps/link-config
git clone deps/SimonSapin/rust-std-candidates
git clone
rustc deps/regex/src/ --crate-type lib --crate-name regex --out-dir target -L target/
rustc deps/semver/src/ --crate-type lib --crate-name semver --out-dir target -L target/
rustc deps/strsim-rs/src/ --crate-type lib --crate-name strsim --out-dir target -L target/
rustc deps/rustc-serialize/src/ --crate-type lib --crate-name rustc_serialize --out-dir target -L target/
rustc deps/ --crate-type lib --crate-name docopt --out-dir target -L target/
rustc deps/rust-encoding/src/index/singlebyte/ --crate-type lib --crate-name encoding_index_singlebyte --out-dir target -L target/
rustc deps/rust-encoding/src/index/korean/ --crate-type lib --crate-name encoding_index_korean --out-dir target -L target/
rustc deps/rust-encoding/src/index/japanese/ --crate-type lib --crate-name encoding_index_japanese --out-dir target -L target/
rustc deps/rust-encoding/src/index/simpchinese/ --crate-type lib --crate-name encoding_index_simpchinese --out-dir target -L target/
rustc deps/rust-encoding/src/index/tradchinese/ --crate-type lib --crate-name encoding_index_tradchinese --out-dir target -L target/
#rustc deps/rust-encoding/src/ --crate-type lib --crate-name encoding --out-dir target -L target/
#OUT_DIR=../../../target/ gmake -C deps/flate2-rs/build/
rustc deps/flate2-rs/miniz-sys/ --crate-type lib --crate-name miniz_sys --out-dir target -L target/
rustc deps/flate2-rs/src/ --crate-type lib --crate-name flate2 --out-dir target -L target/
rustc deps/glob/src/ --crate-type lib --crate-name glob --out-dir target -L target/
rustc deps/hamcrest-rust/src/ --crate-type lib --crate-name hamcrest --out-dir target -L target/
rustc deps/tar-rs/src/ --crate-type lib --crate-name tar --out-dir target -L target/
#rustc deps/libssh2-static-sys/src/ --crate-type lib --crate-name libssh2_static_sys --out-dir target -L target/
rustc deps/libz-sys/src/ --crate-type lib --crate-name libz_sys --out-dir target -L target/
rustc deps/openssl-sys/src/ --crate-type lib --crate-name openssl_sys --out-dir target -L target/
rustc deps/ssh2-rs/libssh2-sys/ --crate-type lib --crate-name libssh2_sys --out-dir target -L target/
#rustc deps/openssl-static-sys/src/ --crate-type lib --crate-name openssl_static_sys --out-dir target -L target/
rustc deps/toml-rs/src/ --crate-type lib --crate-name toml --out-dir target -L target/
rustc deps/SimonSapin/rust-std-candidates/matches/ --crate-type lib --crate-name matches --out-dir target -L target/
rustc deps/rust-url/src/ --crate-type lib --crate-name url --out-dir target -L target/
rustc deps/ --crate-type dylib --crate-name docopt_macros --out-dir target -L target/
rustc deps/bitflags/src/ --crate-type lib --crate-name bitflags --out-dir target -L target/
#rustc deps/link-config/src/ --crate-type lib --crate-name link_config --out-dir target -L target/ --crate-type dylib
rustc deps/git2-rs/libgit2-sys/ --crate-type lib --crate-name libgit2_sys --out-dir target -L target/ --extern url=target/liburl.rlib
rustc deps/git2-rs/src/ --crate-type lib --crate-name git2 --out-dir target -L target/ --extern url=target/liburl.rlib
rustc deps/curl-rust/curl-sys/src/ --crate-type lib --crate-name curl-sys --out-dir target -L target/
rustc deps/curl-rust/src/ --crate-type lib --crate-name curl --out-dir target -L target/ --extern url=target/liburl.rlib
rustc cargo/src/cargo/ -L target --out-dir target --extern glob=target/libglob.rlib --extern semver=target/libsemver.rlib
rustc cargo/src/bin/ -L target --out-dir target

This comment has been minimized.

Copy link
Owner Author

hnakamur commented May 26, 2015

sh -x
+ rustc deps/rust-encoding/src/ --crate-type lib --crate-name encoding --out-dir target -L target/
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report:
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: prev_const.is_none() || prev_const == Some(llconst)', /home/vagrant/rust/src/librustc_trans/trans/

stack backtrace:
   1:        0x80653eca1 - <unknown>
   2:        0x806546a57 - <unknown>
   3:        0x80650994c - <unknown>
   4:        0x800b7645e - <unknown>
   5:        0x800be9420 - <unknown>
   6:        0x800c41590 - <unknown>
   7:        0x800bbb74f - <unknown>
   8:        0x800c57f4e - <unknown>
   9:        0x800bdd5b2 - <unknown>
  10:        0x800c83532 - <unknown>
  11:        0x800c5819c - <unknown>
  12:        0x800bdb646 - <unknown>
  13:        0x800c8383d - <unknown>
  14:        0x800c5819c - <unknown>
  15:        0x800bdb646 - <unknown>
  16:        0x800bd9f61 - <unknown>
  17:        0x800bdbc3a - <unknown>
  18:        0x800bdea07 - <unknown>
  19:        0x800bdf318 - <unknown>
  20:        0x800bec73c - <unknown>
  21:        0x80085ce9c - <unknown>
  22:        0x800835ba6 - <unknown>
  23:        0x8008ee381 - <unknown>
  24:        0x8008ebbd2 - <unknown>
  25:        0x8008eb3d9 - <unknown>
  26:        0x8065bbdd8 - <unknown>
  27:        0x8065bbdc5 - <unknown>
  28:        0x806532f08 - <unknown>
  29:        0x8008eb5f9 - <unknown>
  30:        0x806545676 - <unknown>
  31:        0x806a5d4f4 - <unknown>
  32:                0x0 - <unknown>

Relevant sources:

            if let Some(target) = adj.unsize {

                let prev_const = cx.const_unsized().borrow_mut()
                                   .insert(base, llconst);
                assert!(prev_const.is_none() || prev_const == Some(llconst));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.