You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
I'm cross-compiling nodejs 4.1.2 for mipsel and I've run into a snag trying to get a static binary image build.
At the moment our runtime MIPS environment is running an older linux built with gcc 3.4 -- but our application requires 4.9. It's a long story, but bottom line is that for the next couple of weeks I need to build with 4.9 and run in this older 3.4 environment -- if possible.
My strategy was to build nodejs with static libraries by building/making it like this:
But when I tried running a test "hello world" node app, I can see that something is not quite right. I'm not sure if I am reading the error messages right, either, because it appears that nodejs has somehow loaded libstdc++.so.6 (which I didn't think it would do, being statically linked). Further, it also appears that the so fails because it is looking for 3.4 libraries (which should be what is installed).
root@TestMachine:/var/node# node testServer.js
node: /lib/libc.so.6: version `GLIBC_2.19' not found (required by node)
node: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by node)
node: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
So maybe I need to back up for a moment and ask some questions:
is there some different/additional config option that I should be using?
is there an environment variable that I'm missing?
or is there some other way to generate a statically linked target?
The text was updated successfully, but these errors were encountered:
I'm cross-compiling nodejs 4.1.2 for mipsel and I've run into a snag trying to get a static binary image build.
At the moment our runtime MIPS environment is running an older linux built with gcc 3.4 -- but our application requires 4.9. It's a long story, but bottom line is that for the next couple of weeks I need to build with 4.9 and run in this older 3.4 environment -- if possible.
My strategy was to build nodejs with static libraries by building/making it like this:
But when I tried running a test "hello world" node app, I can see that something is not quite right. I'm not sure if I am reading the error messages right, either, because it appears that nodejs has somehow loaded libstdc++.so.6 (which I didn't think it would do, being statically linked). Further, it also appears that the
so
fails because it is looking for 3.4 libraries (which should be what is installed).So maybe I need to back up for a moment and ask some questions:
The text was updated successfully, but these errors were encountered: