[INFO] updating cached repository lord/learnllvm [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/lord/learnllvm [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/lord/learnllvm" "work/ex/beta-1.38-1/sources/1.37.0/gh/lord/learnllvm"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/lord/learnllvm'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/lord/learnllvm" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/lord/learnllvm"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/lord/learnllvm'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 4fc6a517b229c7ffc4f2a74e14df8185a9e2d2ea [INFO] sha for GitHub repo lord/learnllvm: 4fc6a517b229c7ffc4f2a74e14df8185a9e2d2ea [INFO] validating manifest of lord/learnllvm on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of lord/learnllvm on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing lord/learnllvm [INFO] finished frobbing lord/learnllvm [INFO] frobbed toml for lord/learnllvm written to work/ex/beta-1.38-1/sources/1.37.0/gh/lord/learnllvm/Cargo.toml [INFO] started frobbing lord/learnllvm [INFO] finished frobbing lord/learnllvm [INFO] frobbed toml for lord/learnllvm written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/lord/learnllvm/Cargo.toml [INFO] crate lord/learnllvm already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing lord/learnllvm against beta-2019-08-13 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-2/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/lord/learnllvm:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "build" "--frozen"` [INFO] [stdout] 88fd121e005e10e2aee8a54615383a97c563c873873b4725ae7655e4f1056c1c [INFO] running `"docker" "start" "-a" "88fd121e005e10e2aee8a54615383a97c563c873873b4725ae7655e4f1056c1c"` [INFO] [stderr] Compiling gcc v0.3.38 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling libc v0.2.17 [INFO] [stderr] Compiling llvm-alt v0.5.0 [INFO] [stderr] Compiling nom v2.0.0 [INFO] [stderr] Compiling cbox v0.3.0 [INFO] [stderr] Compiling llvm-sys v0.4.0 [INFO] [stderr] Compiling kscope v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unused import: `Value` [INFO] [stderr] --> src/main.rs:6:38 [INFO] [stderr] | [INFO] [stderr] 6 | use llvm::{Context, Builder, Module, Value}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::mem; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BasicBlock` [INFO] [stderr] --> src/codegen.rs:2:84 [INFO] [stderr] | [INFO] [stderr] 2 | use llvm::{Context, Value, Compile, Builder, Module, Type, FunctionType, Function, BasicBlock}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/codegen.rs:78:10 [INFO] [stderr] | [INFO] [stderr] 78 | if (func.get_signature().num_params() != arg_names.len()) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `llvm_sys::core::LLVMDumpValue` [INFO] [stderr] --> src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use llvm_sys::core::LLVMDumpValue; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `llvm_sys::prelude::LLVMValueRef` [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use llvm_sys::prelude::LLVMValueRef; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `builder` [INFO] [stderr] --> src/codegen.rs:15:3 [INFO] [stderr] | [INFO] [stderr] 15 | builder: &'a Builder, [INFO] [stderr] | ^^^^^^^ help: consider prefixing with an underscore: `_builder` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vals` [INFO] [stderr] --> src/codegen.rs:17:3 [INFO] [stderr] | [INFO] [stderr] 17 | vals: &mut HashMap, [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_vals` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:24:7 [INFO] [stderr] | [INFO] [stderr] 24 | let mut module = Module::new("mod_name", &ctx); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] error: linking with `cc` failed: exit code: 1 [INFO] [stderr] | [INFO] [stderr] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.0.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.1.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.10.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.11.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.12.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.13.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.14.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.15.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.2.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.3.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.4.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.5.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.6.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.7.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.8.rcgu.o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.kscope.63sz50zb-cgu.9.rcgu.o" "-o" "/opt/crater/target/debug/deps/kscope-f97a999392494d40" "/opt/crater/target/debug/deps/kscope-f97a999392494d40.4qk1cro5f0o64879.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/crater/target/debug/deps" "-L" "/usr/lib/llvm-3.8/lib" "-L" "/opt/crater/target/debug/build/llvm-sys-001cebaae1efce99/out" "-L" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/crater/target/debug/deps/libnom-704fa721e8e2fcd8.rlib" "/opt/crater/target/debug/deps/libllvm-7c7a4b33a6667f7a.rlib" "/opt/crater/target/debug/deps/libcbox-2868a228170cbd81.rlib" "/opt/crater/target/debug/deps/libllvm_sys-e2ac8f4eea4d9460.rlib" "/opt/crater/target/debug/deps/libbitflags-1910d2c2a79a15d4.rlib" "/opt/crater/target/debug/deps/liblibc-5727d97ccaa262e3.rlib" "-Wl,--start-group" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1d6d86bd078a28e9.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-e9721e46a424e2a9.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-c07193698f282147.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-6da45690f3863086.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-690797036dd27680.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-d3896ccbfd8eda2b.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-7cccc3739e3d7623.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-5e9ba178a513cd29.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-5ca9f83bf63d1f4b.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-bba1c7ef9e950882.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e23c9de62012deb5.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-9b59dffdcd513d5d.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-17392340ab2e4a97.rlib" "-Wl,--end-group" "/opt/crater/rustup-home/toolchains/beta-2019-08-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-ac21508a81e3f7f3.rlib" "-Wl,-Bdynamic" "-lffi" "-lLLVMLTO" "-lLLVMObjCARCOpts" "-lLLVMSymbolize" "-lLLVMDebugInfoPDB" "-lLLVMDebugInfoDWARF" "-lLLVMXCoreDisassembler" "-lLLVMXCoreCodeGen" "-lLLVMXCoreDesc" "-lLLVMXCoreInfo" "-lLLVMXCoreAsmPrinter" "-lLLVMSystemZDisassembler" "-lLLVMSystemZCodeGen" "-lLLVMSystemZAsmParser" "-lLLVMSystemZDesc" "-lLLVMSystemZInfo" "-lLLVMSystemZAsmPrinter" "-lLLVMSparcDisassembler" "-lLLVMSparcCodeGen" "-lLLVMSparcAsmParser" "-lLLVMSparcDesc" "-lLLVMSparcInfo" "-lLLVMSparcAsmPrinter" "-lLLVMPowerPCDisassembler" "-lLLVMPowerPCCodeGen" "-lLLVMPowerPCAsmParser" "-lLLVMPowerPCDesc" "-lLLVMPowerPCInfo" "-lLLVMPowerPCAsmPrinter" "-lLLVMNVPTXCodeGen" "-lLLVMNVPTXDesc" "-lLLVMNVPTXInfo" "-lLLVMNVPTXAsmPrinter" "-lLLVMMSP430CodeGen" "-lLLVMMSP430Desc" "-lLLVMMSP430Info" "-lLLVMMSP430AsmPrinter" "-lLLVMMipsDisassembler" "-lLLVMMipsCodeGen" "-lLLVMMipsAsmParser" "-lLLVMMipsDesc" "-lLLVMMipsInfo" "-lLLVMMipsAsmPrinter" "-lLLVMHexagonDisassembler" "-lLLVMHexagonCodeGen" "-lLLVMHexagonAsmParser" "-lLLVMHexagonDesc" "-lLLVMHexagonInfo" "-lLLVMCppBackendCodeGen" "-lLLVMCppBackendInfo" "-lLLVMBPFCodeGen" "-lLLVMBPFDesc" "-lLLVMBPFInfo" "-lLLVMBPFAsmPrinter" "-lLLVMARMDisassembler" "-lLLVMARMCodeGen" "-lLLVMARMAsmParser" "-lLLVMARMDesc" "-lLLVMARMInfo" "-lLLVMARMAsmPrinter" "-lLLVMAMDGPUCodeGen" "-lLLVMAMDGPUAsmParser" "-lLLVMAMDGPUDesc" "-lLLVMAMDGPUUtils" "-lLLVMAMDGPUInfo" "-lLLVMAMDGPUAsmPrinter" "-lLLVMAArch64Disassembler" "-lLLVMAArch64CodeGen" "-lLLVMAArch64AsmParser" "-lLLVMAArch64Desc" "-lLLVMAArch64Info" "-lLLVMAArch64AsmPrinter" "-lLLVMAArch64Utils" "-lLLVMMIRParser" "-lLLVMLibDriver" "-lLLVMOption" "-lLLVMTableGen" "-lLLVMLineEditor" "-lLLVMX86Disassembler" "-lLLVMX86AsmParser" "-lLLVMX86CodeGen" "-lLLVMSelectionDAG" "-lLLVMAsmPrinter" "-lLLVMX86Desc" "-lLLVMMCDisassembler" "-lLLVMX86Info" "-lLLVMX86AsmPrinter" "-lLLVMX86Utils" "-lLLVMMCJIT" "-lLLVMPasses" "-lLLVMipo" "-lLLVMVectorize" "-lLLVMLinker" "-lLLVMIRReader" "-lLLVMAsmParser" "-lLLVMDebugInfoCodeView" "-lLLVMInterpreter" "-lLLVMCodeGen" "-lLLVMScalarOpts" "-lLLVMInstCombine" "-lLLVMInstrumentation" "-lLLVMProfileData" "-lLLVMBitWriter" "-lLLVMOrcJIT" "-lLLVMTransformUtils" "-lLLVMExecutionEngine" "-lLLVMTarget" "-lLLVMAnalysis" "-lLLVMRuntimeDyld" "-lLLVMObject" "-lLLVMMCParser" "-lLLVMBitReader" "-lLLVMMC" "-lLLVMCore" "-lLLVMSupport" "-lrt" "-ldl" "-ltinfo" "-lpthread" "-lz" "-lm" "-lstdc++" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" [INFO] [stderr] = note: /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `ffiTypeFor(llvm::Type*)': [INFO] [stderr] (.text._ZL10ffiTypeForPN4llvm4TypeE+0x3e): undefined reference to `ffi_type_float' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `ffiTypeFor(llvm::Type*)': [INFO] [stderr] (.text._ZL10ffiTypeForPN4llvm4TypeE+0x4b): undefined reference to `ffi_type_double' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `ffiTypeFor(llvm::Type*)': [INFO] [stderr] (.text._ZL10ffiTypeForPN4llvm4TypeE+0x53): undefined reference to `ffi_type_pointer' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `ffiTypeFor(llvm::Type*)': [INFO] [stderr] (.text._ZL10ffiTypeForPN4llvm4TypeE+0x63): undefined reference to `ffi_type_void' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `ffiTypeFor(llvm::Type*)': [INFO] [stderr] (.text._ZL10ffiTypeForPN4llvm4TypeE+0x90): undefined reference to `ffi_type_sint8' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `ffiTypeFor(llvm::Type*)': [INFO] [stderr] (.text._ZL10ffiTypeForPN4llvm4TypeE+0x9b): undefined reference to `ffi_type_sint64' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `ffiTypeFor(llvm::Type*)': [INFO] [stderr] (.text._ZL10ffiTypeForPN4llvm4TypeE+0xa3): undefined reference to `ffi_type_sint32' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `ffiTypeFor(llvm::Type*)': [INFO] [stderr] (.text._ZL10ffiTypeForPN4llvm4TypeE+0xb3): undefined reference to `ffi_type_sint16' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `llvm::Interpreter::callExternalFunction(llvm::Function*, llvm::ArrayRef)': [INFO] [stderr] (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0x90d): undefined reference to `ffi_prep_cif' [INFO] [stderr] /usr/lib/llvm-3.8/lib/libLLVMInterpreter.a(ExternalFunctions.cpp.o): In function `llvm::Interpreter::callExternalFunction(llvm::Function*, llvm::ArrayRef)': [INFO] [stderr] (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0xa91): undefined reference to `ffi_call' [INFO] [stderr] collect2: error: ld returned 1 exit status [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `kscope`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "88fd121e005e10e2aee8a54615383a97c563c873873b4725ae7655e4f1056c1c"` [INFO] running `"docker" "rm" "-f" "88fd121e005e10e2aee8a54615383a97c563c873873b4725ae7655e4f1056c1c"` [INFO] [stdout] 88fd121e005e10e2aee8a54615383a97c563c873873b4725ae7655e4f1056c1c