[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 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.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.37.0" "build" "--frozen"` [INFO] [stdout] 8e438dbd6b0e7a13702d7d44d955e851aeec9949f58dc8b1d6f8a06674975be0 [INFO] running `"docker" "start" "-a" "8e438dbd6b0e7a13702d7d44d955e851aeec9949f58dc8b1d6f8a06674975be0"` [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling gcc v0.3.38 [INFO] [stderr] Compiling libc v0.2.17 [INFO] [stderr] Compiling bitflags v0.5.0 [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/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.0.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.1.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.10.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.11.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.12.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.13.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.14.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.15.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.2.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.3.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.4.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.5.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.6.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.7.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.8.rcgu.o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.kscope.c0d07q8a-cgu.9.rcgu.o" "-o" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5" "/opt/crater/target/debug/deps/kscope-bb3b882692ef80c5.1re655ygxiuhrzp6.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-3b67911e1c62d202/out" "-L" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/crater/target/debug/deps/libnom-6bd2a1d5600c0645.rlib" "/opt/crater/target/debug/deps/libllvm-db18405c516a9db7.rlib" "/opt/crater/target/debug/deps/libcbox-93c631f56d6f235d.rlib" "/opt/crater/target/debug/deps/libllvm_sys-07598023bd3a9523.rlib" "/opt/crater/target/debug/deps/libbitflags-b0c72cc86367f243.rlib" "/opt/crater/target/debug/deps/liblibc-7b787326fb50cb32.rlib" "-Wl,--start-group" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4a76ff35a356aedf.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-e11c7b3b3225afe2.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-13217ede3d276f16.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-621a9ee22da6caa1.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-546c844e8071bbeb.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-be9569e4d599746f.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-47d8845cef2a3bc5.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-017511bce73a530c.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-be7979c57a08057b.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-d6459c4f0817c67c.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-580035dd98451925.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-aee5c24fff305dea.rlib" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8a55a4098920125a.rlib" "-Wl,--end-group" "/opt/crater/rustup-home/toolchains/1.37.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9fc4b5be2ba5cc19.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" "8e438dbd6b0e7a13702d7d44d955e851aeec9949f58dc8b1d6f8a06674975be0"` [INFO] running `"docker" "rm" "-f" "8e438dbd6b0e7a13702d7d44d955e851aeec9949f58dc8b1d6f8a06674975be0"` [INFO] [stdout] 8e438dbd6b0e7a13702d7d44d955e851aeec9949f58dc8b1d6f8a06674975be0