Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Error compiling) 'to_string' is not member of 'std' - Node v8.11.3 #330

Closed
SharkSlayer opened this issue Jul 3, 2018 · 8 comments
Closed

Comments

@SharkSlayer
Copy link

Hello sir,
I'm trying to build OpenWRT Chaos Calmer 15.05 with OpenWRT nodejs packages
My build system : Ubuntu linux 16.04.1
In menuconfig, i select Languages > Node.js > Configuration -> version v8.x
After a while, i encounter this problem and i dont know how to fix it.
Can you help me ?

../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());
^
deps/v8/src/v8_base.target.mk:587: recipe for target '/home/minh-pc/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/node-v8.11.3/out/Release/obj.target/v8_base/deps/v8/src/ic/ic.o' failed
make[5]: *** [/home/minh-pc/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/node-v8.11.3/out/Release/obj.target/v8_base/deps/v8/src/ic/ic.o] Error 1
rm b7996b0bf538570a55414ede3051cb470ece29b3.intermediate
Makefile:88: recipe for target 'node' failed
make[4]: *** [node] Error 2
make[4]: Leaving directory '/home/minh-pc/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/node-v8.11.3'
Makefile:159: recipe for target '/home/minh-pc/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/node-v8.11.3/.built' failed
*

@nxhack
Copy link
Owner

nxhack commented Jul 3, 2018

Chaos Calmer, please read this document.

https://github.com/nxhack/openwrt-node-packages/blob/for-15.05/README.md

@nxhack
Copy link
Owner

nxhack commented Jul 3, 2018

Since Chaos Calmer is old, I will not do maintenance frequently in the future.

@SharkSlayer
Copy link
Author

SharkSlayer commented Jul 3, 2018

I have MediaTek Linkit Smart 7688 and i need firmware with node js v8.x on it. Through MediaTek website they suggest me to use OpenWRT Chaos Calmer 15.05.
I follow your instructions in here :
#8 (comment)

But it doesn't work. I did exactly but got so many errors

@nxhack
Copy link
Owner

nxhack commented Jul 3, 2018

OK I will check it later. Please wait.

@nxhack
Copy link
Owner

nxhack commented Jul 5, 2018

Hi @SharkSlayer

The build will succeed with this procedure.
https://github.com/nxhack/openwrt-node-packages/wiki

But I have not tested whether it will run on the target machine. Because I do not have a target machine.
Please let me know if it works.

@SharkSlayer
Copy link
Author

SharkSlayer commented Jul 6, 2018

Thanks for your reply @nxhack
Did you build it with node.js 8.x ?
Well, It worked with node.js 6.x for me but not 8.x
I'll try it again.

@nxhack
Copy link
Owner

nxhack commented Jul 6, 2018

https://github.com/nxhack/openwrt-node-packages/wiki
refer: 7-1. Select optional packages of node.js custom feed.

@SharkSlayer
Copy link
Author

SharkSlayer commented Jul 7, 2018

Thank you very much @nxhack , it works.
Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants