终端将LLVM生成xcode时不成功 5C

终端把LLVM生成xcode时,报以下错误,是缺什么文件吗?需要怎么解决?有没有大牛懂的?

CMake Error at cmake/modules/AddLLVM.cmake:1350 (add_dependencies):
The dependency target "clang" of target "check-all" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:930 (add_lit_target)

CMake Error at cmake/modules/AddLLVM.cmake:1350 (add_dependencies):
The dependency target "clang-headers" of target "check-all" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:930 (add_lit_target)

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
CentOS编译LLVM遇到的HOST GCC版本问题
操作系统原来自带的gcc版本是4.8.5,因为安装llvm要求是5.1以上版 本,所以后来正常安装了GCC8.3.0,CMAKE 3.12.1,然后下载llvm-project,按照如下链接指示安装: http://llvm.org/docs/CMake.html 发现执行到"cmake path/to/llvm/source/root"时报错。错误信息如下: [root@jzl-cloud-01 llvm]# cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 /home/falcon/h265/llvm-project/llvm -- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND) CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message): Host GCC version must be at least 5.1, your version is 4.8.5. Call Stack (most recent call first): cmake/modules/CheckCompilerVersion.cmake:48 (check_compiler_version) cmake/config-ix.cmake:13 (include) CMakeLists.txt:624 (include) -- Configuring incomplete, errors occurred! See also "/home/falcon/h265/llvm/CMakeFiles/CMakeOutput.log". [root@jzl-cloud-01 llvm]# cmake /home/falcon/h265/llvm-project/llvm -- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND) CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message): Host GCC version must be at least 5.1, your version is 4.8.5. Call Stack (most recent call first): cmake/modules/CheckCompilerVersion.cmake:48 (check_compiler_version) cmake/config-ix.cmake:13 (include) CMakeLists.txt:624 (include) -- Configuring incomplete, errors occurred! See also "/home/falcon/h265/llvm/CMakeFiles/CMakeOutput.log". 请问上面提到的HOST GCC版本过低的问题该如何解决?
webrtc编译Android版本编译参数is_clang=false时,编译报错,is_clang=true时,编译成功。
[2274/3376] LINK ./rgba_to_i420_converter FAILED: rgba_to_i420_converter exe.unstripped/rgba_to_i420_converter python "../../build/toolchain/gcc_link_wrapper.py" --output="./rgba_to_i420_converter" --strip="../../buildtools/third_party/eu-strip/bin/eu-strip" --unstripped-file="./exe.unstripped/rgba_to_i420_converter" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -Wl,--icf=all -Wl,--exclude-libs=libgcc.a -Wl,--exclude-libs=libvpx_assembly_arm.a --target=aarch64-linux-android -Wl,-mllvm,-enable-machine-outliner=never -Wl,--warn-shared-textrel -Wl,-O2 -Wl,--gc-sections -nodefaultlibs --sysroot=../../third_party/android_ndk/platforms/android-21/arch-arm64 -nostdlib -Wl,--warn-shared-textrel -pie -Bdynamic -Wl,-z,nocopyreloc -Wl,--dynamic-linker,/system/bin/linker64 -L../../third_party/android_ndk/sources/cxx-stl/llvm-libc++/libs/arm64-v8a -o "./exe.unstripped/rgba_to_i420_converter" -Wl,--start-group @"./rgba_to_i420_converter.rsp" -Wl,--end-group ../../third_party/android_ndk/platforms/android-21/arch-arm64/usr/lib/crtbegin_dynamic.o -lc -lgcc_s -lm -lrt -landroid_support ../../third_party/android_ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a -ldl -llog -lGLESv2 ../../third_party/android_ndk/platforms/android-21/arch-arm64/usr/lib/crtend_android.o /usr/bin/ld.gold: fatal error: obj/rtc_tools/rgba_to_i420_converter/converter.o: unsupported ELF machine number 183 clang: error: linker command failed with exit code 1 (use -v to see invocation)
llvm/clang编译出错问题
我是直接下载llvm的源码编译出来的clang,然后编写了一个简单的源程序,包含一些STL的简单操作,在使用该clang编译该程序时,出现了一些"cannot compile this try statement yet"的try、throw错误提示,但在vs下编译成功的,很是迷惑,希望各位能指点一下,谢谢。。
development packages for llvm 3.2
development packages for llvm 3.2谁有这个东西啊,我到现在都不太懂这个到底是啥 要是大神们有这个开发包的话,求给一份啊,万分感谢,我用apt-get install装得都是3.3版本以上的,但我需要3.2版本以下的。。。。
安装llvm输入相应代码得到Makefile时报错,拜托大神帮忙看下咋回事
CMake Error: The source directory "/llvm.. "does not exist. Specify --help for usage, or press the help button on the CMake GUI.
安装LLVM过程中提示gcc版本低,但是系统中默认的gcc版本就是7.3.0,如何解决?谢谢!!!
![图片说明](https://img-ask.csdn.net/upload/201912/06/1575600474_141765.png)
编译llvm出现链接错误怎么办?
1,编译llvm,在编译进度100%时出现链接错误。 2,错误提示: ``` [100%] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/Indexing.cpp.o [100%] Linking CXX executable ../../../../bin/lldb-vscode [100%] Built target lldb-vscode [100%] Building CXX object tools/lldb/tools/driver/CMakeFiles/lldb.dir/Driver.cpp.o [100%] Linking CXX executable ../../../../bin/lldb [100%] Built target lldb [100%] Linking CXX shared library ../../../../lib/libclang.so ../../../../lib/libclangTidyAbseilModule.a(DurationAdditionCheck.cpp.o):在函数‘clang::tidy::abseil::DurationAdditionCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationAdditionCheck.cpp:(.text._ZN5clang4tidy6abseil21DurationAdditionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x362):对‘clang::tidy::abseil::getScaleForTimeInverse(llvm::StringRef)’未定义的引用 DurationAdditionCheck.cpp:(.text._ZN5clang4tidy6abseil21DurationAdditionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x37f):对‘clang::tidy::abseil::getTimeInverseForScale(clang::tidy::abseil::DurationScale)’未定义的引用 DurationAdditionCheck.cpp:(.text._ZN5clang4tidy6abseil21DurationAdditionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x485):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 DurationAdditionCheck.cpp:(.text._ZN5clang4tidy6abseil21DurationAdditionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xa91):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationComparisonCheck.cpp.o):在函数‘clang::tidy::abseil::DurationComparisonCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1ab):对‘clang::tidy::abseil::getScaleForDurationInverse(llvm::StringRef)’未定义的引用 DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1bf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1cf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x2fd):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x315):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationFactoryFloatCheck.cpp.o):在函数‘clang::tidy::abseil::DurationFactoryFloatCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationFactoryFloatCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryFloatCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x157):对‘clang::tidy::abseil::stripFloatCast[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const&)’未定义的引用 DurationFactoryFloatCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryFloatCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x4a7):对‘clang::tidy::abseil::stripFloatLiteralFraction[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const&)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationFactoryScaleCheck.cpp.o):在函数‘clang::tidy::abseil::DurationFactoryScaleCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationFactoryScaleCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryScaleCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x10a):对‘clang::tidy::abseil::IsLiteralZero(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const&)’未定义的引用 DurationFactoryScaleCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryScaleCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x497):对‘clang::tidy::abseil::getDurationFactoryForScale(clang::tidy::abseil::DurationScale)’未定义的引用 DurationFactoryScaleCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryScaleCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xde5):对‘clang::tidy::abseil::getDurationFactoryForScale(clang::tidy::abseil::DurationScale)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(TimeComparisonCheck.cpp.o):在函数‘clang::tidy::abseil::TimeComparisonCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1ab):对‘clang::tidy::abseil::getScaleForTimeInverse(llvm::StringRef)’未定义的引用 TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1bf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1cf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x2fd):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x315):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAndroidModule.a(AndroidTidyModule.cpp.o):在函数‘std::_Function_handler<clang::tidy::ClangTidyCheck* (llvm::StringRef, clang::tidy::ClangTidyContext*), void clang::tidy::ClangTidyCheckFactories::registerCheck<clang::tidy::android::CloexecOpenCheck>(llvm::StringRef)::{lambda(llvm::StringRef, clang::tidy::ClangTidyContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::StringRef&&, clang::tidy::ClangTidyContext*&&)’中: AndroidTidyModule.cpp:(.text._ZNSt17_Function_handlerIFPN5clang4tidy14ClangTidyCheckEN4llvm9StringRefEPNS1_16ClangTidyContextEEZNS1_23ClangTidyCheckFactories13registerCheckINS1_7android16CloexecOpenCheckEEEvS5_EUlS5_S7_E_E9_M_invokeERKSt9_Any_dataOS5_OS7_[_ZNSt17_Function_handlerIFPN5clang4tidy14ClangTidyCheckEN4llvm9StringRefEPNS1_16ClangTidyContextEEZNS1_23ClangTidyCheckFactories13registerCheckINS1_7android16CloexecOpenCheckEEEvS5_EUlS5_S7_E_E9_M_invokeERKSt9_Any_dataOS5_OS7_]+0x36):对‘vtable for clang::tidy::android::CloexecOpenCheck’未定义的引用 ../../../../lib/libclangTidyBugproneModule.a(BugproneTidyModule.cpp.o):在函数‘std::_Function_handler<clang::tidy::ClangTidyCheck* (llvm::StringRef, clang::tidy::ClangTidyContext*), void clang::tidy::ClangTidyCheckFactories::registerCheck<clang::tidy::bugprone::BoolPointerImplicitConversionCheck>(llvm::StringRef)::{lambda(llvm::StringRef, clang::tidy::ClangTidyContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::StringRef&&, clang::tidy::ClangTidyContext*&&)’中: BugproneTidyModule.cpp:(.text._ZNSt17_Function_handlerIFPN5clang4tidy14ClangTidyCheckEN4llvm9StringRefEPNS1_16ClangTidyContextEEZNS1_23ClangTidyCheckFactories13registerCheckINS1_8bugprone34BoolPointerImplicitConversionCheckEEEvS5_EUlS5_S7_E_E9_M_invokeERKSt9_Any_dataOS5_OS7_[_ZNSt17_Function_handlerIFPN5clang4tidy14ClangTidyCheckEN4llvm9StringRefEPNS1_16ClangTidyContextEEZNS1_23ClangTidyCheckFactories13registerCheckINS1_8bugprone34BoolPointerImplicitConversionCheckEEEvS5_EUlS5_S7_E_E9_M_invokeERKSt9_Any_dataOS5_OS7_]+0x36):对‘vtable for clang::tidy::bugprone::BoolPointerImplicitConversionCheck’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationConversionCastCheck.cpp.o):在函数‘clang::tidy::abseil::DurationConversionCastCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationConversionCastCheck.cpp:(.text._ZN5clang4tidy6abseil27DurationConversionCastCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xcf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 DurationConversionCastCheck.cpp:(.text._ZN5clang4tidy6abseil27DurationConversionCastCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x279):对‘clang::tidy::abseil::getScaleForDurationInverse(llvm::StringRef)’未定义的引用 DurationConversionCastCheck.cpp:(.text._ZN5clang4tidy6abseil27DurationConversionCastCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x564):对‘clang::tidy::abseil::getDurationInverseForScale(clang::tidy::abseil::DurationScale)’未定义的引用 DurationConversionCastCheck.cpp:(.text._ZN5clang4tidy6abseil27DurationConversionCastCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x924):对‘clang::tidy::abseil::getDurationInverseForScale(clang::tidy::abseil::DurationScale)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationSubtractionCheck.cpp.o):在函数‘clang::tidy::abseil::DurationSubtractionCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil24DurationSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x191):对‘clang::tidy::abseil::getScaleForDurationInverse(llvm::StringRef)’未定义的引用 DurationSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil24DurationSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1c2):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationUnnecessaryConversionCheck.cpp.o):在函数‘clang::tidy::abseil::DurationUnnecessaryConversionCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationUnnecessaryConversionCheck.cpp:(.text._ZN5clang4tidy6abseil34DurationUnnecessaryConversionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1af):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(TimeSubtractionCheck.cpp.o):在函数‘clang::tidy::abseil::TimeSubtractionCheck::registerMatchers(clang::ast_matchers::MatchFinder*)’中: TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck16registerMatchersEPNS_12ast_matchers11MatchFinderE+0x208):对‘clang::tidy::abseil::getScaleForTimeInverse(llvm::StringRef)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck16registerMatchersEPNS_12ast_matchers11MatchFinderE+0x89c):对‘clang::tidy::abseil::getDurationFactoryForScale(clang::tidy::abseil::DurationScale)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(TimeSubtractionCheck.cpp.o):在函数‘clang::tidy::abseil::TimeSubtractionCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1a4):对‘clang::tidy::abseil::getScaleForTimeInverse(llvm::StringRef)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x26a):对‘clang::tidy::abseil::getDurationFactoryForScale(clang::tidy::abseil::DurationScale)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x732):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x782):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xd0a):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xd51):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xd89):对‘clang::tidy::abseil::getDurationInverseForScale(clang::tidy::abseil::DurationScale)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1061):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x10aa):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 collect2: 错误:ld 返回 1 make[2]: *** [lib/libclang.so.10] 错误 1 make[1]: *** [tools/clang/tools/libclang/CMakeFiles/libclang.dir/all] 错误 2 make: *** [all] 错误 2 ``` 求救
llvm pass 如何获取Value中的内容
我在编写llvm pass,希望将获取到的Value类型操作数转换为整型相关类型,或提取其中的内容。 下一步需要用这个数据作为数组下标,因此必须是整型相关的类型。 之前试过用<Value*, Value*>的map存储,但是Value类本身没有实现"<"的重载所以不行QAQ 有大佬用过相关函数吗?
LLVM修改stackprotector.cpp
我修改了LLVM的stackprotector.cpp文件后使用clang -fstack-protector编译,为什么没有改变?怎样使用固定寄存器存储自己要存的内容?怎样让返回地址参与运算?
求大神支招? 开发过程中,会有文件生成不完整的情况
开发过程中,会有文件生成不完整的情况,例如现在运行llvm_build.bat 没生成3个文件,这个怎么处理?
跪求大神帮助,LLVM如何添加内存指令呀
我需要用LLVM来最终源码中每个object在运行时的内存地址,访存行为,以及生存时间。。但是不知道要怎样添加内存指令。跪求各位大神帮助!!!
在Xcode环境下无法配置gnu gsl库
在自动配置的时候遇到错误 有没有大神能告诉我如何自动配置或者手动配置的参数呢? 下面是config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by gsl configure 1.9, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = admindeMac-Pro.local uname -m = x86_64 uname -r = 13.0.0 uname -s = Darwin uname -v = Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = Mach kernel version: Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 Kernel configured for up to 8 processors. 4 processors are physically available. 8 processors are logically available. Processor type: i486 (Intel 80486) Processors active: 0 1 2 3 4 5 6 7 Primary memory available: 16.00 gigabytes Default processor set: 142 tasks, 528 threads, 8 processors Load average: 1.33, Mach factor: 6.66 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin PATH: /usr/local/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1521: checking for a BSD-compatible install configure:1576: result: /usr/bin/install -c configure:1587: checking whether build environment is sane configure:1630: result: yes configure:1695: checking for gawk configure:1724: result: no configure:1695: checking for mawk configure:1724: result: no configure:1695: checking for nawk configure:1724: result: no configure:1695: checking for awk configure:1711: found /usr/bin/awk configure:1721: result: awk configure:1731: checking whether make sets $(MAKE) configure:1751: result: yes configure:1921: checking whether to enable maintainer-specific portions of Makefiles configure:1930: result: no configure:1968: checking whether make sets $(MAKE) configure:1988: result: yes configure:2004: checking build system type configure:2022: result: i386-apple-darwin13.0.0 configure:2030: checking host system type configure:2044: result: i386-apple-darwin13.0.0 configure:2105: checking for gcc configure:2121: found /usr/bin/gcc configure:2131: result: gcc configure:2375: checking for C compiler version configure:2378: gcc --version </dev/null >&5 i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2381: $? = 0 configure:2383: gcc -v </dev/null >&5 Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) configure:2386: $? = 0 configure:2388: gcc -V </dev/null >&5 llvm-gcc-4.2: argument to `-V' is missing configure:2391: $? = 1 configure:2414: checking for C compiler default output file name configure:2417: gcc conftest.c >&5 ld: library not found for -lcrt1.10.6.o collect2: ld returned 1 exit status configure:2420: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "gsl" | #define PACKAGE_TARNAME "gsl" | #define PACKAGE_VERSION "1.9" | #define PACKAGE_STRING "gsl 1.9" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "gsl" | #define VERSION "1.9" | #define RELEASED 1 | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2459: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i386-apple-darwin13.0.0 ac_cv_build_alias=i386-apple-darwin13.0.0 ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=i386-apple-darwin13.0.0 ac_cv_host_alias=i386-apple-darwin13.0.0 ac_cv_path_install='/usr/bin/install -c' ac_cv_prog_AWK=awk ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_make_make_set=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /Users/admin/Downloads/gsl-1.9/missing --run aclocal-1.9' AMTAR='${SHELL} /Users/admin/Downloads/gsl-1.9/missing --run tar' AR='' AUTOCONF='${SHELL} /Users/admin/Downloads/gsl-1.9/missing --run autoconf' AUTOHEADER='${SHELL} /Users/admin/Downloads/gsl-1.9/missing --run autoheader' AUTOMAKE='${SHELL} /Users/admin/Downloads/gsl-1.9/missing --run automake-1.9' AWK='awk' CC='gcc' CFLAGS='' CPP='' CPPFLAGS='' CYGPATH_W='echo' DEFS='' ECHO='/bin/echo' ECHO_C='ECHO_N='' ECHO_T='' EGREP='' EXEEXT='' GSL_CFLAGS='' GSL_LIBS='' GSL_LT_CBLAS_VERSION='0:0:0' GSL_LT_VERSION='10:0:10' HAVE_AIX_IEEE_INTERFACE='' HAVE_DARWIN86_IEEE_INTERFACE='' HAVE_DARWIN_IEEE_INTERFACE='' HAVE_EXTENDED_PRECISION_REGISTERS='' HAVE_FREEBSD_IEEE_INTERFACE='' HAVE_GNUM68K_IEEE_INTERFACE='' HAVE_GNUPPC_IEEE_INTERFACE='' HAVE_GNUSPARC_IEEE_INTERFACE='' HAVE_GNUX86_IEEE_INTERFACE='' HAVE_HPUX11_IEEE_INTERFACE='' HAVE_HPUX_IEEE_INTERFACE='' HAVE_IEEE_COMPARISONS='' HAVE_IEEE_DENORMALS='' HAVE_INLINE='' HAVE_IRIX_IEEE_INTERFACE='' HAVE_NETBSD_IEEE_INTERFACE='' HAVE_OPENBSD_IEEE_INTERFACE='' HAVE_OS2EMX_IEEE_INTERFACE='' HAVE_PRINTF_LONGDOUBLE='' HAVE_SOLARIS_IEEE_INTERFACE='' HAVE_SUNOS4_IEEE_INTERFACE='' HAVE_TRU64_IEEE_INTERFACE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='' LN_S='' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /Users/admin/Downloads/gsl-1.9/missing --run makeinfo' OBJEXT='' PACKAGE='gsl' PACKAGE_BUGREPORT='' PACKAGE_NAME='gsl' PACKAGE_STRING='gsl 1.9' PACKAGE_TARNAME='gsl' PACKAGE_VERSION='1.9' PATH_SEPARATOR=':' RANLIB='' RELEASED='' SET_MAKE='' SHELL='/bin/sh' STRIP='' VERSION='1.9' ac_ct_AR='' ac_ct_CC='gcc' ac_ct_RANLIB='' ac_ct_STRIP='' am__leading_dot='.' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='i386-apple-darwin13.0.0' build_alias='' build_cpu='i386' build_os='darwin13.0.0' build_vendor='apple' datadir='${prefix}/share' exec_prefix='NONE' host='i386-apple-darwin13.0.0' host_alias='' host_cpu='i386' host_os='darwin13.0.0' host_vendor='apple' includedir='${prefix}/include' infodir='${prefix}/info' install_sh='/Users/admin/Downloads/gsl-1.9/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='${prefix}/var' mandir='${prefix}/man' mkdir_p='$(mkinstalldirs)' oldincludedir='/usr/include' prefix='NONE' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE "gsl" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "gsl" #define PACKAGE_STRING "gsl 1.9" #define PACKAGE_TARNAME "gsl" #define PACKAGE_VERSION "1.9" #define RELEASED 1 #define VERSION "1.9" configure: exit 77
llvm7.0 test-suite的编译安装与使用
llvm7.0的test-suite不知道如何配置,按照官网上给的步骤配置,编译出错,哪位大神能指教一波
如何用gcc后端生成一种新的虚拟机命令
请问高手们如何运用gcc后端生成一种特定的虚拟机命令码。比如说,修改gcc后端的哪些部分后就可以生成JVM的命令?我想通过修改gcc或者LLVM后端做一个虚拟机,可是具体怎么做还没有商量好。我也是最近刚开始接触编译器的,基础不是特别好。看gcc和LLVM的文档也是云里雾里的,高手们可不可以给一些建议,比如像gcc的话,我正在看gcc internals,有关用gcc后端生成一种特定的虚拟机命令码,看哪些章节比较好。
如何使用LLVM在基本块的入口和出口插入代码?
&emsp;&emsp;In my recent work, I need insert the instrumentation code at the entry and exit of basic blocks to get value of varibles and so I can check them based on a DFA of the source code. Another task is when the executable file is executed according to the instrumentation code, an exception will be triggered before function call and system call or an access of an variable or after an update of an variable. <br/>&emsp;&emsp;I've read LLVM manual about how to write a pass. However, it doesn't tell me how can I get the latest value of variables. <br/>&emsp;&emsp;Someone provide a link contains basic usage of LLVM pass but it's too simple -----------<br/>①https://github.com/SumedhArani/LLVM <br/>②https://www.cs.cornell.edu/~asampson/blog/llvm.html <br/> **A simple program that can be exploited to launch DOP attacks:** #include <stdio.h> int main(){ int old_valud,new_value; int *p=&old_value,*q=&new_value; int connect_limit=100; char buf[64]; while(connect_limit--){ read(0,buf); *p=*q; } return 0; } **LLVM IR** ``` define i32 @main() #0 { %1 = alloca i32, align 4 %old_value = alloca i32, align 4 %new_value = alloca i32, align 4 %p = alloca i32*, align 8 %q = alloca i32*, align 8 %connect_limit = alloca i32, align 4 %buf = alloca [64 x i8], align 16 store i32 0, i32* %1 store i32* %old_value, i32** %p, align 8 store i32* %new_value, i32** %q, align 8 store i32 100, i32* %connect_limit, align 4 br label %2 ; <label>:2 ; preds = %6, %0 %3 = load i32, i32* %connect_limit, align 4 %4 = add nsw i32 %3, -1 store i32 %4, i32* %connect_limit, align 4 %5 = icmp ne i32 %3, 0 br i1 %5, label %6, label %12 ; <label>:6 ; preds = %2 %7 = getelementptr inbounds [64 x i8], [64 x i8]* %buf, i32 0, i32 0 %8 = call i32 (i8*, ...) @__isoc99_scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* %7) %9 = load i32*, i32** %q, align 8 %10 = load i32, i32* %9, align 4 %11 = load i32*, i32** %p, align 8 store i32 %10, i32* %11, align 4 br label %2 ; <label>:12 ; preds = %2 ret i32 0 } ``` <br/><br/><br/><br/><br/><br/><br/> ** CFG **<br/><br/> ![CFG of is](https://img-ask.csdn.net/upload/201905/25/1558789729_780384.png) <br/>Can someone provide some relevant source code and guidance?
iOS新建的项目,一句代码没写,使用 Cocoapod导入融云以后,编译都过不了,该怎么解决呢?
Ld /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Products/Debug-iphonesimulator/MyChat.app/MyChat normal x86_64 cd /Users/mudy/Desktop/MyChat export IPHONEOS_DEPLOYMENT_TARGET=8.4 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Products/Debug-iphonesimulator -L/Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable -F/Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Products/Debug-iphonesimulator -F/Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable -filelist /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Intermediates/MyChat.build/Debug-iphonesimulator/MyChat.build/Objects-normal/x86_64/MyChat.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lc++ -lc++abi -lopencore-amrnb -lsqlite3 -lstdc++ -lxml2 -lz -framework AVFoundation -framework AssetsLibrary -framework AudioToolbox -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework ImageIO -framework MapKit -framework OpenGLES -framework QuartzCore -framework RongIMKit -framework RongIMLib -framework SystemConfiguration -framework UIKit -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Intermediates/MyChat.build/Debug-iphonesimulator/MyChat.build/Objects-normal/x86_64/MyChat.swiftmodule -mios-simulator-version-min=8.4 -lPods -Xlinker -dependency_info -Xlinker /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Intermediates/MyChat.build/Debug-iphonesimulator/MyChat.build/Objects-normal/x86_64/MyChat_dependency_info.dat -o /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Products/Debug-iphonesimulator/MyChat.app/MyChat duplicate symbol _llvm.cmdline in: /Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable/libopencore-amrnb.a(wrapper.o) /Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable/libopencore-amrnb.a(agc.o) duplicate symbol _llvm.embedded.module in: /Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable/libopencore-amrnb.a(wrapper.o) /Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable/libopencore-amrnb.a(agc.o) ld: 288 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
编译firefox windows版时出现错误不知怎么解决
编译环境是 vs 2019 选择的是 c++ 桌面开发和c++游戏开发。 windows sdk 是 10.0.18362.0版本。 LLVM是9.0的32位版本。 rust使用的是rustup-init自动安装的最新版(使用网上的msi安装包安装后编译时报错python有问题)。 安装了nasm-2.14rc16的64位版本 firefox使用的是官网提供的firefox-69.0.3 MozillaBuild使用的是3.2版本 编译了大约20分钟后系统报错,最后错误如下 ``` 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/UnifiedProtocols9.cpp:2: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/PChildToParentStreamChild.cpp:7: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/_ipdlheaders\mozilla/ipc/PChildToParentStreamChild.h:9: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/_ipdlheaders\mozilla/ipc/PChildToParentStream.h:11: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/ipc/IPCMessageUtils.h:36: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/nsIWidget.h:21: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include\nsStyleConsts.h:17: 5:59.19 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h:9929: 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(117,3): warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] 5:59.19 count.load(std::memory_order_acquire); 5:59.19 ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(199,22): note: in instantiation of member function 'mozilla::StyleArcInner<mozilla::StyleTemplateAreas>::DecrementRef' requested here 5:59.19 if (MOZ_LIKELY(!p->DecrementRef())) { 5:59.20 ^ 5:59.20 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(224,3): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::Release' requested here 5:59.21 Release(); 5:59.21 ^ 5:59.21 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h(8098,10): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::~StyleArc' requested here 5:59.21 struct StyleAreas_Body { 5:59.21 ^ 6:00.88 2 warnings generated. 6:02.54 2 warnings generated. 6:03.26 2 warnings generated. 6:05.10 2 warnings generated. 6:10.54 2 warnings generated. 6:10.61 mozmake.EXE[2]: *** [e:/firefox-69.0.3/config/recurse.mk:34: compile] Error 2 6:10.61 mozmake.EXE[1]: *** [e:/firefox-69.0.3/config/rules.mk:391: default] Error 2 6:10.61 mozmake.EXE: *** [client.mk:125: build] Error 2 6:10.63 147 compiler warnings present. ``` 其中大量的警告重复出现 ``` e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(117,3): warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] 5:59.19 count.load(std::memory_order_acquire); 5:59.19 ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(199,22): note: in instantiation of member function 'mozilla::StyleArcInner<mozilla::StyleTemplateAreas>::DecrementRef' requested here 5:59.19 if (MOZ_LIKELY(!p->DecrementRef())) { 5:59.20 ^ 5:59.20 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(224,3): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::Release' requested here 5:59.21 Release(); 5:59.21 ^ 5:59.21 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h(8098,10): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::~StyleArc' requested here 5:59.21 struct StyleAreas_Body { 5:59.21 ^ 6:00.88 2 warnings generated. 6:02.54 2 warnings generated. ``` 请问这种问题怎么处理呢?
请问SDL2.0是怎么编译到ios平台的呢,我按照README-ios.txt编译但是编译过不了
uilding with iOS SDK v6.1 for iOS >= 3.0 checking build system type... i386-apple-darwin12.4.0 checking host system type... armv6-apple-darwin checking how to print strings... printf checking for armv6-apple-darwin-gcc... /Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 checking whether the C compiler works... no configure: error: in `/Users/PS/SDL2-2.0.0/build/armv6': configure: error: C compiler cannot create executables See `config.log' for more details 请问有遇到这样的问题没?我的系统 OS X 10.8.4,XCode4.6.3 SDK6.1
LLVM3.3 CLANG++编译C++代码为BC文件,无法捕获异常
add.cpp: int add_t(int a) throw(int ) { return a + a; } extern "C" { int add(int a) throw(int) { int ret = -100; try { ret = add_t(a); throw 1; } catch (int e) { ret = -200; } return ret; } } 在main.cpp中加载bc文件,Module* mod = ParseIRFile("add.bc", error, context);然后调用add函数,报错 terminate called after throwing an instance of 'int' Aborted 去掉add.cpp中的throw 1;可以正常调用。 这个异常在bc中无法捕获吗?
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
MyBatis研习录(01)——MyBatis概述与入门
MyBatis 是一款优秀的持久层框架,它支持定制化 SQL、存储过程以及高级映射。MyBatis原本是apache的一个开源项目iBatis, 2010年该项目由apache software foundation 迁移到了google code并改名为MyBatis 。2013年11月MyBatis又迁移到Github。
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip installselenium -ihttps://pypi.tuna.tsinghua.edu.cn/simple/ ...
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca...
Python爬虫精简步骤1 获取数据
爬虫,从本质上来说,就是利用程序在网上拿到对我们有价值的数据。 爬虫能做很多事,能做商业分析,也能做生活助手,比如:分析北京近两年二手房成交均价是多少?广州的Python工程师平均薪资是多少?北京哪家餐厅粤菜最好吃?等等。 这是个人利用爬虫所做到的事情,而公司,同样可以利用爬虫来实现巨大的商业价值。比如你所熟悉的搜索引擎——百度和谷歌,它们的核心技术之一也是爬虫,而且是超级爬虫。 从搜索巨头到人工...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
破14亿,Python分析我国存在哪些人口危机!
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
web前端javascript+jquery知识点总结
1.Javascript 语法.用途 javascript 在前端网页中占有非常重要的地位,可以用于验证表单,制作特效等功能,它是一种描述语言,也是一种基于对象(Object)和事件驱动并具有安全性的脚本语言 ...
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o...
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ...... ...
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!...
渗透测试-灰鸽子远控木马
木马概述 灰鸽子( Huigezi),原本该软件适用于公司和家庭管理,其功能十分强大,不但能监视摄像头、键盘记录、监控桌面、文件操作等。还提供了黑客专用功能,如:伪装系统图标、随意更换启动项名称和表述、随意更换端口、运行后自删除、毫无提示安装等,并采用反弹链接这种缺陷设计,使得使用者拥有最高权限,一经破解即无法控制。最终导致被黑客恶意使用。原作者的灰鸽子被定义为是一款集多种控制方式于一体的木马程序...
Python:爬取疫情每日数据
前言 目前每天各大平台,如腾讯、今日头条都会更新疫情每日数据,他们的数据源都是一样的,主要都是通过各地的卫健委官网通报。 以全国、湖北和上海为例,分别为以下三个网站: 国家卫健委官网:http://www.nhc.gov.cn/xcs/yqtb/list_gzbd.shtml 湖北卫健委官网:http://wjw.hubei.gov.cn/bmdt/ztzl/fkxxgzbdgrfyyq/xxfb...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名...
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计...
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允许使用这...
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧???? 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升自...
粒子群算法求解物流配送路线问题(python)
1.Matlab实现粒子群算法的程序代码:https://www.cnblogs.com/kexinxin/p/9858664.html matlab代码求解函数最优值:https://blog.csdn.net/zyqblog/article/details/80829043 讲解通俗易懂,有数学实例的博文:https://blog.csdn.net/daaikuaichuan/article/...
教你如何编写第一个简单的爬虫
很多人知道爬虫,也很想利用爬虫去爬取自己想要的数据,那么爬虫到底怎么用呢?今天就教大家编写一个简单的爬虫。 下面以爬取笔者的个人博客网站为例获取第一篇文章的标题名称,教大家学会一个简单的爬虫。 第一步:获取页面 #!/usr/bin/python # coding: utf-8 import requests #引入包requests link = "http://www.santostang....
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
相关热词 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数 c#日期精确到分钟 c#自定义异常必须继承 c#查表并返回值 c# 动态 表达式树 c# 监控方法耗时 c# listbox c#chart显示滚动条
立即提问