Skip to content

Error Building for 32-bit #8

Open
@traceprobe

Description

I saw the current project builds for arm64-v8a, and tried to build for armeabi-v7a. But got the following error when building the project. Could you advise how to get through this?

Task :chizpurfle:externalNativeBuildRelease FAILED
Build stalker-server arm64-v8a
ninja: no work to do.
Build chizpurfle-native arm64-v8a
ninja: no work to do.
Build stalker-server armeabi-v7a
[1/3] Building C object CMakeFiles/stalker-server.dir/src/main/cpp/server/fakeeventsink.c.o
[2/3] Building CXX object CMakeFiles/stalker-server.dir/src/main/cpp/server/stalker-server.cpp.o
FAILED: /usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi24 --gcc-toolchain=/usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dstalker_server_EXPORTS -I../../../../libs/frida-core -I../../../../libs/frida-gum -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -no-canonical-prefixes -fPIC -ffunction-sections -fdata-sections -Wall -Os -pipe -g3 -fno-stack-protector -fPIC -fPIE -funwind-tables -fno-exceptions -fno-rtti -Oz -DNDEBUG -fPIC -MD -MT CMakeFiles/stalker-server.dir/src/main/cpp/server/fakeeventsink.c.o -MF CMakeFiles/stalker-server.dir/src/main/cpp/server/fakeeventsink.c.o.d -o CMakeFiles/stalker-server.dir/src/main/cpp/server/fakeeventsink.c.o -c /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/fakeeventsink.c
In file included from /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/fakeeventsink.c:9:
In file included from /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/fakeeventsink.h:10:
../../../../libs/frida-gum/frida-gum.h:5865:3: error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../libs/frida-gum/frida-gum.h:4565:103: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (GStaticAssertCompileTimeAssertion, COUNTER)[(expr) ? 1 : -1] G_GNUC_UNUSED
^~~~~~~~~~~~~~~
1 error generated.
FAILED: /usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi24 --gcc-toolchain=/usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dstalker_server_EXPORTS -I../../../../libs/frida-core -I../../../../libs/frida-gum -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -no-canonical-prefixes -fPIC -ffunction-sections -fdata-sections -Wall -Os -pipe -g3 -fno-stack-protector -fPIC -fPIE -funwind-tables -fno-exceptions -fno-rtti -Oz -DNDEBUG -fPIC -MD -MT CMakeFiles/stalker-server.dir/src/main/cpp/server/stalker-server.cpp.o -MF CMakeFiles/stalker-server.dir/src/main/cpp/server/stalker-server.cpp.o.d -o CMakeFiles/stalker-server.dir/src/main/cpp/server/stalker-server.cpp.o -c /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp
In file included from /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp:10:
../../../../libs/frida-gum/frida-gum.h:5865:3: error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../libs/frida-gum/frida-gum.h:4565:103: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (GStaticAssertCompileTimeAssertion, COUNTER)[(expr) ? 1 : -1] G_GNUC_UNUSED
^~~~~~~~~~~~~~~
/home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp:607:78: warning: format specifies type 'void *' but the argument has type 'GumAddress' (aka 'unsigned l
ong') [-Wformat]
LOGD("transformed block in module %s %p", details->name, GUM_ADDRESS(block_address));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
%lu
../../../../libs/frida-gum/frida-gum.h:20147:24: note: expanded from macro 'GUM_ADDRESS'
#define GUM_ADDRESS(a) ((GumAddress) GPOINTER_TO_SIZE (a))
^
/home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp:26:67: note: expanded from macro 'LOGD'
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,VA_ARGS)
^~~~~~~~~~~
/home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp:611:77: warning: shift count >= width of type [-Wshift-count-overflow]
(GUM_ADDRESS(g_str_hash(details->name)) << 32) ^
^ ~~
../../../../libs/frida-gum/frida-gum.h:4879:51: note: expanded from macro 'GUINT_TO_POINTER'
#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
^
2 warnings and 1 error generated.
ninja: build stopped: subcommand failed.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':chizpurfle:externalNativeBuildRelease'.

Build command failed.
Error while executing process /usr/lib/android-sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/.externalNativeBuild/cmake/release/armeabi-v7a --target stalker-server}
[1/3] Building C object CMakeFiles/stalker-server.dir/src/main/cpp/server/fakeeventsink.c.o
[2/3] Building CXX object CMakeFiles/stalker-server.dir/src/main/cpp/server/stalker-server.cpp.o
FAILED: /usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi24 --gcc-toolchain=/usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dstalker_server_EXPORTS -I../../../../libs/frida-core -I../../../../libs/frida-gum -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -no-canonical-prefixes -fPIC -ffunction-sections -fdata-sections -Wall -Os -pipe -g3 -fno-stack-protector -fPIC -fPIE -funwind-tables -fno-exceptions -fno-rtti -Oz -DNDEBUG -fPIC -MD -MT CMakeFiles/stalker-server.dir/src/main/cpp/server/fakeeventsink.c.o -MF CMakeFiles/stalker-server.dir/src/main/cpp/server/fakeeventsink.c.o.d -o CMakeFiles/stalker-server.dir/src/main/cpp/server/fakeeventsink.c.o -c /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/fakeeventsink.c
In file included from /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/fakeeventsink.c:9:
In file included from /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/fakeeventsink.h:10:
../../../../libs/frida-gum/frida-gum.h:5865:3: error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../libs/frida-gum/frida-gum.h:4565:103: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (GStaticAssertCompileTimeAssertion, COUNTER)[(expr) ? 1 : -1] G_GNUC_UNUSED
^~~~~~~~~~~~~~~
1 error generated.
FAILED: /usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi24 --gcc-toolchain=/usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/lib/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dstalker_server_EXPORTS -I../../../../libs/frida-core -I../../../../libs/frida-gum -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -no-canonical-prefixes -fPIC -ffunction-sections -fdata-sections -Wall -Os -pipe -g3 -fno-stack-protector -fPIC -fPIE -funwind-tables -fno-exceptions -fno-rtti -Oz -DNDEBUG -fPIC -MD -MT CMakeFiles/stalker-server.dir/src/main/cpp/server/stalker-server.cpp.o -MF CMakeFiles/stalker-server.dir/src/main/cpp/server/stalker-server.cpp.o.d -o CMakeFiles/stalker-server.dir/src/main/cpp/server/stalker-server.cpp.o -c /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp
In file included from /home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp:10:
../../../../libs/frida-gum/frida-gum.h:5865:3: error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../libs/frida-gum/frida-gum.h:4565:103: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (GStaticAssertCompileTimeAssertion, COUNTER)[(expr) ? 1 : -1] G_GNUC_UNUSED
^~~~~~~~~~~~~~~
/home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp:607:78: warning: format specifies type 'void *' but the argument has type 'GumAddress' (aka 'unsigned long') [-Wformat]
LOGD("transformed block in module %s %p", details->name, GUM_ADDRESS(block_address));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
%lu
../../../../libs/frida-gum/frida-gum.h:20147:24: note: expanded from macro 'GUM_ADDRESS'
#define GUM_ADDRESS(a) ((GumAddress) GPOINTER_TO_SIZE (a))
^
/home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp:26:67: note: expanded from macro 'LOGD'
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,VA_ARGS)
^~~~~~~~~~~
/home/usrname/factory/system_service/fantastic_beasts/chizpurfle/src/main/cpp/server/stalker-server.cpp:611:77: warning: shift count >= width of type [-Wshift-count-overflow]
(GUM_ADDRESS(g_str_hash(details->name)) << 32) ^
^ ~~
../../../../libs/frida-gum/frida-gum.h:4879:51: note: expanded from macro 'GUINT_TO_POINTER'
#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
^
2 warnings and 1 error generated.
ninja: build stopped: subcommand failed.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.3.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
14 actionable tasks: 3 executed, 11 up-to-date

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions