Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Unable to build v0.12 branch for Android #8567

Closed
@javihernandez

Description

@javihernandez

When trying to build v0.12 branch for Android I'm getting the following error:

arm-linux-androideabi-g++ '-DOPENSSL_NO_SSL2=1' '-D_GLIBCXX_USE_C99_MATH' '-DV8_TARGET_ARCH_ARM' '-DCAN_USE_ARMV7_INSTRUCTIONS' '-DCAN_USE_VFP3_INSTRUCTIONS' '-DCAN_USE_VFP32DREGS' '-DENABLE_DISASSEMBLER' '-DENABLE_HANDLE_ZAPPING' -I../deps/v8 -Wall -Wextra -Wno-unused-parameter -mfpu=vfpv3 -marm -ffunction-sections -fdata-sections -fno-tree-vrp -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O2 -fno-rtti -fno-exceptions -MMD -MF /home/jhernandez/git/github/node/out/Release/.deps//home/jhernandez/git/github/node/out/Release/obj.target/v8_libbase/deps/v8/src/base/platform/platform-posix.o.d.raw -c -o /home/jhernandez/git/github/node/out/Release/obj.target/v8_libbase/deps/v8/src/base/platform/platform-posix.o ../deps/v8/src/base/platform/platform-posix.cc ../deps/v8/src/base/platform/platform-posix.cc: In static member function 'static int v8::base::OS::GetCurrentThreadId()': ../deps/v8/src/base/platform/platform-posix.cc:327:35: error: 'SYS_gettid' was not declared in this scope return static_cast(syscall(SYS_gettid)); ^ ../deps/v8/src/base/platform/platform-posix.cc:329:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[1]: **\* [/home/jhernandez/git/github/node/out/Release/obj.target/v8_libbase/deps/v8/src/base/platform/platform-posix.o] Error 1

After looking at the offending block of code I replaced ANDROID with ANDROID on line 324 to workaround this issue. Then, the compilation ended fine.

Seems to be a problem on the build toolchain (ANDROID is not defined), but I'm not sure how to properly fix that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions