I cross compiled NodeJS for ARM Linux, and it seems to work flawlessly. Except it prints the error message /usr/bin/node: '/usr/bin/node' is not an ELF executable for ARM. It only prints it when actually executing something, e.g. node --version works fine, without an error message.
I ran strace node dummy-script.js and could see that NodeJS does some kind of fork then opens itself (/usr/bin/node) and afterwards is printing the mentioned error, but afterwards it keeps running and seems to work flawlessly. I guess node tries to do some kind of self exec?
Any ideas on that? Or maybe a hint where the code with the described behaviour can be found, yet I could not find it myself.
I cross compiled NodeJS for ARM Linux, and it seems to work flawlessly. Except it prints the error message
/usr/bin/node: '/usr/bin/node' is not an ELF executable for ARM. It only prints it when actually executing something, e.g.node --versionworks fine, without an error message.I ran
strace node dummy-script.jsand could see that NodeJS does some kind of fork then opens itself (/usr/bin/node) and afterwards is printing the mentioned error, but afterwards it keeps running and seems to work flawlessly. I guess node tries to do some kind of self exec?Any ideas on that? Or maybe a hint where the code with the described behaviour can be found, yet I could not find it myself.