[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.37-6/sources/1.36.0/gh/lord/learnllvm"` [INFO] [stderr] Cloning into 'work/ex/beta-1.37-6/sources/1.36.0/gh/lord/learnllvm'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/lord/learnllvm" "work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/lord/learnllvm"` [INFO] [stderr] Cloning into 'work/ex/beta-1.37-6/sources/beta-2019-07-23/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.36.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of lord/learnllvm on toolchain beta-2019-07-23 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "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.37-6/sources/1.36.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.37-6/sources/beta-2019-07-23/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.36.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing lord/learnllvm against 1.36.0 for beta-1.37-6 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-4/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/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" "+1.36.0" "build" "--frozen"` [INFO] [stdout] 822353b3a11858ddad8ee9fb0b695bc076faf9cab81ff0574bb84a51c8ff217e [INFO] running `"docker" "start" "-a" "822353b3a11858ddad8ee9fb0b695bc076faf9cab81ff0574bb84a51c8ff217e"` [INFO] [stderr] Compiling llvm-alt v0.5.0 [INFO] [stderr] Compiling nom v2.0.0 [INFO] [stderr] Compiling llvm-sys v0.4.0 [INFO] [stderr] Compiling cbox v0.3.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/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.0.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.1.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.10.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.11.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.12.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.13.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.14.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.15.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.2.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.3.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.4.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.5.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.6.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.7.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.8.rcgu.o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.kscope.2ijjmdqh-cgu.9.rcgu.o" "-o" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e" "/opt/crater/target/debug/deps/kscope-2eb80f3905b6985e.4244orussnti92rp.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-aad8b28f86fee282/out" "-L" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/crater/target/debug/deps/libnom-b990e944a71000da.rlib" "/opt/crater/target/debug/deps/libllvm-ebd9c0b67aa18863.rlib" "/opt/crater/target/debug/deps/libcbox-e71c6a4c999a7386.rlib" "/opt/crater/target/debug/deps/libllvm_sys-fd51693d71bacf72.rlib" "/opt/crater/target/debug/deps/libbitflags-d5bf6bfc217a7959.rlib" "/opt/crater/target/debug/deps/liblibc-da4b711171922317.rlib" "-Wl,--start-group" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9895e8982b0a79e7.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-57306b8ed3378a0e.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-54463ae5adae3649.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-d99667b199a9875a.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-51f4300e102199f5.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-b3ccf1f7737a6a91.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-157c37a3ceb78853.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-505bcee45aafb736.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c29abd529ba4452b.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-895383a3232f6572.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5594cb4f559bc761.rlib" "-Wl,--end-group" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-38e90baf978bc428.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" "822353b3a11858ddad8ee9fb0b695bc076faf9cab81ff0574bb84a51c8ff217e"` [INFO] running `"docker" "rm" "-f" "822353b3a11858ddad8ee9fb0b695bc076faf9cab81ff0574bb84a51c8ff217e"` [INFO] [stdout] 822353b3a11858ddad8ee9fb0b695bc076faf9cab81ff0574bb84a51c8ff217e