Cocos code idez,执行package to apk的时候发生错误,啥原因

In file included from /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/…/…/android/support/include/locale.h:33:
/Users/luochuanting/Documents/android-ndk-r9d/platforms/android-9/arch-arm/usr/include/locale.h:55:1: warning: empty struct has size 0 in C, size 1 in C++ -Wextern-c-compat]
struct lconv { };
^
Compile++ thumb: cocos_network_static <= WebSocket.cpp
While deleting: label %init.check
Use still stuck around after Def is destroyed: br i1 %guard.uninitialized, label %init.check, label %init.end, !dbg
Assertion failed: (use_empty() && “Uses remain when a value is destroyed!”), function ~Value, file /Volumes/data/ndk-toolchain/src/llvm-3.4/llvm/lib/IR/Value.cpp, line 92.
0 clang++ 0x0261f488 llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 792
1 clang++ 0x0262014c llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 4060
2 libsystem_platform.dylib 0x96b50deb _sigtramp + 43
3 libsystem_platform.dylib 0xffffffff _sigtramp + 1766519359
4 clang++ 0x0261f3ca llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 602
5 clang++ 0x0261f3e2 llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 626
6 clang++ 0x0261f43c llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 716
7 clang++ 0x025a9b21 llvm::cast_retty<llvm::User, llvm::Value const*>::ret_type llvm::cast<llvm::User, llvm::Value const>(llvm::Value const*) + 22257
8 clang++ 0x02487363 std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::lessstd::string, std::allocator<std::pair<std::string const, std::string> > >::_M_insert_unique(std::_Rb_tree_iterator<std::pair<std::string const, std::string> >, std::pair<std::string const, std::string> const&) + 21875
9 clang++ 0x021dc6c6 llvm::SmallVectorTemplateBase<std::pair<llvm::DomTreeNodeBasellvm::BasicBlock, __gnu_cxx::__normal_iterator<llvm::DomTreeNodeBasellvm::BasicBlock**, std::vector<llvm::DomTreeNodeBasellvm::BasicBlock, std::allocator<llvm::DomTreeNodeBasellvm::BasicBlock> > > >, false>::grow(unsigned long) + 29878
10 clang++ 0x020f2cad llvm::cast_retty<llvm::DbgValueInst, llvm::User
>::ret_type llvm::cast<llvm::DbgValueInst, llvm::User>(llvm::User*) + 3149
11 clang++ 0x0257ba2f void* llvm::object_creator<llvm::LeakDetectorImpl >() + 53439
12 clang++ 0x0257bdec void* llvm::object_creator<llvm::LeakDetectorImpl >() + 54396
13 clang++ 0x0257c062 void* llvm::object_creator<llvm::LeakDetectorImpl >() + 55026
14 clang++ 0x0029f5a2 void llvm::ViewGraphclang::serialization::ModuleManager(clang::serialization::ModuleManager const&, llvm::Twine const&, bool, llvm::Twine const&, llvm::GraphProgram::Name) + 8722
15 clang++ 0x00466d73 llvm::SmallVectorTemplateBase<clang::CodeGen::CallArg, false>::grow(unsigned long) + 13139
16 clang++ 0x004fa445 clang::operator==(clang::specific_attr_iterator<clang::ARMInterruptAttr, llvm::SmallVector<clang::Attr*, 2u> >, clang::specific_attr_iterator<clang::ARMInterruptAttr, llvm::SmallVector<clang::Attr*, 2u> >) + 949
17 clang++ 0x000a11e4 llvm::SmallVectorTemplateBase<clang::CharSourceRange, false>::grow(unsigned long) + 6196
18 clang++ 0x00464654 llvm::SmallVectorTemplateBase<clang::CodeGen::CallArg, false>::grow(unsigned long) + 3124
19 clang++ 0x000a19d5 llvm::SmallVectorTemplateBase<clang::CharSourceRange, false>::grow(unsigned long) + 8229
20 clang++ 0x00067631 std::vector<clang::CompilerInstance*, std::allocatorclang::CompilerInstance* >::_M_insert_aux(gnu_cxx::normal_iterator<clang::CompilerInstance**, std::vector<clang::CompilerInstance*, std::allocatorclang::CompilerInstance* > >, clang::CompilerInstance* const&) + 29633
21 clang++ 0x0000c23a std::_Rb_tree<std::string, std::string, std::_Identitystd::string, std::lessstd::string, std::allocatorstd::string >::_M_erase(std::_Rb_tree_nodestd::string*) + 4234
22 clang++ 0x000022de
23 clang++ 0x0000a403 std::vector<std::string, std::allocatorstd::string >::operator=(std::vector<std::string, std::allocatorstd::string > const&) + 12707
24 clang++ 0x00001e35
Stack dump:
0. Program arguments: /Users/luochuanting/Documents/android-ndk-r9d/toolchains/llvm-3.4/prebuilt/darwin-x86/bin/clang++ -cc1 -triple thumbv5e-none-linux-androideabi -S -disable-free -main-file-name Runtime.cpp -mrelocation-model pic -pic-level 1 -relaxed-aliasing -fmath-errno -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu arm1022e -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -target-abi aapcs-linux -msoft-float -mfloat-abi soft -backend-option -arm-enable-ehabi -backend-option -arm-enable-ehabi-descriptors -target-linker-version 127.2 -g -ffunction-sections -coverage-file /var/folders/gl/01pt367d7bb5mc_myj028_4r0000gn/T/Runtime-fa6405.s -resource-dir /Users/luochuanting/Documents/android-ndk-r9d/toolchains/llvm-3.4/prebuilt/darwin-x86/bin/…/lib/clang/3.4 -dependency-file ./obj/local/armeabi/objs/cocos2dlua_shared/
/
/Classes/runtime/Runtime.o.d -MT ./obj/local/armeabi/objs/cocos2dlua_shared///Classes/runtime/Runtime.o -MP -D NDEBUG -D ANDROID -D USE_FILE32API -D __STDC_LIMIT_MACROS=1 -D CC_ENABLE_CHIPMUNK_INTEGRATION=1 -D NDEBUG -I jni/…/…/Classes/protobuf-lite -I jni/…/…/Classes/runtime -I jni/…/…/Classes -I /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/libcxx/include -I /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/…/gabi++/include -I /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/…/…/android/support/include -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/…/…/…/external/lua/tolua -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/…/…/…/external/lua/luajit/include -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/…/external -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/auto -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/manual -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/lua/luajit/prebuilt/android/…/…/include -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/extensions/… -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/extensions/GUI/CCControlExtension -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/extensions/GUI/CCScrollView -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//. -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//./. -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//./platform/android -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//./…/external/tinyxml2 -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//./…/external/unzip -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//./…/external/chipmunk/include/chipmunk -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//./…/external/xxhash -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//./…/external/nslog -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/websockets/prebuilt/android/…/…/include/android -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//network/… -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//editor-support/cocosbuilder/… -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//editor-support/cocosbuilder/…/…/… -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//editor-support/cocostudio/… -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//editor-support/cocostudio/…/…/…/external -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//editor-support/spine/… -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//audio/android/…/include -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/curl/prebuilt/android/…/…/include/android -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/Box2D/… -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/freetype2/prebuilt/android/…/…/include/android -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/freetype2/prebuilt/android/…/…/include/android/freetype2 -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/chipmunk/include/chipmunk -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//platform/android -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//ui/… -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//ui/…/editor-support -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/png/prebuilt/android/…/…/include/android -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/jpeg/prebuilt/android/…/…/include/android -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/tiff/prebuilt/android/…/…/include/android -I /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external/webp/prebuilt/android/…/…/include/android -I /Users/luochuanting/Documents/android-ndk-r9d/sources/android/cpufeatures -I jni -I /Users/luochuanting/Documents/android-ndk-r9d/platforms/android-9/arch-arm/usr/include -internal-isystem /usr/local/include -internal-isystem /Users/luochuanting/Documents/android-ndk-r9d/toolchains/llvm-3.4/prebuilt/darwin-x86/bin/…/lib/clang/3.4/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Os -Wno-psabi -Wformat -Werror=format-security -Wno-deprecated-declarations -std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -mllvm -disable-global-ctor-const-promotion -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -fno-cxx-missing-return-semantics -o /var/folders/gl/01pt367d7bb5mc_myj028_4r0000gn/T/Runtime-fa6405.s -x c++ jni/…/…/Classes/runtime/Runtime.cpp

  1. parser at end of file
  2. Per-function optimization
  3. Running pass ‘Simplify the CFG’ on function ‘@_Z12startRuntimev
    1 warning generated.
    Compile++ thumb: cocosbuilder_static <= CCBAnimationManager.cpp
    Compile++ thumb: cocosbuilder_static <= CCBFileLoader.cpp
    clang++: error: unable to execute command: Illegal instruction: 4
    clang++: error: clang frontend command failed due to signal (use -v to see invocation)
    clang version 3.4 (https://bitbucket.org/loganchien/clang c34bb12af3af42f671296cdb978b34b931062d2a) (https://bitbucket.org/loganchien/llvm d09f2eff406d17c86d51db7660bd374cf092e6ed)
    Target: armv5te-none-linux-androideabi
    Thread model: posix
    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.
    In file included from /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//editor-support/cocosbuilder/CCBAnimationManager.cpp:11:
    In file included from /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/libcxx/include/sstream:174:
    In file included from /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:131:
    In file included from /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/libcxx/include/ios:216:
    In file included from /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:21:
    In file included from /Users/luochuanting/Documents/android-ndk-r9d/sources/cxx-stl/llvm-libc++/…/…/android/support/include/locale.h:33:
    /Users/luochuanting/Documents/android-ndk-r9d/platforms/android-9/arch-arm/usr/include/locale.h:55:1: warning: empty struct has size 0 in C, size 1 in C++ -Wextern-c-compat]
    struct lconv { };
    ^
    clang++: error: unable to execute command: Illegal instruction: 4
    clang++: note: diagnostic msg: Error generating preprocessed source(s).
    make: *** Error 254
    make: *** Waiting for unfinished jobs…
    1 warning generated.
    make: Leaving directory `/Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android’
    Runing command: compile
    Building mode: debug
    building native
    NDK build mode: release
    The Selected NDK toolchain version was 4.8 !
    running: ‘/Users/luochuanting/Documents/android-ndk-r9d/ndk-build -C /Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android -j3 NDK_MODULE_PATH=/Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x:/Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/:/Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/external:/Users/luochuanting/Documents/cocos/TestLuaGame/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/scripting’

Error running command, return code: 2

使用哪一个版本引擎

我也出现了这个错误
有解决方法吗?:10: