Skip to content

Instantly share code, notes, and snippets.

View bstrie's full-sized avatar

bstrie bstrie

View GitHub Profile
⌁ RUST_LOG=rustc=0,::rt::backtrace make -j2
cfg: shell host triple i686-unknown-linux-gnu
cfg: host for i686-unknown-linux-gnu is i386
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
compile_and_link: i686-unknown-linux-gnu/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustc.so
rust: upcall fail 'explicit failure', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/libcore/run.rs:197
@bstrie
bstrie / gist:2912477
Created June 11, 2012 20:29
Rust ICE
⌁ RUST_LOG=rustc=0,::rt::backtrace make -j2
cfg: shell host triple i686-unknown-linux-gnu
cfg: host for i686-unknown-linux-gnu is i386
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
compile_and_link: i686-unknown-linux-gnu/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustc.so
rust: upcall fail 'explicit failure', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/libcore/run.rs:197
@bstrie
bstrie / gist:2918045
Created June 12, 2012 15:03
Rust ICE
⌁ RUST_LOG=rustc=0,::rt::backtrace make
cfg: shell host triple i686-unknown-linux-gnu
cfg: host for i686-unknown-linux-gnu is i386
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
fetch: i686-unknown-linux-gnu/stage0/bin/rustc
determined most recent snapshot: rust-stage0-2012-06-04-7213274-linux-i386-8cedb0a45f4c1119d3ba654dfd15ea96ed2a27df.tar.bz2
@bstrie
bstrie / backtrace
Created June 16, 2012 20:55
Rust ICE
⌁ RUST_LOG=rustc=0,::rt::backtrace make -j2
cfg: shell host triple x86_64-unknown-linux-gnu
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: unix-y environment
cfg: using gcc
cfg: no pdflatex found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore.so
rust: upcall fail 'explicit failure', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/libsyntax/ast_util.rs:59
/media/warehouse/Linux/Programs/rust/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x2b28ef7f2c6d]
@bstrie
bstrie / gist:3019889
Created June 29, 2012 18:37
Togglable comment blocks
/*
To comment and uncomment any code in here requires one to separately
add/remove both the start and end tags for the block comment, which can be a
bit annoying if you're toggling a block frequently, or if the start and end
points are far apart (and you're using Notepad, or something).
*/
/*
This is code that is commented out. The second block-comment-start tag,
below, is ignored as part of the comment (but only if the language does *not*
@bstrie
bstrie / gist:3300561
Created August 9, 2012 03:08
Rust error
/media/linhaus/rust/src/libstd/arena.rs:37:0: 78:1 error: type, variant, or trait must be camel case
/media/linhaus/rust/src/libstd/arena.rs:37 impl &Arena {
/media/linhaus/rust/src/libstd/arena.rs:38 fn alloc_grow(n_bytes: uint, align: uint) -> *() {
/media/linhaus/rust/src/libstd/arena.rs:39 // Allocate a new chunk.
/media/linhaus/rust/src/libstd/arena.rs:40 let mut head = list::head(self.chunks);
/media/linhaus/rust/src/libstd/arena.rs:41 let chunk_size = vec::capacity(head.data);
/media/linhaus/rust/src/libstd/arena.rs:42 let new_min_chunk_size = uint::max(n_bytes, chunk_size);
...
error: aborting due to previous error
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd.so] Error 101
@bstrie
bstrie / gist:3441358
Created August 23, 2012 20:37
Rust pretty printer
fn main() {
io::println(str::concat([~"hello, ",
extfmt::rt::conv_str({flags:
extfmt::rt::flag_none,
width:
extfmt::rt::count_implied,
precision:
extfmt::rt::count_implied,
ty:
extfmt::rt::ty_default,},
@bstrie
bstrie / gist:3636226
Created September 5, 2012 13:02
Rust ICE
$ RUST_LOG=rustc=0,::rt::backtrace make
cfg: shell host triple i686-unknown-linux-gnu
cfg: host for i686-unknown-linux-gnu is i386
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
compile_and_link: i686-unknown-linux-gnu/stage0/lib/rustc/i686-unknown-linux-gnu/lib/libstd.so
rust: task failed at 'Assertion res as int != 0 failed', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/libcore/flate.rs:48
@bstrie
bstrie / foo.py
Created September 11, 2012 20:03
def test():
print("hello, gist!")
@bstrie
bstrie / gist:3859453
Created October 9, 2012 15:15
Rust generated bindings compile error
$ rustc --lib lua.rs
lua.rs:4:15: 4:32 error: use of undeclared type name `__builtin_va_list`
lua.rs:4 type va_list = __builtin_va_list;
^~~~~~~~~~~~~~~~~
lua.rs:5:22: 5:39 error: use of undeclared type name `__builtin_va_list`
lua.rs:5 type __gnuc_va_list = __builtin_va_list;
^~~~~~~~~~~~~~~~~
lua.rs:34:11: 34:26 error: use of undeclared type name `Struct_CallInfo`
lua.rs:34 i_ci: *Struct_CallInfo,
^~~~~~~~~~~~~~~