nxhack / openwrt-node-packages

OpenWrt Project Node.js packages. v18.x TLS and v20.x LTS
GNU General Public License v2.0
257 stars 99 forks source link

BAD NEWS: remove mips support #464

Closed nxhack closed 3 years ago

nxhack commented 5 years ago

Upstream of node.js, support for mips seems to be removed in the future. I plan to maintain mips as much as possible but may not be able to do so depending on the circumstances.

https://github.com/nodejs/node/issues/26179 https://github.com/nodejs/node/pull/26192

nxhack commented 5 years ago

The mips support has been removed in v12.0.0. I'm reverting the deleted codes.

nxhack commented 5 years ago

Modules that will break in Node 12

node-authenticate-pam ~~node-bignum node-bleacon~~ node-bluetooth-hci-socket node-ejdb (No Longer Maintained) node-ffi (use ffi-napi) node-fuse-bindings node-hashtable (use megahash) node-mdns node-mknod (use fs) node-modbus (No Longer Maintained) ~~node-net-ping node-expat node-hid node-hid-stream node-red-contrib-modbus node-openzwave-shared node-pi-spi node-pty node-rpio node-sleep node-sqlite3 node-statvfs node-usb node-websocket~~

~~node-serialport-bindings node-serialport node-arduino-firmata
node-firmata node-johnny-five node-node-enocean-utils~~

~~swig libmraa libupm~~

p3x-robot commented 5 years ago

how can you are saying nodejs 12 dropped mips, i just built mt7621 (ramips): https://cdn.corifeus.com/openwrt/18.06.3/packages/mipsel_24kc/node/

and it works. how come it still works?

p3x-robot commented 5 years ago

ok, got it you have the patches for mips. thanks

nxhack commented 5 years ago

The cross compilation environment is broken in v12.5.0. The situation is difficult.

p3x-robot commented 5 years ago

ok, i am happy, that i am buying a new linksys wrt32x, because i will not use the d-link dir 860d b1 anymore, it looks like the last was in nodejs 12.4.0 for the ramips build....

p3x-robot commented 5 years ago

that is why you reverted to 12.4.0?

nxhack commented 5 years ago

@p3x-robot As it was likely to take time to support v12.5.0, I made a dedicated branch. For that purpose, I restored the master branch and the development branch. It is the latest version that v12.4.0 is supported.

nxhack commented 5 years ago

build: add mips64el support

https://github.com/nodejs/node/pull/27992

p3x-robot commented 5 years ago

so it will still not support ramips mt7621 , right?

p3x-robot commented 5 years ago

it is only for mipsel64 i suppose.

nxhack commented 5 years ago

Exactly. mips32 will not be considered much. I will try my best as much as possible.

nxhack commented 4 years ago

After V8-v7.9, mips(eb) and mips64(eb) will not work.

alenteria commented 4 years ago

I successfully compiled nodejs v10 for mipsel_24kc (newifi D2). But the only problem I have right now is it's really slow. CPU and ram consumptions are at less than 50% only. Simple http ajax request, express response at 5-6 seconds.

nxhack commented 4 years ago

Verified with version 14.12.0. Unfortunately, I confirmed that it does not work on mips(eb) and mips64(eb).