Skip to content

Instantly share code, notes, and snippets.

@srikanth007m
Last active February 20, 2019 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikanth007m/a23d6bccace4377173b68721708be6fe to your computer and use it in GitHub Desktop.
Save srikanth007m/a23d6bccace4377173b68721708be6fe to your computer and use it in GitHub Desktop.
python run_all.py -isclang -clangp llvm-6.0/bin/clang -llvmlinkp llvm-6.0/bin/llvm-link -l kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out -a 2 -c kernel-msm-4.14/msm-4.14/compile_commands.json -n 2 -k kernel-msm-4.14/msm-4.14 -f kernel-msm-4.14/msm-4.14/out/ioctl_finder_out -o kernel-msm-4.14/msm-4.14/out
[*] Trying to Run Component: BearLLVMBuild
[+] Setup for component: BearLLVMBuild complete
[*] Writing all compilation commands to kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_build.sh
[*] Got 1634 compilation commands.
[*] Running compilation commands in multiprocessing modea.
[+] Finished running compilation commands.
[*] Writing all linker commands to kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_link_cmds.sh
[*] Got 597 regular linker commands.
[*] Running linker commands in multiprocessing mode.
[+] Finished running linker commands.
[*] Got 15 recursive linker commands.
[*] Got 5 recursively resolved linker commands.
[*] Running linker commands in multiprocessing mode.
#0 0x000000000059a934 PrintStackTraceSignalHandler(void*) (llvm-6.0/bin/llvm-link+0x59a934)
#1 0x000000000059ac26 SignalHandler(int) (llvm-6.0/bin/llvm-link+0x59ac26)
#2 0x00007f14ad7f2330 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x0000000000544ecb llvm::getLazyIRFileModule(llvm::StringRef, llvm::SMDiagnostic&, llvm::LLVMContext&, bool) (llvm-6.0/bin/llvm-link+0x544ecb)
#4 0x000000000041864f loadFile(char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, llvm::LLVMContext&, bool) (llvm-6.0/bin/llvm-link+0x41864f)
#5 0x000000000041768e linkFiles(char const*, llvm::LLVMContext&, llvm::Linker&, llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, unsigned int) (llvm-6.0/bin/llvm-link+0x41768e)
#6 0x0000000000416430 main (llvm-6.0/bin/llvm-link+0x416430)
#7 0x00007f14ac1c8f45 __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#8 0x0000000000415f59 _start (llvm-6.0/bin/llvm-link+0x415f59)
Stack dump:
0. Program arguments: llvm-6.0/bin/llvm-link kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/drivers/media/platform/msm/dvb/adapter/mpq-adapter.final.linked.bc kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/drivers/media/platform/msm/dvb/adapter/mpq-adapter.mod.llvm.bc -o kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/drivers/media/platform/msm/dvb/adapter/mpq-adapter..final.linked.bc
[+] Finished running linker commands.
[!] Failed to link following driver objects.
[!] drivers/misc/lkdtm.ko
[!] drivers/firmware/efi/libstub/lib-ksyms.o
[!] drivers/char/rdbg.ko
[!] drivers/media/platform/msm/dvb/demux/mpq-dmx-hw-plugin.o
[!] drivers/soc/qcom/llcc_perfmon.ko
[!] drivers/firmware/efi/libstub/lib-sort.o
[!] drivers/media/platform/msm/dvb/demux/mpq-dmx-hw-plugin.ko
[!] drivers/net/wireless/ath/wil6210/wil6210.ko
[!] drivers/misc/lkdtm.o
[!] drivers/net/wireless/ath/wil6210/wil6210.o
[+] Component: BearLLVMBuild ran successfully.
[+] Component: BearLLVMBuild passed successfully.
[*] Trying to Run Component: BearGenerateIncludes
[+] Setup for component: BearGenerateIncludes complete
[+] Component: BearGenerateIncludes ran successfully.
[+] Component: BearGenerateIncludes passed successfully.
[*] Trying to Run Component: BearGeneratePreprocessed
[+] Setup for component: BearGeneratePreprocessed complete
[*] Writing all preprocessing commands to kernel-msm-4.14/msm-4.14/out/llvm_bitcode_out/llvm_generate_preprocessed.sh
[*] Got 1634 preprocessing commands.
[*] Running preprocessing commands in multiprocessing modea.
[+] Finished running preprocessing commands.
[+] Component: BearGeneratePreprocessed ran successfully.
[+] Component: BearGeneratePreprocessed passed successfully.
[*] Trying to Run Component: BearParseHeaders
[+] Setup for component: BearParseHeaders complete
[*] Running grep to find ops and operations structure.
[+] Grep ran successfully to find ops and operations structures.
[*] Running c2xml to find entry point configurations.
[+] Component: BearParseHeaders ran successfully.
[+] Component: BearParseHeaders passed successfully.
[*] Trying to Run Component: BearParseV4L2Headers
[!] Setup failed for component: BearParseV4L2Headers , with Error: Provided v4l2 config processor so path:research_whitepaper/InterfaceHandlers/MainAnalysisPasses/build_dir/V4L2Processor/libV4L2ProcessorPass.so does not exist.
[!] Component: BearParseV4L2Headers failed. Exiting.
[*] Trying to Run Component: BearEntryPointIdentifier
[!] Setup failed for component: BearEntryPointIdentifier , with Error: Provided ep finder bin path:research_whitepaper/InterfaceHandlers/AnalysisHelpers/EntryPointIdentifier/entry_point_handler does not exist.
[!] Component: BearEntryPointIdentifier failed. Exiting.
[*] Trying to Run Component: DevNameFinder
[!] Setup failed for component: DevNameFinder , with Error: Provided dev name finder so path:research_whitepaper/InterfaceHandlers/MainAnalysisPasses/build_dir/DeviceNameFinder/libDeviceNameFinderPass.so does not exist.
[!] Component: DevNameFinder failed. Exiting.
[*] Trying to Run Component: IoctlCmdFinder
[!] Setup failed for component: IoctlCmdFinder , with Error: Provided ioctl finder so path:research_whitepaper/InterfaceHandlers/MainAnalysisPasses/build_dir/IoctlCmdFinder/libIoctlCmdPass.so does not exist.
[!] Component: IoctlCmdFinder failed. Exiting.
[*] Trying to Run Component: V4L2CmdFinder
[!] Setup failed for component: V4L2CmdFinder , with Error: Provided v4l2 config processor so path:research_whitepaper/InterfaceHandlers/MainAnalysisPasses/build_dir/V4L2Processor/libV4L2ProcessorPass.so does not exist.
[!] Component: V4L2CmdFinder failed. Exiting.
[*] Component Runtime information:
[*] BearLLVMBuild:93.9178061485 seconds.
[*] BearGenerateIncludes:5.73222899437 seconds.
[*] BearGeneratePreprocessed:39.3459692001 seconds.
[*] BearParseHeaders:39.8690059185 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment