build-nodejs-for-android icon indicating copy to clipboard operation
build-nodejs-for-android copied to clipboard

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

Open kelp404 opened this issue 7 years ago • 2 comments

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

kelp404 avatar Aug 27 '18 10:08 kelp404

I am cencerely sorry that I have no time to work on this now. Actually I’d tried to build 18, but due to some severe configure issues of nodejs project, it can not be simply done by any of my tricks. The only way is study nodejs configuration files.

Regards.

2018年8月27日(月) 19:22 Kelp [email protected]:

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::Handlev8::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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sjitech/build-nodejs-for-android/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AE_djGZL4JH0P1QhYlPrJL4N1hlU5Hicks5uU8hwgaJpZM4WNivs .

jjqq2013 avatar Aug 27 '18 10:08 jjqq2013

Thank you. I will try to fix it.

img_2669

kelp404 avatar Aug 27 '18 10:08 kelp404

Has anyone found the fix for this issue?

Tamil-rently avatar Jan 13 '23 12:01 Tamil-rently

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

kelp404 avatar Jan 16 '23 03:01 kelp404