Skip to content

Instantly share code, notes, and snippets.

@Zolomon
Created August 31, 2013 21:14
Show Gist options
  • Select an option

  • Save Zolomon/6400671 to your computer and use it in GitHub Desktop.

Select an option

Save Zolomon/6400671 to your computer and use it in GitHub Desktop.
What's causing this build error?
➜ rust git:(master) make
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: using gcc
cfg: no pandoc found, omitting docs
cfg: no node found, omitting docs
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
fetch: x86_64-unknown-linux-gnu/stage0/bin/rustc
determined most recent snapshot: rust-stage0-2013-08-14-e7b5729-linux-x86_64-319fb73727da9a8e4dd6debe37e7647e40ed361b.tar.bz2
got download with ok hash
opening snapshot dl/rust-stage0-2013-08-14-e7b5729-linux-x86_64-319fb73727da9a8e4dd6debe37e7647e40ed361b.tar.bz2
removing x86_64-unknown-linux-gnu/stage0/lib/librustrt.so
removing x86_64-unknown-linux-gnu/stage0/lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
removing x86_64-unknown-linux-gnu/stage0/lib/libextra-a7c050cfd46b2c9a-0.8-pre.so
removing x86_64-unknown-linux-gnu/stage0/lib/libextra.so
removing x86_64-unknown-linux-gnu/stage0/lib/librustc.so
removing x86_64-unknown-linux-gnu/stage0/lib/librustllvm.so
removing x86_64-unknown-linux-gnu/stage0/lib/libsyntax-64629f7f0c6a9bc-0.8-pre.so
removing x86_64-unknown-linux-gnu/stage0/lib/libstd.so
removing x86_64-unknown-linux-gnu/stage0/lib/libstd-6c65cf4b443341b1-0.8-pre.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libsyntax.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libextra-a7c050cfd46b2c9a-0.8-pre.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libextra.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustllvm.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libmorestack.a
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libsyntax-64629f7f0c6a9bc-0.8-pre.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd-6c65cf4b443341b1-0.8-pre.so
removing x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/bin/rustc.o
removing x86_64-unknown-linux-gnu/stage0/bin/rustc
extracting rust-stage0/bin/rustc
extracting rust-stage0/lib/libstd-6c65cf4b443341b1-0.8-pre.so
extracting rust-stage0/lib/libextra-a7c050cfd46b2c9a-0.8-pre.so
extracting rust-stage0/lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
extracting rust-stage0/lib/libsyntax-64629f7f0c6a9bc-0.8-pre.so
extracting rust-stage0/lib/librustrt.so
extracting rust-stage0/lib/librustllvm.so
compile: rt/x86_64-unknown-linux-gnu/stage0/sync/lock_and_signal.o
compile: rt/x86_64-unknown-linux-gnu/stage0/sync/rust_thread.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_builtin.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_run_program.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_rng.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_upcall.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_uv.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_crate_map.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_log.o
compile: rt/x86_64-unknown-linux-gnu/stage0/isaac/randport.o
compile: rt/x86_64-unknown-linux-gnu/stage0/miniz.o
compile: rt/x86_64-unknown-linux-gnu/stage0/memory_region.o
compile: rt/x86_64-unknown-linux-gnu/stage0/boxed_region.o
compile: rt/x86_64-unknown-linux-gnu/stage0/arch/x86_64/context.o
compile: rt/x86_64-unknown-linux-gnu/stage0/arch/x86_64/gpr.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_android_dummy.o
compile: rt/x86_64-unknown-linux-gnu/stage0/rust_test_helpers.o
compile: rt/x86_64-unknown-linux-gnu/stage0/linenoise/linenoise.o
compile: rt/x86_64-unknown-linux-gnu/stage0/linenoise/utf8.o
compile: rt/x86_64-unknown-linux-gnu/stage0/arch/x86_64/_context.o
compile: rt/x86_64-unknown-linux-gnu/stage0/arch/x86_64/ccall.o
compile: rt/x86_64-unknown-linux-gnu/stage0/arch/x86_64/record_sp.o
def: rt/rustrt.linux.def
link: rt/x86_64-unknown-linux-gnu/stage0/librustrt.so
cp: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so
compile: rt/x86_64-unknown-linux-gnu/stage0/arch/x86_64/morestack.o
link: rt/x86_64-unknown-linux-gnu/stage0/arch/x86_64/libmorestack.a
cp: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libmorestack.a
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd.so
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libextra.so
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libsyntax.so
compile: rustllvm/x86_64-unknown-linux-gnu/RustWrapper.o
compile: rustllvm/x86_64-unknown-linux-gnu/PassWrapper.o
def: rustllvm/rustllvm.linux.def
link: rustllvm/x86_64-unknown-linux-gnu/librustllvm.so
cp: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustllvm.so
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc.so
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/bin/rustc
error: linking with `cc` failed with code 1
note: cc arguments: -L/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib -m64 -o x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/bin/rustc x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/bin/rustc.o -L/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib -lstd-6c65cf4b443341b1-0.8-pre -L/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib -lextra-a7c050cfd46b2c9a-0.8-pre -L/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib -lsyntax-64629f7f0c6a9bc-0.8-pre -L/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib -lrustc-d3cb8c2ccd84a7a7-0.8-pre -lrustrt -lrt -lpthread -Lrustllvm -lrustllvm -L/home/bengt/code/rust/rust/.rust -L/home/bengt/code/rust/rust -lrt -ldl -lm -lmorestack -lrustrt -Wl,-rpath,$ORIGIN/../lib -Wl,-rpath,/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib -Wl,-rpath,/usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib
note: /home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustllvm.so: undefined reference to `uncompress'
/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustllvm.so: undefined reference to `compress2'
/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustllvm.so: undefined reference to `crc32'
/home/bengt/code/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustllvm.so: undefined reference to `compressBound'
collect2: error: ld returned 1 exit status
error: aborting due to previous error
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/bin/rustc] Error 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment