LLVM修改stackprotector.cpp

我修改了LLVM的stackprotector.cpp文件后使用clang -fstack-protector编译,为什么没有改变?怎样使用固定寄存器存储自己要存的内容?怎样让返回地址参与运算?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
安装llvm输入相应代码得到Makefile时报错,拜托大神帮忙看下咋回事

CMake Error: The source directory "/llvm.. "does not exist. Specify --help for usage, or press the help button on the CMake GUI.

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中无法捕获吗?

编译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 ``` 求救

android studio NDK cmake创建的demo例子无法正常运行错误如下,如何解决该问题 求助求助

Caused by: org.gradle.internal.UncheckedException: Build command failed. Error while executing process E:\androidAdt\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build F:\workspace\AutoPayStation\app\.externalNativeBuild\cmake\debug\armeabi-v7a --target native-lib} [1/2] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o FAILED: E:\androidAdt\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=E:/androidAdt/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=E:/androidAdt/android-ndk-r16b/sysroot -Dnative_lib_EXPORTS -isystem E:/androidAdt/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem E:/androidAdt/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem E:/androidAdt/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem E:/androidAdt/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=19 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -frtti -fexceptions -std=c++11 -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o -MF CMakeFiles\native-lib.dir\src\main\cpp\native-lib.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o -c F:\workspace\AutoPayStation\app\src\main\cpp\native-lib.cpp,,

如何在Windows 10上修复Go的LLVM绑定?

<div class="post-text" itemprop="text"> <p>I am trying to get the LLVM package - documented <a href="https://godoc.org/llvm.org/llvm/bindings/go/llvm" rel="nofollow noreferrer">here</a> - which provides bindings for Go to run properly.</p> <p>The package is importing but a file called analysis.go is complaining:</p> <p><code>[go] fatal error: llvm-c/Analysis.h: No such file or directory</code></p> <p>This links to line 16 in analysis.go:</p> <p><code>#include "llvm-c/Analysis.h" // If you are getting an error here read bindings/go/README.txt</code></p> <p>This line is inside of a comment block. I have already read the readme which instructs me to run a shell script called build.sh with a list of flags:</p> <p><code>build.sh -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD=host -DBUILD_SHARED_LIBS=ON</code></p> <p>I have done this multiple times. When I first tried to solve this problem, there was another related problem which was that llvm_config.go was empty (there was no code) and so golang was complaining that:</p> <p><code>llvm_config.go:1:1: expected 'package', found 'EOF'</code></p> <p>Golang isn't throwing an error anymore for this although the file is still empty - the error might have gone away after I ran the shell script with flags but I can't be sure.</p> <p>Can anyone suggest what I could do to solve these problems? If you need more details I will happily oblige. I am a self taught hobbyist so apologies if this is a stupid question.</p> </div>

如何在Go中获取llvm库?

<div class="post-text" itemprop="text"> <p>My OS is GNU/Ubuntu 16.10- 64bit.</p> <p>i also report this to GoLang.</p> <p><a href="https://github.com/golang/go/issues/19444" rel="nofollow noreferrer">https://github.com/golang/go/issues/19444</a></p> <h2>$ go get llvm.org/llvm/bindings/go/llvm</h2> <pre><code>package llvm.org/llvm/bindings/go/llvm: unrecognized import path "llvm.org/llvm/bindings/go/llvm" (parse https://llvm.org/llvm/bindings/go/llvm?go-get=1: no go-import meta tags ()) </code></pre> <h2>$ go get llvm.org/llvm/bindings</h2> <pre><code>package llvm.org/llvm/bindings: unrecognized import path "llvm.org/llvm/bindings" (parse https://llvm.org/llvm/bindings?go-get=1: no go-import meta tags ()) </code></pre> <p>so <code>go get</code> say not parse <a href="https://llvm.org/llvm/bindings?go-get=1" rel="nofollow noreferrer">https://llvm.org/llvm/bindings?go-get=1</a></p> <p>in browser also <code>https://llvm.org/</code> not open.(HTTPS)</p> <pre><code>Not Found The requested URL / was not found on this server. Apache/2.2.22 (Ubuntu) Server at llvm.org Port 443 </code></pre> <p>but <code>http://llvm.org</code> is good.(HTTP)</p> <p>how can get this libs for GoLang?</p> <p>==================</p> <p>Try <code>github.com/go-llvm/llgo</code> : </p> <pre><code>guest@system:~/go/src/github.com/go-llvm/llgo$ ./llgo-go.sh build can't load package: package github.com/go-llvm/llgo: no buildable Go source files in /home/guest/go/src/github.com/go-llvm/llgo guest@system:~/go/src/github.com/go-llvm/llgo$ ./llgo-go.sh install can't load package: package github.com/go-llvm/llgo: no buildable Go source files in /home/guest/go/src/github.com/go-llvm/llgo guest@system:~/go/src/github.com/go-llvm/llgo$ ./llgo-go.sh install can't load package: package github.com/go-llvm/llgo: no buildable Go source files in /home/guest/go/src/github.com/go-llvm/llgo guest@system:~/go/src/github.com/go-llvm/llgo$ make ./update_clang.sh can't load package: package llvm.org/llvm/bindings/go/llvm: cannot find package "llvm.org/llvm/bindings/go/llvm" in any of: /usr/lib/go-1.8/src/llvm.org/llvm/bindings/go/llvm (from $GOROOT) /home/guest/go/src/llvm.org/llvm/bindings/go/llvm (from $GOPATH) Makefile:25: recipe for target 'workdir/.update-clang-stamp' failed make: *** [workdir/.update-clang-stamp] Error 1 guest@system:~/go/src/github.com/go-llvm/llgo$ export PATH=/path/to/gcc-inst/bin:$PATH guest@system:~/go/src/github.com/go-llvm/llgo$ export LD_LIBRARY_PATH=/path/to/gcc-inst/lib64:$LD_LIBRARY_PATH guest@system:~/go/src/github.com/go-llvm/llgo$ export CC=`which gcc` guest@system:~/go/src/github.com/go-llvm/llgo$ export CXX=`which g++` guest@system:~/go/src/github.com/go-llvm/llgo$ export LIBGO_CFLAGS=--gcc-toolchain=/path/to/gcc-inst guest@system:~/go/src/github.com/go-llvm/llgo$ go get -d github.com/go-llvm/llgo/cmd/gllgo package llvm.org/llvm/bindings/go/llvm: unrecognized import path "llvm.org/llvm/bindings/go/llvm" (parse https://llvm.org/llvm/bindings/go/llvm?go-get=1: no go-import meta tags ()) package golang.org/x/tools/go/exact: cannot find package "golang.org/x/tools/go/exact" in any of: /usr/lib/go-1.8/src/golang.org/x/tools/go/exact (from $GOROOT) /home/guest/go/src/golang.org/x/tools/go/exact (from $GOPATH) package golang.org/x/tools/go/gccgoimporter: cannot find package "golang.org/x/tools/go/gccgoimporter" in any of: /usr/lib/go-1.8/src/golang.org/x/tools/go/gccgoimporter (from $GOROOT) /home/guest/go/src/golang.org/x/tools/go/gccgoimporter (from $GOPATH) package golang.org/x/tools/go/importer: cannot find package "golang.org/x/tools/go/importer" in any of: /usr/lib/go-1.8/src/golang.org/x/tools/go/importer (from $GOROOT) /home/guest/go/src/golang.org/x/tools/go/importer (from $GOPATH) guest@system:~/go/src/github.com/go-llvm/llgo$ $GOPATH/src/llvm.org/llvm/bindings/go/build.sh -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host bash: /home/guest/go/src/llvm.org/llvm/bindings/go/build.sh: No such file or directory guest@system:~/go/src/github.com/go-llvm/llgo$ </code></pre> <hr> <pre><code>$ go version go version go1.8 linux/amd64 $ cmake -version cmake version 3.8.20170216-gb9229 CMake suite maintained and supported by Kitware (kitware.com/cmake). </code></pre> <hr> <p>guest@system:~/go/src/github.com/go-llvm/llvm$ ./update_llvm.sh</p> <pre><code>+ llvm_components=all-targets analysis asmparser asmprinter bitreader bitwriter codegen core debuginfo executionengine instrumentation interpreter ipo irreader linker mc mcjit objcarcopts option profiledata scalaropts support target + dirname ./update_llvm.sh + gollvmdir=. + grep run_update_llvm_sh_to_get_revision_ ./llvm_dep.go + sed -E -e s/.*run_update_llvm_sh_to_get_revision_([0-9]+.*)/\1/g + llvmrev=218171 + workdir=./workdir + llvmdir=./workdir/llvm + llvm_builddir=./workdir/llvm_build + mkdir -p ./workdir + svn co -r 218171 https://llvm.org/svn/llvm-project/llvm/trunk ./workdir/llvm Checked out revision 218171. + mkdir -p ./workdir/llvm_build + cmake_flags=../llvm + llvm_config=./workdir/llvm_build/bin/llvm-config + which ninja + test -n /usr/bin/ninja + cd ./workdir/llvm_build + cmake -G Ninja ../llvm -- Target triple: x86_64-unknown-linux-gnu -- Native target architecture is X86 -- Threads enabled. -- Doxygen disabled. -- Sphinx disabled. CMake Warning (dev) at cmake/modules/HandleLLVMOptions.cmake:131 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "C_SUPPORTS_FPIC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): cmake/modules/HandleLLVMOptions.cmake:148 (add_flag_or_print_warning) CMakeLists.txt:315 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- Building with -fPIC -- Constructing LLVMBuild project information -- Targeting AArch64 -- Targeting ARM -- Targeting CppBackend -- Targeting Hexagon -- Targeting Mips -- Targeting MSP430 -- Targeting NVPTX -- Targeting PowerPC -- Targeting R600 -- Targeting Sparc -- Targeting SystemZ -- Targeting X86 -- Targeting XCore -- Configuring done -- Generating done -- Build files have been written to: /home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm_build + ninja -C ./workdir/llvm_build llvm-config ninja: Entering directory `./workdir/llvm_build' [2/2] Linking CXX executable bin/llvm-config + ./workdir/llvm_build/bin/llvm-config --libs all-targets analysis asmparser asmprinter bitreader bitwriter codegen core debuginfo executionengine instrumentation interpreter ipo irreader linker mc mcjit objcarcopts option profiledata scalaropts support target + sed -e s/-l//g + llvm_buildtargets=LLVMOption LLVMObjCARCOpts LLVMMCJIT LLVMRuntimeDyld LLVMLinker LLVMIRReader LLVMipo LLVMVectorize LLVMInterpreter LLVMInstrumentation LLVMExecutionEngine LLVMDebugInfo LLVMBitWriter LLVMAsmParser LLVMXCoreDisassembler LLVMXCoreCodeGen LLVMXCoreDesc LLVMXCoreInfo LLVMXCoreAsmPrinter LLVMX86Disassembler LLVMX86AsmParser LLVMX86CodeGen LLVMX86Desc LLVMX86Info LLVMX86AsmPrinter LLVMX86Utils LLVMSystemZDisassembler LLVMSystemZCodeGen LLVMSystemZAsmParser LLVMSystemZDesc LLVMSystemZInfo LLVMSystemZAsmPrinter LLVMSparcDisassembler LLVMSparcCodeGen LLVMSparcAsmParser LLVMSparcDesc LLVMSparcInfo LLVMSparcAsmPrinter LLVMR600CodeGen LLVMR600Desc LLVMR600Info LLVMR600AsmPrinter LLVMPowerPCDisassembler LLVMPowerPCCodeGen LLVMPowerPCAsmParser LLVMPowerPCDesc LLVMPowerPCInfo LLVMPowerPCAsmPrinter LLVMNVPTXCodeGen LLVMNVPTXDesc LLVMNVPTXInfo LLVMNVPTXAsmPrinter LLVMMSP430CodeGen LLVMMSP430Desc LLVMMSP430Info LLVMMSP430AsmPrinter LLVMMipsDisassembler LLVMMipsCodeGen LLVMMipsAsmParser LLVMMipsDesc LLVMMipsInfo LLVMMipsAsmPrinter LLVMHexagonCodeGen LLVMHexagonAsmPrinter LLVMHexagonDesc LLVMHexagonInfo LLVMCppBackendCodeGen LLVMCppBackendInfo LLVMARMDisassembler LLVMARMCodeGen LLVMARMAsmParser LLVMARMDesc LLVMARMInfo LLVMARMAsmPrinter LLVMAArch64Disassembler LLVMMCDisassembler LLVMAArch64CodeGen LLVMSelectionDAG LLVMAsmPrinter LLVMCodeGen LLVMScalarOpts LLVMProfileData LLVMObject LLVMBitReader LLVMInstCombine LLVMTransformUtils LLVMipa LLVMAnalysis LLVMTarget LLVMCore LLVMAArch64AsmParser LLVMMCParser LLVMAArch64Desc LLVMAArch64Info LLVMAArch64AsmPrinter LLVMMC LLVMAArch64Utils LLVMSupport + ninja -C ./workdir/llvm_build LLVMOption LLVMObjCARCOpts LLVMMCJIT LLVMRuntimeDyld LLVMLinker LLVMIRReader LLVMipo LLVMVectorize LLVMInterpreter LLVMInstrumentation LLVMExecutionEngine LLVMDebugInfo LLVMBitWriter LLVMAsmParser LLVMXCoreDisassembler LLVMXCoreCodeGen LLVMXCoreDesc LLVMXCoreInfo LLVMXCoreAsmPrinter LLVMX86Disassembler LLVMX86AsmParser LLVMX86CodeGen LLVMX86Desc LLVMX86Info LLVMX86AsmPrinter LLVMX86Utils LLVMSystemZDisassembler LLVMSystemZCodeGen LLVMSystemZAsmParser LLVMSystemZDesc LLVMSystemZInfo LLVMSystemZAsmPrinter LLVMSparcDisassembler LLVMSparcCodeGen LLVMSparcAsmParser LLVMSparcDesc LLVMSparcInfo LLVMSparcAsmPrinter LLVMR600CodeGen LLVMR600Desc LLVMR600Info LLVMR600AsmPrinter LLVMPowerPCDisassembler LLVMPowerPCCodeGen LLVMPowerPCAsmParser LLVMPowerPCDesc LLVMPowerPCInfo LLVMPowerPCAsmPrinter LLVMNVPTXCodeGen LLVMNVPTXDesc LLVMNVPTXInfo LLVMNVPTXAsmPrinter LLVMMSP430CodeGen LLVMMSP430Desc LLVMMSP430Info LLVMMSP430AsmPrinter LLVMMipsDisassembler LLVMMipsCodeGen LLVMMipsAsmParser LLVMMipsDesc LLVMMipsInfo LLVMMipsAsmPrinter LLVMHexagonCodeGen LLVMHexagonAsmPrinter LLVMHexagonDesc LLVMHexagonInfo LLVMCppBackendCodeGen LLVMCppBackendInfo LLVMARMDisassembler LLVMARMCodeGen LLVMARMAsmParser LLVMARMDesc LLVMARMInfo LLVMARMAsmPrinter LLVMAArch64Disassembler LLVMMCDisassembler LLVMAArch64CodeGen LLVMSelectionDAG LLVMAsmPrinter LLVMCodeGen LLVMScalarOpts LLVMProfileData LLVMObject LLVMBitReader LLVMInstCombine LLVMTransformUtils LLVMipa LLVMAnalysis LLVMTarget LLVMCore LLVMAArch64AsmParser LLVMMCParser LLVMAArch64Desc LLVMAArch64Info LLVMAArch64AsmPrinter LLVMMC LLVMAArch64Utils LLVMSupport FileCheck ninja: Entering directory `./workdir/llvm_build' ninja: no work to do. + ./workdir/llvm_build/bin/llvm-config --version + llvm_version=3.6.0svn + ./workdir/llvm_build/bin/llvm-config --cppflags + llvm_cflags=-I/home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm/include -I/home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm_build/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS + uname + [ Linux == Darwin ] ./update_llvm.sh: 59: [: Linux: unexpected operator + ./workdir/llvm_build/bin/llvm-config --ldflags + ./workdir/llvm_build/bin/llvm-config --libdir + ./workdir/llvm_build/bin/llvm-config --libs all-targets analysis asmparser asmprinter bitreader bitwriter codegen core debuginfo executionengine instrumentation interpreter ipo irreader linker mc mcjit objcarcopts option profiledata scalaropts support target + ./workdir/llvm_build/bin/llvm-config --system-libs + llvm_ldflags=-L/home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm_build//lib -Wl,-rpath,/home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm_build//lib -lLLVMOption -lLLVMObjCARCOpts -lLLVMMCJIT -lLLVMRuntimeDyld -lLLVMLinker -lLLVMIRReader -lLLVMipo -lLLVMVectorize -lLLVMInterpreter -lLLVMInstrumentation -lLLVMExecutionEngine -lLLVMDebugInfo -lLLVMBitWriter -lLLVMAsmParser -lLLVMXCoreDisassembler -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMXCoreAsmPrinter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMSystemZDisassembler -lLLVMSystemZCodeGen -lLLVMSystemZAsmParser -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMSystemZAsmPrinter -lLLVMSparcDisassembler -lLLVMSparcCodeGen -lLLVMSparcAsmParser -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMSparcAsmPrinter -lLLVMR600CodeGen -lLLVMR600Desc -lLLVMR600Info -lLLVMR600AsmPrinter -lLLVMPowerPCDisassembler -lLLVMPowerPCCodeGen -lLLVMPowerPCAsmParser -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMPowerPCAsmPrinter -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo -lLLVMNVPTXAsmPrinter -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMSP430AsmPrinter -lLLVMMipsDisassembler -lLLVMMipsCodeGen -lLLVMMipsAsmParser -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMMipsAsmPrinter -lLLVMHexagonCodeGen -lLLVMHexagonAsmPrinter -lLLVMHexagonDesc -lLLVMHexagonInfo -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo -lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser -lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMAArch64Disassembler -lLLVMMCDisassembler -lLLVMAArch64CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMProfileData -lLLVMObject -lLLVMBitReader -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMCore -lLLVMAArch64AsmParser -lLLVMMCParser -lLLVMAArch64Desc -lLLVMAArch64Info -lLLVMAArch64AsmPrinter -lLLVMMC -lLLVMAArch64Utils -lLLVMSupport -lrt -ldl -ltinfo -latomic -lpthread -lz + sed -e s#@LLVM_REVISION@#218171#g; s#@LLVM_CFLAGS@#-I/home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm/include -I/home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm_build/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS#g; s#@LLVM_LDFLAGS@#-L/home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm_build//lib -Wl,-rpath,/home/guest/go/src/github.com/go-llvm/llvm/workdir/llvm_build//lib -lLLVMOption -lLLVMObjCARCOpts -lLLVMMCJIT -lLLVMRuntimeDyld -lLLVMLinker -lLLVMIRReader -lLLVMipo -lLLVMVectorize -lLLVMInterpreter -lLLVMInstrumentation -lLLVMExecutionEngine -lLLVMDebugInfo -lLLVMBitWriter -lLLVMAsmParser -lLLVMXCoreDisassembler -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMXCoreAsmPrinter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMSystemZDisassembler -lLLVMSystemZCodeGen -lLLVMSystemZAsmParser -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMSystemZAsmPrinter -lLLVMSparcDisassembler -lLLVMSparcCodeGen -lLLVMSparcAsmParser -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMSparcAsmPrinter -lLLVMR600CodeGen -lLLVMR600Desc -lLLVMR600Info -lLLVMR600AsmPrinter -lLLVMPowerPCDisassembler -lLLVMPowerPCCodeGen -lLLVMPowerPCAsmParser -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMPowerPCAsmPrinter -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo -lLLVMNVPTXAsmPrinter -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMSP430AsmPrinter -lLLVMMipsDisassembler -lLLVMMipsCodeGen -lLLVMMipsAsmParser -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMMipsAsmPrinter -lLLVMHexagonCodeGen -lLLVMHexagonAsmPrinter -lLLVMHexagonDesc -lLLVMHexagonInfo -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo -lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser -lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMAArch64Disassembler -lLLVMMCDisassembler -lLLVMAArch64CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMProfileData -lLLVMObject -lLLVMBitReader -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMCore -lLLVMAArch64AsmParser -lLLVMMCParser -lLLVMAArch64Desc -lLLVMAArch64Info -lLLVMAArch64AsmPrinter -lLLVMMC -lLLVMAArch64Utils -lLLVMSupport -lrt -ldl -ltinfo -latomic -lpthread -lz#g ./llvm_config.go.in + printf package llvm const Version = "%s" 3.6.0svn </code></pre> <p>guest@system:~/go/src/github.com/go-llvm/llvm/examples$ cd factorial</p> <p>guest@system:~/go/src/github.com/go-llvm/llvm/examples/factorial$ ls factorial factorial.go</p> <p>guest@system:~/go/src/github.com/go-llvm/llvm/examples/factorial$ go build factorial.go</p> <p>guest@system:~/go/src/github.com/go-llvm/llvm/examples/factorial$ ./factorial</p> <pre><code>; ModuleID = 'fac_module' define i32 @fac(i32) { entry: %cmptmp = icmp eq i32 %0, 0 br i1 %cmptmp, label %end, label %iffalse iffalse: ; preds = %entry %subtmp = add i32 %0, -1 %calltmp = call i32 @fac(i32 %subtmp) %multmp = mul i32 %calltmp, %0 br label %end end: ; preds = %entry, %iffalse %result = phi i32 [ %multmp, %iffalse ], [ 1, %entry ] ret i32 %result } ----------------------------------------- Running fac(10) with JIT... Result: 3628800 DONE </code></pre> <hr> <pre><code>guest@system:~$ go get llvm.org/llvm.v36/bindings/go/llvm package llvm.org/llvm.v36/bindings/go/llvm: unrecognized import path "llvm.org/llvm.v36/bindings/go/llvm" (parse https://llvm.org/llvm.v36/bindings/go/llvm?go-get=1: no go-import meta tags ()) guest@system:~$ go get -d llvm.org/llvm.v36/bindings/go/llvm package llvm.org/llvm.v36/bindings/go/llvm: unrecognized import path "llvm.org/llvm.v36/bindings/go/llvm" (parse https://llvm.org/llvm.v36/bindings/go/llvm?go-get=1: no go-import meta tags ()) </code></pre> <hr> <pre><code>$ which llvm-config /usr/bin/llvm-config guest@system:~/go/src/github.com/go-llvm/llvm/workdir/llvm_build/bin$ ls FileCheck llvm-config llvm-lit llvm-tblgen </code></pre> <hr> <p>guest@system:~/go/src/github.com/axw/llgo$ ./update_third_party.sh</p> <p>github.com/axw/llgo$ ./update_third_party.sh </p> <pre><code>Cloning into '/tmp/update_third_party.auPNC9/gofrontend'... remote: Sending approximately 92.68 MiB ... remote: Counting objects: 3087, done remote: Finding sources: 100% (69/69) remote: Total 33940 (delta 26755), reused 33933 (delta 26755) Receiving objects: 100% (33940/33940), 92.79 MiB | 60.00 KiB/s, done. Resolving deltas: 100% (26755/26755), done. Checking connectivity... done. Note: checking out '81eb6a3f425b2158c67ee32c0cc973a72ce9d6be'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b &lt;new-branch-name&gt; HEAD is now at 81eb6a3... runtime: don't overallocate in select code patching file libgo/runtime/chan.goc patching file libgo/runtime/chan.h patching file libgo/runtime/heapdump.c patching file libgo/runtime/malloc.goc patching file libgo/runtime/malloc.h Hunk #1 succeeded at 392 (offset 2 lines). Hunk #2 succeeded at 403 (offset 2 lines). Hunk #3 succeeded at 460 (offset 2 lines). Hunk #4 succeeded at 478 (offset 2 lines). Hunk #5 succeeded at 507 (offset 2 lines). patching file libgo/runtime/mcache.c patching file libgo/runtime/mcentral.c patching file libgo/runtime/mgc0.c Hunk #3 succeeded at 1380 (offset 2 lines). Hunk #4 succeeded at 1390 (offset 2 lines). Hunk #5 succeeded at 1804 (offset 2 lines). Hunk #6 succeeded at 2151 (offset 4 lines). Hunk #7 succeeded at 2428 (offset 5 lines). Hunk #8 succeeded at 2443 (offset 5 lines). Hunk #9 succeeded at 2451 (offset 5 lines). patching file libgo/runtime/mheap.c patching file libgo/runtime/netpoll.goc patching file libgo/runtime/proc.c Hunk #1 succeeded at 326 (offset 24 lines). Hunk #2 succeeded at 809 (offset 100 lines). Hunk #3 succeeded at 820 (offset 100 lines). Hunk #4 succeeded at 847 (offset 100 lines). Hunk #5 succeeded at 855 (offset 100 lines). Hunk #6 succeeded at 864 (offset 100 lines). Hunk #7 succeeded at 881 (offset 100 lines). Hunk #8 succeeded at 894 (offset 100 lines). Hunk #9 succeeded at 933 (offset 100 lines). Hunk #10 succeeded at 953 (offset 100 lines). Hunk #11 succeeded at 987 (offset 100 lines). Hunk #12 succeeded at 1011 (offset 100 lines). Hunk #13 succeeded at 1452 (offset 106 lines). Hunk #14 succeeded at 1481 (offset 106 lines). Hunk #15 succeeded at 1525 (offset 106 lines). Hunk #16 succeeded at 1618 (offset 106 lines). Hunk #17 succeeded at 1673 (offset 106 lines). Hunk #18 succeeded at 1709 (offset 106 lines). Hunk #19 succeeded at 1730 (offset 106 lines). Hunk #20 succeeded at 1749 (offset 106 lines). Hunk #21 succeeded at 1794 (offset 106 lines). Hunk #22 succeeded at 1832 (offset 106 lines). Hunk #23 succeeded at 1928 (offset 106 lines). Hunk #24 succeeded at 2031 (offset 106 lines). Hunk #25 succeeded at 2159 (offset 106 lines). Hunk #26 succeeded at 2184 (offset 106 lines). Hunk #27 succeeded at 2192 (offset 106 lines). Hunk #28 succeeded at 2484 (offset 119 lines). Hunk #29 succeeded at 2595 (offset 119 lines). Hunk #30 succeeded at 2627 (offset 119 lines). Hunk #31 succeeded at 2657 (offset 119 lines). Hunk #32 succeeded at 2682 (offset 119 lines). Hunk #33 succeeded at 2826 (offset 119 lines). Hunk #34 succeeded at 2906 (offset 126 lines). Hunk #35 succeeded at 3044 (offset 126 lines). Hunk #36 succeeded at 3080 (offset 126 lines). Hunk #37 succeeded at 3112 (offset 126 lines). Hunk #38 succeeded at 3268 (offset 126 lines). Hunk #39 succeeded at 3422 (offset 126 lines). patching file libgo/runtime/runtime.h patching file libgo/runtime/sema.goc patching file libgo/runtime/sigqueue.goc patching file libgo/runtime/time.goc patching file libgo/Makefile.am Hunk #1 succeeded at 4139 (offset 401 lines). Hunk #2 succeeded at 4246 (offset 409 lines). patching file libgo/Makefile.in Hunk #1 succeeded at 2433 (offset 221 lines). Hunk #2 succeeded at 2540 (offset 229 lines). patching file libgo/go/runtime/mfinal_test.go Hunk #1 succeeded at 65 (offset 3 lines). cp: cannot stat '../../cmake/config.guess': No such file or directory </code></pre> <p>how can fix?</p> </div>

JITed LLVM代码如何回调Go函数?

<div class="post-text" itemprop="text"> <p>I'm writing code to generate LLVM bytecode from a custom VM bytecode using the <a href="https://godoc.org/llvm.org/llvm/bindings/go/llvm" rel="nofollow">LLVM Go bindings</a>; the code is then JITed and executed in-process.</p> <p>The custom VM bytecode has several operations that can't be implemented directly in LLVM, because they require changing external state; the functionality for these opcodes is implemented as Go functions.</p> <p>There are <a href="https://blog.felixangell.com/an-introduction-to-llvm-in-go/" rel="nofollow">excellent guides</a> on getting started with generating LLVM bytecode from Go, but none address the issue of callbacks or exported functions. Is it possible to generate LLVM instructions to call back into the Go functions? If so, how?</p> <p>I've tried the way described below by @arrowd, and it doesn't appear to work. Source code, adapted from Felix Angell's blog post:</p> <pre><code>package main import ( "C" "fmt" "llvm.org/llvm/final/bindings/go/llvm" ) // export AddInts func AddInts(arg1, arg2 int) int { return arg1 + arg2; } func main() { // setup our builder and module builder := llvm.NewBuilder() mod := llvm.NewModule("my_module") // create our function prologue main := llvm.FunctionType(llvm.Int32Type(), []llvm.Type{}, false) llvm.AddFunction(mod, "main", main) block := llvm.AddBasicBlock(mod.NamedFunction("main"), "entry") builder.SetInsertPoint(block, block.FirstInstruction()) // int a = 32 a := builder.CreateAlloca(llvm.Int32Type(), "a") builder.CreateStore(llvm.ConstInt(llvm.Int32Type(), 32, false), a) // int b = 16 b := builder.CreateAlloca(llvm.Int32Type(), "b") builder.CreateStore(llvm.ConstInt(llvm.Int32Type(), 16, false), b) // return a + b bVal := builder.CreateLoad(b, "b_val") aVal := builder.CreateLoad(a, "a_val") addIntsType := llvm.FunctionType(llvm.Int32Type(), []llvm.Type{llvm.Int32Type(), llvm.Int32Type()}, false) addInts := llvm.AddFunction(mod, "AddInts", addIntsType) call := builder.CreateCall(addInts, []llvm.Value{aVal, bVal}, "AddInts") builder.CreateRet(call) // verify it's all good if ok := llvm.VerifyModule(mod, llvm.ReturnStatusAction); ok != nil { fmt.Println(ok.Error()) } mod.Dump() // create our exe engine engine, err := llvm.NewExecutionEngine(mod) if err != nil { fmt.Println(err.Error()) } // run the function! funcResult := engine.RunFunction(mod.NamedFunction("main"), []llvm.GenericValue{}) fmt.Printf("%d ", funcResult.Int(false)) } </code></pre> <p>Returns:</p> <pre><code>; ModuleID = 'my_module' define i32 @main() { entry: %a = alloca i32 store i32 32, i32* %a %b = alloca i32 store i32 16, i32* %b %b_val = load i32* %b %a_val = load i32* %a %AddInts = call i32 @AddInts(i32 %a_val, i32 %b_val) ret i32 %AddInts } declare i32 @AddInts(i32, i32) LLVM ERROR: Tried to execute an unknown external function: AddInts exit status 1 </code></pre> </div>

android 7.1源码编译 出错

以下是shell上的打印 ``` Starting build with ninja [476/5393] ninja: Entering directory `.' [ 1% 8/468] target Executable: dexdump (out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/LINKED/dexdump) FAILED: /bin/bash -c "prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -pie -nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Lout/target/product/ px3/obj/lib -Wl,-rpath-link=out/target/product/px3/obj/lib out/target/product/px3/obj/lib/crtbegin_dynamic.o out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/DexDump.o -Wl ,--whole-archive -Wl,--no-whole-archive out/target/product/px3/obj/STATIC_LIBRARIES/libdex_intermediates/libdex.a out/target/product/px3/obj/STATIC_LIBRARIES/libbase_intermediates/libbase.a out/targ et/product/px3/obj/STATIC_LIBRARIES/libunwind_llvm_intermediates/libunwind_llvm.a out/target/product/px3/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a prebuilts/gcc/ linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/lib/armv7-a/libatomic.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../li b/gcc/arm-linux-androideabi/4.9/armv7-a/libgcc.a -lz -llog -lutils -lc++ -ldl -lc -lm -o out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/LINKED/dexdump -Wl,-z,noexecstack -Wl,-z,relro -W l,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu -Wl,--no-undefined-version -Wl,--fix-cortex-a8 -target arm-linux-androideabi -Bprebuilts /gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined out/target/product/px3/obj/lib/crtend_android.o" dalvik/dexdump/DexDump.cpp:517: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)' dalvik/dexdump/DexDump.cpp:627: error: undefined reference to 'dexDecodeDebugInfo(DexFile const*, DexCode const*, char const*, unsigned int, unsigned int, int (*)(void*, unsigned int, unsigned int), voi d (*)(void*, unsigned short, unsigned int, unsigned int, char const*, char const*, char const*), void*)' dalvik/dexdump/DexDump.cpp:653: error: undefined reference to 'dexDecodeDebugInfo(DexFile const*, DexCode const*, char const*, unsigned int, unsigned int, int (*)(void*, unsigned int, unsigned int), voi d (*)(void*, unsigned short, unsigned int, unsigned int, char const*, char const*, char const*), void*)' dalvik/libdex/DexProto.h:143: error: undefined reference to 'dexProtoCopyMethodDescriptor(DexProto const*)' dalvik/dexdump/DexDump.cpp:890: error: undefined reference to 'dexGetOpcodeName(Opcode)' dalvik/dexdump/DexDump.cpp:1055: error: undefined reference to 'gDexOpcodeInfo' dalvik/dexdump/DexDump.cpp:845: error: undefined reference to 'gDexOpcodeInfo' dalvik/dexdump/DexDump.cpp:1120: error: undefined reference to 'dexDecodeInstruction(unsigned short const*, DecodedInstruction*)' dalvik/dexdump/DexDump.cpp:1128: error: undefined reference to 'gDexOpcodeInfo' dalvik/libdex/DexProto.h:143: error: undefined reference to 'dexProtoCopyMethodDescriptor(DexProto const*)' dalvik/dexdump/DexDump.cpp:1388: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)' dalvik/dexdump/DexDump.cpp:1704: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)' dalvik/dexdump/DexDump.cpp:1795: error: undefined reference to 'dexOpenAndMap(char const*, char const*, MemMapping*, bool)' dalvik/dexdump/DexDump.cpp:1804: error: undefined reference to 'dexFileParse(unsigned char const*, unsigned int, int)' dalvik/dexdump/DexDump.cpp:1820: error: undefined reference to 'sysReleaseShmem(MemMapping*)' dalvik/dexdump/DexDump.cpp:1822: error: undefined reference to 'dexFileFree(DexFile*)' dalvik/dexdump/DexDump.cpp:1820: error: undefined reference to 'sysReleaseShmem(MemMapping*)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) [ 1% 8/468] Ensure Jack server is installed and started Jack server already installed in "/home2/hxw/.jack-server" Server is already running ``` 我已经试过改了jack的服务端口了 .jack .jack-setting .jack-server/config.properties 里面的地址都改了还是不行 据说不是jack的问题, jack错误只是编译错误引起的。 在网上搜 DexDump都只能搜到一些教怎么单独编译之类的教程 没找到有类似错误的

intl扩展:在Moodle中安装php_intl

<div class="post-text" itemprop="text"> <p>I have WAMPSERVER 3.0.6 64 bit. I have updated PHP version 5.6.25 from 7.0.10. I have installed updated version of Moodle 3.4 and have tried to run but getting the issue is following - Intl extension is required to improve internationalization support, such as locale aware sorting and international domain names.</p> <p>For resolving this issue I have tried so many tips but could not resolve this issue.</p> </div>

OpenCV4Android求大神解决

Build command failed. Error while executing process D:\AS\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build E:\lichao\study\android\code\OpenCV4AndroidFace\app\.externalNativeBuild\cmake\debug\arm64-v8a --target opencv341} [1/2] Building CXX object CMakeFiles/opencv341.dir/src/main/cpp/DetectionBasedTracker_jni.cpp.o FAILED: D:\AS\sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android --gcc-toolchain=D:/AS/sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 --sysroot=D:/AS/sdk/ndk-bundle/sysroot -Dopencv341_EXPORTS -I../../../../src/main/cpp/include -isystem D:/AS/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:/AS/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/include -isystem D:/AS/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem D:/AS/sdk/ndk-bundle/sysroot/usr/include/aarch64-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -std=gnu++11 -fexceptions -frtti -O2 -DNDEBUG -fPIC -MD -MT CMakeFiles/opencv341.dir/src/main/cpp/DetectionBasedTracker_jni.cpp.o -MF CMakeFiles\opencv341.dir\src\main\cpp\DetectionBasedTracker_jni.cpp.o.d -o CMakeFiles/opencv341.dir/src/main/cpp/DetectionBasedTracker_jni.cpp.o -c E:\lichao\study\android\code\OpenCV4AndroidFace\app\src\main\cpp\DetectionBasedTracker_jni.cpp E:\lichao\study\android\code\OpenCV4AndroidFace\app\src\main\cpp\DetectionBasedTracker_jni.cpp:1:10: error: 'DetectionBasedTracker_jni.h' file not found with <angled> include; use "quotes" instead #include <DetectionBasedTracker_jni.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "DetectionBasedTracker_jni.h" 1 error generated. ninja: build stopped: subcommand failed.

iOS打包错误 normal armv7

遇到过这种自动打包错误没有呢?大神们 ▸ ❌ clang: error: unable to execute command: Segmentation fault: 11 ❌ clang: error: linker command failed due to signal (use -v to see invocation) ** ARCHIVE FAILED ** The following build commands failed: Ld /Users/admin/Library/Developer/Xcode/DerivedData/STAdSDK-apbnitvgnkrwozgoldatmyapckfl/Build/Intermediates/ArchiveIntermediates/STAdTestApp/IntermediateBuildFilesPath/STAdSDK.build/Release-iphoneos/STAdTestApp.build/Objects-normal/armv7/STAdTestApp normal armv7 (1 failure) [13:06:33]: Exit status: 65 [!] Error building the application - see the log above

构建llgo + llvm时失败

<div class="post-text" itemprop="text"> <p>I was trying to build the llvm project from the sources. I'm interested in using (instrumenting) the go frontend. I followed steps from <a href="https://github.com/llvm-mirror/llgo" rel="nofollow noreferrer">llgo repo</a>. It fails when executing </p> <blockquote> <p>make install</p> </blockquote> <p>at 91%. </p> <pre><code>[ 91%] Linking CXX executable ../../bin/dsymutil [ 91%] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/VforkChecker.cpp.o [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaStmt.cpp.o [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaStmtAsm.cpp.o collect2: fatal error: ld terminated with signal 9 [Killed] compilation terminated. tools/llc/CMakeFiles/llc.dir/build.make:212: recipe for target 'bin/llc' failed make[2]: *** [bin/llc] Error 1 make[2]: *** Deleting file 'bin/llc' CMakeFiles/Makefile2:68154: recipe for target 'tools/llc/CMakeFiles/llc.dir/all' failed make[1]: *** [tools/llc/CMakeFiles/llc.dir/all] Error 2 [ 91%] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/VLASizeChecker.cpp.o [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaStmtAttr.cpp.o [ 91%] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/ValistChecker.cpp.o [ 91%] Built target llvm-cfi-verify [ 91%] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/VirtualCallChecker.cpp.o [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaTemplate.cpp.o [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaTemplateDeduction.cpp.o [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaTemplateInstantiate.cpp.o [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaTemplateInstantiateDecl.cpp.o [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaTemplateVariadic.cpp.o [ 91%] Built target obj.clangStaticAnalyzerCheckers [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaType.cpp.o collect2: fatal error: ld terminated with signal 9 [Killed] compilation terminated. tools/bugpoint/CMakeFiles/bugpoint.dir/build.make:419: recipe for target 'bin/bugpoint' failed make[2]: *** [bin/bugpoint] Error 1 make[2]: *** Deleting file 'bin/bugpoint' CMakeFiles/Makefile2:67602: recipe for target 'tools/bugpoint/CMakeFiles/bugpoint.dir/all' failed make[1]: *** [tools/bugpoint/CMakeFiles/bugpoint.dir/all] Error 2 [ 91%] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/TypeLocBuilder.cpp.o [ 91%] Built target obj.clangSema [ 91%] Built target dsymutil Makefile:151: recipe for target 'all' failed make: *** [all] Error 2 </code></pre> <p>Alternatively, I followed <a href="https://solarianprogrammer.com/2013/01/17/building-clang-libcpp-ubuntu-linux/" rel="nofollow noreferrer">building clang 8, llvm 8 on ubuntu 18.04</a>. I managed to build clang+llvm. I tried to build llgo but failed terribly. What am I missing?</p> <p>I'm using Ubuntu 18.04.2 LTS.</p> </div>

带有openGL绑定支持的本地语言可编译为LLVM

<div class="post-text" itemprop="text"> <p>So I'm looking for a language for a special project.</p> <p>I'm working on a project where we are about to design some rendering modules that initially will be running in the browser, but more interesting on the long run, on multiple platforms (Android, IOS, Linux, Windows, the whole lot).. A scenario of true cross platform.</p> <p>To fulfill this we would like to take advantage of emscripten, llvm and a native compiling language. As the modules will be graphically challenging it is a requirement that the language has openGL-LLVM bindings so that the emscript can translate the implementation into webgl. I've attempted to illustrate our desire below.</p> <pre><code>Source |---&gt; Native binaries |---&gt; LLVM |---&gt; Javascript (via EMSCRIPTEN) </code></pre> <p>So this brings us to the question. Which language supports this? Possible languages are, as I see it, C, C++, Go, Rust, and Haskell. We would though really like to avoid C and C++, despite them being the most realistic choices.</p> <p>As far as I can see, all languages have LLVM bindings, but its more the matter of having reliable openGL-LLVM bindings available.</p> </div>

我正在使用Antlr4创建一种语言,然后使用该语言生成LLVM IR。 我是否需要为访客事件手写LLVM IR?

<div class="post-text" itemprop="text"> <p>While learning Antlr4, I used Golang as a target language, so a statement in my toy language like: </p> <pre><code>$myVar = 10 $myVar + 5 </code></pre> <p>Would translate to some Golang code that generates "15" for the result</p> <p>However, as far as I can see, there isn't an LLVM IR target for ANTLR, so the question is: what are my options?</p> <p>1) Generate C/C++ and then use it to emit LLVM IR?<br> 2) Try to find a Golang LLVM IR emitter?<br> 3) Keep using the generated Go lexer/parser but hand-write LLVM IR? </p> <p>I tried to go through the LLVM documentation and watched a few videos on LLVM&lt; but they all seem to generate C/C++ and then communicate with the API that way. Not sure if they do that because that's what they know or if it's because that's the only way.</p> <p>Thanks in advance for any insights! </p> </div>

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版本过低的问题该如何解决?

ionic打包ios打包出错。错误如下。求解

CompileC /Users/apple/Library/Developer/Xcode/DerivedData/爱签-fdngcuqsvkxxrbggpsqqlnykipsq/Build/Intermediates/爱签.build/Debug-iphonesimulator/爱签.build/Objects-normal/x86_64/IonicKeyboard.o 爱签/Plugins/com.ionic.keyboard/IonicKeyboard.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Error: Error code 65 for command: xcodebuild with args: -xcconfig,/users/apple/desktop/demo/platforms/ios/cordova/build-debug.xcconfig,-workspace,爱签.xcworkspace,-scheme,爱签,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/users/apple/desktop/demo/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/users/apple/desktop/demo/platforms/ios/build/sharedpch

求大神支招? 开发过程中,会有文件生成不完整的情况

开发过程中,会有文件生成不完整的情况,例如现在运行llvm_build.bat 没生成3个文件,这个怎么处理?

编译ndk-build.cmd生成.so文件中出现这样的问题,不知道哪的原因。

E:\project\CHENWEN\proj.android\jni>ndk-build [armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp In file included from D:/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.6/inclu de/thread:35:0, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../base/CCConsole.h:42, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../base/ccMacros.h:35, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../base/CCRefPtr.h:30, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../cocos2d.h:42, from E:/project/CHENWEN/proj.android//jni/../../Classes/AppDele gate.h:4, from E:/project/CHENWEN/proj.android//jni/hellocpp/main.cpp:1: D:/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/c++0x_warning. h:32:2: error: #error This file requires compiler and library support for the IS O C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. In file included from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../platform/CCGL.h:36:0, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../base/ccTypes.h:36, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../cocos2d.h:51, from E:/project/CHENWEN/proj.android//jni/../../Classes/AppDele gate.h:4, from E:/project/CHENWEN/proj.android//jni/hellocpp/main.cpp:1: E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3d/../platform/android/ CCGL-android.h:44:31: fatal error: GLES2/gl2platform.h: No such file or director y compilation terminated. make.exe: *** [E:/project/CHENWEN/proj.android//obj/local/armeabi/objs/cocos2dcp p_shared/hellocpp/main.o] Error 1

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

Linux面试题(2020最新版)

文章目录Linux 概述什么是LinuxUnix和Linux有什么区别?什么是 Linux 内核?Linux的基本组件是什么?Linux 的体系结构BASH和DOS之间的基本区别是什么?Linux 开机启动过程?Linux系统缺省的运行级别?Linux 使用的进程间通信方式?Linux 有哪些系统日志文件?Linux系统安装多个桌面环境有帮助吗?什么是交换空间?什么是root帐户什么是LILO?什...

Linux命令学习神器!命令看不懂直接给你解释!

大家都知道,Linux 系统有非常多的命令,而且每个命令又有非常多的用法,想要全部记住所有命令的所有用法,恐怕是一件不可能完成的任务。 一般情况下,我们学习一个命令时,要么直接百度去搜索它的用法,要么就直接用 man 命令去查看守冗长的帮助手册。这两个都可以实现我们的目标,但有没有更简便的方式呢? 答案是必须有的!今天给大家推荐一款有趣而实用学习神器 — kmdr,让你解锁 Linux 学习新姿势...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

史上最全的 python 基础知识汇总篇,没有比这再全面的了,建议收藏

网友们有福了,小编终于把基础篇的内容全部涉略了一遍,这是一篇关于基础知识的汇总的文章,请朋友们收下,不用客气,不过文章篇幅肯能会有点长,耐心阅读吧爬虫(七十)多进程multiproces...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

85后蒋凡:28岁实现财务自由、34岁成为阿里万亿电商帝国双掌门,他的人生底层逻辑是什么?...

蒋凡是何许人也? 2017年12月27日,在入职4年时间里,蒋凡开挂般坐上了淘宝总裁位置。 为此,时任阿里CEO张勇在任命书中力赞: 蒋凡加入阿里,始终保持创业者的冲劲,有敏锐的...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

新一代神器STM32CubeMonitor介绍、下载、安装和使用教程

关注、星标公众号,不错过精彩内容作者:黄工公众号:strongerHuang最近ST官网悄悄新上线了一款比较强大的工具:STM32CubeMonitor V1.0.0。经过我研究和使用之...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

大学一路走来,学习互联网全靠这几个网站,最终拿下了一把offer

大佬原来都是这样炼成的

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

什么时候跳槽,为什么离职,你想好了么?

都是出来打工的,多为自己着想

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你期望月薪4万,出门右拐,不送,这几个点,你也就是个初级的水平

先来看几个问题通过注解的方式注入依赖对象,介绍一下你知道的几种方式@Autowired和@Resource有何区别说一下@Autowired查找候选者的...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

立即提问
相关内容推荐