GithubHelp home page GithubHelp logo

编译不通过 about dumpdex HOT 8 CLOSED

wrbug avatar wrbug commented on August 23, 2024
编译不通过

from dumpdex.

Comments (8)

JuneLeGency avatar JuneLeGency commented on August 23, 2024

怎么解的? 我是报#include <asm/hwcap.h> 这个

from dumpdex.

WrBug avatar WrBug commented on August 23, 2024

升级下 ndk版本

from dumpdex.

JuneLeGency avatar JuneLeGency commented on August 23, 2024

我的已经是r17 了

from dumpdex.

WrBug avatar WrBug commented on August 23, 2024

日志贴出来看看

from dumpdex.

JuneLeGency avatar JuneLeGency commented on August 23, 2024
Build command failed.
Error while executing process /Users/legency/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/legency/StudioProjects/personal/dumpDex/app/.externalNativeBuild/cmake/debug/x86_64 --target nativeDump}
[1/8] Building CXX object CMakeFiles/nativeDump.dir/src/main/cpp/native.cpp.o
[2/8] Building C object CMakeFiles/nativeDump.dir/src/main/cpp/dlopen.c.o
[3/8] Building C object CMakeFiles/nativeDump.dir/src/main/cpp/inlineHook.c.o
[4/8] Building C object CMakeFiles/nativeDump.dir/src/main/cpp/relocate.c.o
[5/8] Building CXX object CMakeFiles/nativeDump.dir/src/main/cpp/And64InlineHook.cpp.o
[6/8] Building CXX object CMakeFiles/nativeDump.dir/src/main/cpp/util/deviceutils.cpp.o
[7/8] Building CXX object CMakeFiles/nativeDump.dir/src/main/cpp/util/fileutils.cpp.o
FAILED: /Users/legency/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang  --target=x86_64-none-linux-android --gcc-toolchain=/Users/legency/Library/Android/sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/darwin-x86_64 --sysroot=/Users/legency/Library/Android/sdk/ndk-bundle/sysroot -DnativeDump_EXPORTS  -isystem /Users/legency/Library/Android/sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/nativeDump.dir/src/main/cpp/inlineHook.c.o -MF CMakeFiles/nativeDump.dir/src/main/cpp/inlineHook.c.o.d -o CMakeFiles/nativeDump.dir/src/main/cpp/inlineHook.c.o   -c /Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/inlineHook.c
In file included from /Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/inlineHook.c:19:
/Users/legency/Library/Android/sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi/asm/ptrace.h:21:10: fatal error: 'asm/hwcap.h' file not found
#include <asm/hwcap.h>
         ^~~~~~~~~~~~~
1 error generated.
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/dlopen.c:126:55: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
        return STUBS.quick_on_stack_replace(filename, (void *)flag,
                                                      ^
1 warning generated.
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:239:25: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
                        value = ALIGN_PC(pc) + (instruction & 0xFF) << 2;
                                ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ~~
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:239:25: note: place parentheses around the '+' expression to silence this warning
                        value = ALIGN_PC(pc) + (instruction & 0xFF) << 2;
                                ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:243:13: warning: cast to 'uint32_t *' (aka 'unsigned int *') from smaller integer type 'unsigned int' [-Wint-to-pointer-cast]
                        value = ((uint32_t *) (ALIGN_PC(pc) + ((instruction & 0xFF) << 2)))[0];
                                 ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:371:12: warning: cast to 'uint32_t *' (aka 'unsigned int *') from smaller integer type 'unsigned int' [-Wint-to-pointer-cast]
                                addr = (uint32_t *) (ALIGN_PC(pc) + imm32);
                                       ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:374:12: warning: cast to 'uint32_t *' (aka 'unsigned int *') from smaller integer type 'unsigned int' [-Wint-to-pointer-cast]
                                addr = (uint32_t *) (ALIGN_PC(pc) - imm32);
                                       ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:579:16: warning: cast to 'uint32_t *' (aka 'unsigned int *') from smaller integer type 'unsigned int' [-Wint-to-pointer-cast]
                                                value = ((uint32_t *) (pc + imm32))[0];
                                                         ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:582:16: warning: cast to 'uint32_t *' (aka 'unsigned int *') from smaller integer type 'unsigned int' [-Wint-to-pointer-cast]
                                                value = ((uint32_t *) (pc - imm32))[0];
                                                         ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:606:18: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
        if (target_addr & 1 == 1) {
                        ^~~~~~~~
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:606:18: note: place parentheses around the '==' expression to silence this warning
        if (target_addr & 1 == 1) {
                        ^
                          (     )
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/relocate.c:606:18: note: place parentheses around the & expression to evaluate it first
        if (target_addr & 1 == 1) {
                        ^
            (              )
7 warnings generated.
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/util/deviceutils.cpp:47:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            return "_ZN3art7DexFile10OpenCommonEPKhmRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPKNS_10OatDexFileEbbPS9_PNS0_12VerifyResultE";
                   ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/util/deviceutils.cpp:50:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            return "_ZN3art7DexFile10OpenMemoryEPKhmRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPNS_6MemMapEPKNS_10OatDexFileEPS9_";
                   ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/util/deviceutils.cpp:54:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            return "_ZN3art7DexFile10OpenCommonEPKhjRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPKNS_10OatDexFileEbbPS9_PNS0_12VerifyResultE";
                   ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/util/deviceutils.cpp:58:20: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            return "_ZN3art7DexFile10OpenMemoryEPKhjRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEjPNS_6MemMapEPKNS_10OatDexFileEPS9_";
                   ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/util/deviceutils.cpp:62:12: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
    return "";
           ^
/Users/legency/StudioProjects/personal/dumpDex/app/src/main/cpp/util/deviceutils.cpp:76:65: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
        __android_log_print(ANDROID_LOG_ERROR, TAG, "size =%u", size);
                                                           ~~   ^~~~
                                                           %zu
6 warnings generated.
ninja: build stopped: subcommand failed.

from dumpdex.

ray0807 avatar ray0807 commented on August 23, 2024

编译不通过 同样的问题

from dumpdex.

BadDeveloper2022 avatar BadDeveloper2022 commented on August 23, 2024

编译不通过 同样的问题 NDK 版本 最新17.04...

from dumpdex.

BadDeveloper2022 avatar BadDeveloper2022 commented on August 23, 2024

Windows 系统

from dumpdex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.