-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
how the official linux binary is built? #17855
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
Comments
Hi! This issue tracker is for bugs and issues found within Node.js core. Thanks! |
Sorry for filing this in wrong place and thanks for pointing out where to ask my question. |
@starkwang @shyhpei This doesn't look too far away from Node core..
Lines 918 to 940 in 81c2b59
|
FTR, also answered in nodejs/help#1039. |
Version: 6.11.5
Platform: Linux fcdev 4.13.13-300.fc27.x86_64 #1 SMP Wed Nov 15 15:47:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I am trying to build nodejs binary on a Fedora 27 host, using --fully-static, because my target host is Fedora Core 6. This is how I build:
./configure --fully-static
make -j
The compile/link would go thru and generate a node binary, with some warnings similar to the one below:
dso_dlfcn.c:(.text+0x12): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/syen/src/node-v6.11.5/out/Release/obj.target/node/src/node.o: In function `node::InitGroups(v8::FunctionCallbackInfov8::Value const&)':
But I could run this node binary just fine on the Fedora 27 build host. But when I copy node binary to my target Fedora 6 host and run it, it would segment fault immediately without even get to the ">" prompt.
The weird thing is, the official linux binary from nodejs.org site would have no problem running on my target Fedora 6 host. I can get a ">" prompt, and I can execute my javascript with this binary.
So, my questions:
I've looked up and down on nodejs website and I couldn't find any documentation on how the official binary was built...
The text was updated successfully, but these errors were encountered: