Невозможно собрать приложение OsmAnd - PullRequest
0 голосов
/ 08 октября 2018

Я пытаюсь собрать приложение OsmAnd android, поэтому я выполняю:

$ repo init -u https://github.com/osmandapp/OsmAnd-manifest.git -m android_build.xml 
$ repo sync -d
$ export ANDROID_SDK=</path/to/folder/>android-sdk-linux 
$ export ANDROID_NDK=</path/to/folder/>android-ndk-r10d 
$ cd </path/to/folder/>osmandapp 
$ cd android/OsmAnd 
$ ../gradlew --refresh-dependencies clean assembleFullLegacyarmv7Debug 

У меня проблема с командой:

$ ../gradlew --refresh-dependencies cleanasseFullLegacyarmv7Debug

Окончание с исключением:

1:15:21.403 [QUIET] [system.out] OsmAnd makefiles:  jni/../../../core-legacy/targets/android/expat/Android.mk jni/../../../core-legacy/targets/android/freetype/Android.mk jni/../../../core-legacy/targets/android/giflib/Android.mk jni/../../../core-legacy/targets/android/jpeg/Android.mk jni/../../../core-legacy/targets/android/libpng/Android.mk jni/../../../core-legacy/targets/android/OsmAndCore/Android.mk jni/../../../core-legacy/targets/android/protobuf/Android.mk jni/../../../core-legacy/targets/android/skia/Android.mk
11:15:21.944 [QUIET] [system.out] Android NDK: WARNING:jni/../../../core-legacy/targets/android/skia/Android.mk:osmand_skia: LOCAL_LDLIBS is always ignored for static libraries    
11:15:22.740 [QUIET] [system.out] [armeabi-v7a] Compile++ arm  : osmand_skia <= SkMiniRecorder.cpp
11:15:22.742 [QUIET] [system.out] [armeabi-v7a] Compile++ arm  : osmand_skia <= SkModeColorFilter.cpp
11:15:23.552 [ERROR] [system.err] clang++: /s/ndk-toolchain/src/llvm-3.6/llvm/tools/clang/lib/AST/Type.cpp:1719: bool clang::FunctionProtoType::isNothrow(const clang::ASTContext&, bool) const: Assertion `EST != EST_Unevaluated && EST != EST_Uninstantiated' failed.
11:15:23.556 [ERROR] [system.err] 0  clang++         0x0a5afdcc llvm::sys::PrintStackTrace(_IO_FILE*) + 44
11:15:23.556 [ERROR] [system.err] 1  clang++         0x0a5b001f
11:15:23.556 [ERROR] [system.err] 2  clang++         0x0a5adf28
11:15:23.556 [ERROR] [system.err] 3  linux-gate.so.1 0x55660ca0 __kernel_sigreturn + 0
11:15:23.556 [ERROR] [system.err] 4  linux-gate.so.1 0x55660c89 __kernel_vsyscall + 9
11:15:23.557 [ERROR] [system.err] 5  libc.so.6       0x55770dd0 gsignal + 176
11:15:23.557 [ERROR] [system.err] 6  libc.so.6       0x55772297 abort + 343
11:15:23.557 [ERROR] [system.err] 7  libc.so.6       0x55769a27
11:15:23.557 [ERROR] [system.err] 8  libc.so.6       0x55769aab
11:15:23.557 [ERROR] [system.err] 9  clang++         0x093c8d58
11:15:23.557 [ERROR] [system.err] 10 clang++         0x0889432e clang::CodeGen::CodeGenModule::ConstructAttributeList(clang::CodeGen::CGFunctionInfo const&, clang::Decl const*, llvm::SmallVector<llvm::AttributeSet, 8u>&, unsigned int&, bool) + 414
11:15:23.557 [ERROR] [system.err] 11 clang++         0x087fab05 clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributes(clang::Decl const*, clang::CodeGen::CGFunctionInfo const&, llvm::Function*) + 85
11:15:23.557 [ERROR] [system.err] 12 clang++         0x087fae3f clang::CodeGen::CodeGenModule::SetFunctionAttributes(clang::GlobalDecl, llvm::Function*, bool, bool) + 719
11:15:23.557 [ERROR] [system.err] 13 clang++         0x08803a2a clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef, llvm::Type*, clang::GlobalDecl, bool, bool, bool, llvm::AttributeSet) + 762
11:15:23.557 [ERROR] [system.err] 14 clang++         0x08884abf clang::CodeGen::CodeGenModule::getAddrOfCXXStructor(clang::CXXMethodDecl const*, clang::CodeGen::StructorType, clang::CodeGen::CGFunctionInfo const*, llvm::FunctionType*, bool) + 319
11:15:23.557 [ERROR] [system.err] 15 clang++         0x08838e76
11:15:23.557 [ERROR] [system.err] 16 clang++         0x0889fae7 clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall(clang::CXXDestructorDecl const*, clang::CXXDtorType, bool, bool, llvm::Value*) + 71
11:15:23.557 [ERROR] [system.err] 17 clang++         0x0889fc20 clang::CodeGen::CodeGenFunction::destroyCXXObject(clang::CodeGen::CodeGenFunction&, llvm::Value*, clang::QualType) + 144
11:15:23.557 [ERROR] [system.err] 18 clang++         0x088b4a33 clang::CodeGen::CodeGenFunction::emitDestroy(llvm::Value*, clang::QualType, void (*)(clang::CodeGen::CodeGenFunction&, llvm::Value*, clang::QualType), bool) + 323
11:15:23.558 [ERROR] [system.err] 19 clang++         0x088b4b17
11:15:23.558 [ERROR] [system.err] 20 clang++         0x088aceb1
11:15:23.558 [ERROR] [system.err] 21 clang++         0x088aed93 clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 4899
11:15:23.558 [ERROR] [system.err] 22 clang++         0x088afbc0 clang::CodeGen::CodeGenFunction::DeactivateCleanupBlock(clang::CodeGen::EHScopeStack::stable_iterator, llvm::Instruction*) + 176
11:15:23.558 [ERROR] [system.err] 23 clang++         0x088e6d1a
11:15:23.558 [ERROR] [system.err] 24 clang++         0x088e3f10
11:15:23.558 [ERROR] [system.err] 25 clang++         0x088e5382 clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot) + 178
11:15:23.558 [ERROR] [system.err] 26 clang++         0x088e8322
11:15:23.559 [ERROR] [system.err] 27 clang++         0x088ee8bc clang::CodeGen::CodeGenFunction::EmitCXXNewExpr(clang::CXXNewExpr const*) + 3020
11:15:23.559 [ERROR] [system.err] 28 clang++         0x08901bc6
11:15:23.559 [ERROR] [system.err] 29 clang++         0x0835b7b7
11:15:23.559 [ERROR] [system.err] 30 clang++         0x08901fcd
11:15:23.559 [ERROR] [system.err] 31 clang++         0x08903328 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 120
11:15:23.559 [ERROR] [system.err] 32 clang++         0x088c7732 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 130
11:15:23.559 [ERROR] [system.err] 33 clang++         0x088d9d3c clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 124
11:15:23.559 [ERROR] [system.err] 34 clang++         0x087db0d2 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 962
11:15:23.560 [ERROR] [system.err] 35 clang++         0x087db9b2 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 82
11:15:23.560 [ERROR] [system.err] 36 clang++         0x087f224d clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&, clang::Stmt const*) + 253
11:15:23.560 [ERROR] [system.err] 37 clang++         0x087f423f clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1695
11:15:23.560 [ERROR] [system.err] 38 clang++         0x08810c66 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 630
11:15:23.560 [ERROR] [system.err] 39 clang++         0x088124cd clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 717
11:15:23.560 [ERROR] [system.err] 40 clang++         0x088152bb clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1323
11:15:23.560 [ERROR] [system.err] 41 clang++         0x08815be3
11:15:23.561 [ERROR] [system.err] 42 clang++         0x087a0b9f
11:15:23.561 [ERROR] [system.err] 43 clang++         0x08793151
11:15:23.561 [ERROR] [system.err] 44 clang++         0x0898a804 clang::ParseAST(clang::Sema&, bool, bool) + 340
11:15:23.561 [ERROR] [system.err] 45 clang++         0x085bb6fd clang::ASTFrontendAction::ExecuteAction() + 109
11:15:23.561 [ERROR] [system.err] 46 clang++         0x08793d6d clang::CodeGenAction::ExecuteAction() + 61
11:15:23.561 [ERROR] [system.err] 47 clang++         0x085bc348 clang::FrontendAction::Execute() + 136
11:15:23.561 [ERROR] [system.err] 48 clang++         0x08594ba5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
11:15:23.562 [ERROR] [system.err] 49 clang++         0x0857b000 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2112
11:15:23.562 [ERROR] [system.err] 50 clang++         0x0857388e cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1230
11:15:23.562 [ERROR] [system.err] 51 clang++         0x085536a3 main + 5347
11:15:23.562 [ERROR] [system.err] 52 libc.so.6       0x5575d286 __libc_start_main + 246
11:15:23.562 [ERROR] [system.err] 53 clang++         0x08572555
11:15:23.562 [ERROR] [system.err] Stack dump:
11:15:23.562 [ERROR] [system.err] 0.    Program arguments: /home/konradb/Android/android-ndk-r10e_32/toolchains/llvm-3.6/prebuilt/linux-x86/bin/clang++ -cc1 -triple armv7-none-linux-androideabi -S -disable-free -main-file-name SkMiniRecorder.cpp -mrelocation-model pic -pic-level 1 -mthread-model posix -fmath-errno -masm-verbose -no-integrated-as -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu cortex-a8 -target-feature +soft-float-abi -target-feature +neon -target-abi aapcs-linux -mfloat-abi soft -target-linker-version 2.24 -g -dwarf-column-info -ffunction-sections -coverage-file /home/konradb/OsmAnd/android/OsmAnd/./obj/local/armeabi-v7a/objs/osmand_skia/__/__/__/externals/skia/upstream.patched/src/core/SkMiniRecorder.o -resource-dir /home/konradb/Android/android-ndk-r10e_32/toolchains/llvm-3.6/prebuilt/linux-x86/bin/../lib/clang/3.6 -dependency-file ./obj/local/armeabi-v7a/objs/osmand_skia/__/__/__/externals/skia/upstream.patched/src/core/SkMiniRecorder.o.d -MT ./obj/local/armeabi-v7a/objs/osmand_skia/__/__/__/externals/skia/upstream.patched/src/core/SkMiniRecorder.o -MP -D NDEBUG -D ANDROID -D SK_BUILD_FOR_ANDROID -D ANDROID_LARGE_MEMORY_DEVICE -D SK_USE_POSIX_THREADS -D SK_IGNORE_ETC1_SUPPORT -D SKRELEASE -D SK_HAS_JPEG_LIBRARY -D SK_HAS_PNG_LIBRARY -D SK_SUPPORT_GPU=0 -D SK_ARM_HAS_OPTIONAL_NEON -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/c -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/core -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/codec -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/config -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/effects -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/effects/gradients -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/fonts -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/image -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/images -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/lazy -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/ports -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/sksl -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/utils -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/xml -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/sfnt -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/gpu -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/opts -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/pathops -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/android -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/c -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/core -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/codec -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/lazy -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/utils/mac -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/utils/win -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/pathops -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/private -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/config -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/effects -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/images -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/pipe -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/ports -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/utils -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/xml -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/gpu -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/include/gpu/gl -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/third_party/externals/expat/lib -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/third_party/externals/freetype/include -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/third_party/gif -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/third_party/externals/libjpeg-turbo -I jni/../../../core-legacy/targets/android/skia/../../../externals/jpeg -I jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/third_party/libpng -I jni/../../../core-legacy/targets/android/jpeg/../../../externals/jpeg -I jni/../../../core-legacy/targets/android/jpeg/../../../externals/skia/upstream.patched/third_party/externals/libjpeg-turbo -I /home/konradb/Android/android-ndk-r10e_32/sources/android/cpufeatures -I /home/konradb/Android/android-ndk-r10e_32/sources/cxx-stl/llvm-libc++/libcxx/include -I /home/konradb/Android/android-ndk-r10e_32/sources/cxx-stl/llvm-libc++/../llvm-libc++abi/libcxxabi/include -I /home/konradb/Android/android-ndk-r10e_32/sources/cxx-stl/llvm-libc++/../../android/support/include -I jni/../../../core-legacy/targets/android/skia -I /home/konradb/Android/android-ndk-r10e_32/platforms/android-14/arch-arm/usr/include -internal-isystem /usr/local/include -internal-isystem /home/konradb/Android/android-ndk-r10e_32/toolchains/llvm-3.6/prebuilt/linux-x86/bin/../lib/clang/3.6/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -Wformat -Werror=format-security -std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /home/konradb/OsmAnd/android/OsmAnd -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o /tmp/SkMiniRecorder-78d7bf.s -x c++ jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/core/SkMiniRecorder.cpp 
11:15:23.563 [ERROR] [system.err] 1.    jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/core/SkMiniRecorder.cpp:81:1: current parser token 'bool'
11:15:23.563 [ERROR] [system.err] 2.    jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/core/SkMiniRecorder.cpp:77:22: LLVM IR generation of declaration 'SkMiniRecorder::drawPath'
11:15:23.563 [ERROR] [system.err] 3.    jni/../../../core-legacy/targets/android/skia/../../../externals/skia/upstream.patched/src/core/SkMiniRecorder.cpp:77:22: Generating code for declaration 'SkMiniRecorder::drawPath'
11:15:23.565 [ERROR] [system.err] clang++: error: unable to execute command: Aborted
11:15:23.565 [ERROR] [system.err] clang++: error: clang frontend command failed due to signal (use -v to see invocation)
11:15:23.565 [ERROR] [system.err] clang version 3.6 
11:15:23.565 [ERROR] [system.err] Target: armv7-none-linux-androideabi
11:15:23.565 [ERROR] [system.err] Thread model: posix
11:15:23.565 [ERROR] [system.err] clang++: note: diagnostic msg: PLEASE submit a bug report to http://source.android.com/source/report-bugs.html and include the crash backtrace, preprocessed source, and associated run script.
11:15:23.755 [ERROR] [system.err] clang++: note: diagnostic msg: 
11:15:23.755 [ERROR] [system.err] ********************
11:15:23.755 [ERROR] [system.err] 
11:15:23.755 [ERROR] [system.err] PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
11:15:23.755 [ERROR] [system.err] Preprocessed source(s) and associated run script(s) are located at:
11:15:23.755 [ERROR] [system.err] clang++: note: diagnostic msg: /tmp/SkMiniRecorder-fb8e6f.cpp
11:15:23.755 [ERROR] [system.err] clang++: note: diagnostic msg: /tmp/SkMiniRecorder-fb8e6f.sh
11:15:23.755 [ERROR] [system.err] clang++: note: diagnostic msg: 
11:15:23.755 [ERROR] [system.err] 

Как решить проблему с:

"1: 15: 23.552[ОШИБКА] [system.err] clang ++: /s/ndk-toolchain/src/llvm-3.6/llvm/tools/clang/lib/AST/Type.cpp:1719: bool clang :: FunctionProtoType :: isNothrow (const clang:: ASTContext &, bool) const: Ошибка утверждения "EST! = EST_Unevaluated && EST! = EST_Uninstantiated". "

Я использую Ubuntu 12.04, android-21 sdk и ndk 10e

Пожалуйста, помогите,

С уважением, и спасибо, K

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...