-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Cross-compiling Node for Mips32/OpenWRT fails with "assembler.cc:(.text._ZN2v88internalL23f32_nearest_int_wrapperEPf+0x18): undefined reference to `nearbyintf'" #7316
Comments
It looks like uclibc (or at least the version you are linking against) does not support |
FWIW it looks like there may be a patch to fix this in uclibc. |
Thanks for the suggestions! I'll try patching uclibc. |
Hi @mscdex ! Did you actually find a solution for this? Because I am in the exact same procedure! Thanks! |
@mitsos1os I've never used uclibc, just musl. If you want to continue using uclibc, then you need to upgrade your copy or at least patch your copy of uclibc using the link I gave. |
@mitsos1os The extent of my use of musl is building node fully statically (for the original Chromecast) so that I didn't have to worry about dependencies and needing other shared libraries -- it made things simpler. However the drawback with that approach is that you can't load node addons, but I didn't care about that. If you want to continue down the musl path, you can try following the steps here. I should note that I believe part 3 of step 3 (editing |
@mscdex Thank you for your support and guidance. I will give it a try when I can |
Closing due to inactivity. For people who have the same issue, try switching to uclibc-ng or musl. |
@mitsos1os Hi, I'm apparently in a very similar situation as you: trying to compile Node for a big endian 32-bit MIPS device with no hardware nor software FPU. Did you ever get this working? I've gathered that running a modern version of Node on a MIPS (or ARM) device with no FPU is very hard: http://stackoverflow.com/questions/34871072/how-to-compile-node-v4-2-4-with-armv7-without-fpu At that same link and a couple others, it sounds like using Node v0.10.x does work well on our target devices (SSL and all), and that perhaps the most promising way to go about building it is specified at http://wiki.linino.org/doku.php?id=wiki:nodepackage, which has you start with building Node for OpenWRT via the instructions at http://wiki.linino.org/doku.php?id=wiki:nodejsbuild. Have you found a more effective way to solve this problem? If the Linino instructions fail for me, I'll probably try compiling a custom kernel that does have soft FPU support, then try something like what you did above -- try using a modern version of Node. Thanks! |
Hi @elimisteve, unfortunately I haven't successfully compiled latest node versions (>4) without fpu. These versions require at least a kernel with software FPU emulation. |
I am trying to cross-compile Node for Mips32 using the OpenWRT toolchain. The target architecture is ar71xx with NAND. I am following the instructions here.
I am using the following config:
I get the following error:
Here are the contents of config.gypi:
Is this a known issue or I am doing something wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: