sjitech / build-nodejs-for-android

Build nodejs for android(arm,arm64,x86,x64,mipsel) perfectly and provide prebuilt binaries, and a docker image as workbench.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build error /deps/v8/src/ic/ic.cc:164:29: error: 'to_string' is not a member of 'std'

kelp404 opened this issue · comments

commented

Hello,

I can't build nodejs in the Docker. Could you help me?

cd node && git checkout v8.11.4 && build-nodejs-for-android arm64 -o ../nodejs-6.5.0-android-arm64-full  --full
  /home/devuser/ndk/std-toolchains/android-21-arm64/bin/g++ '-DV8_GYP_BUILD' '-DV8_TARGET_ARCH_ARM64' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT' '-Dv8_promise_internal_field_count' '-DV8_INTL_SUPPORT' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-D_GLIBCXX_USE_C99_MATH' -I../deps/v8 -I../. -I/home/devuser/node/out/Release/obj/gen -I../deps/v8/include -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common  -Wall -Wextra -Wno-unused-parameter -fdata-sections -ffunction-sections -O2 -fno-omit-frame-pointer -fPIE -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/devuser/node/out/Release/.deps//home/devuser/node/out/Release/obj.target/v8_base/deps/v8/src/ic/ic.o.d.raw   -c -o /home/devuser/node/out/Release/obj.target/v8_base/deps/v8/src/ic/ic.o ../deps/v8/src/ic/ic.cc
../deps/v8/src/ic/ic.cc: In member function 'void v8::internal::IC::TraceIC(const char*, v8::internal::Handle<v8::internal::Object>, v8::internal::IC::State, v8::internal::IC::State)':
../deps/v8/src/ic/ic.cc:164:29: error: 'to_string' is not a member of 'std'
     ic_info.instance_type = std::to_string(map->instance_type());
                             ^
make[1]: *** [/home/devuser/node/out/Release/obj.target/v8_base/deps/v8/src/ic/ic.o] Error 1
rm 99fee2a9201067d3d42d5073421262067967ac37.intermediate
make[1]: Leaving directory `/home/devuser/node/out'
make: *** [node] Error 2
commented
commented

Thank you. I will try to fix it.

img_2669

commented

Has anyone found the fix for this issue?

commented

Hello @Tamil-rently
I build node v8 for Android, but I can't build node v10.
I changed my job, so I will not update the repository.
https://github.com/kelp404/node-in-android/releases