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 }}
Repository navigation
arm and LD_LIBRARY_PATH (ld-linux-armhf.so.3: No such file or directory) #7770
I make a cross-compiled version of NodeJS 6.3.0
Build machine: Ubuntu 14.10, Yocto poky
Target machine: Raspberry Pi2 (arm armv7a vfp thumb neon callconvention-hard vfpv4 cortexa7 vfp-vfpv4-neon)
Problem:
/lib/ld-linux-armhf.so.3: No such file or directory
It tries to find this library in the root of Build machine instead of defined sysroot directory.
My investigation shows that displayed LD_LIBRARY_PATH is not LD_LIBRARY_PATH variable.
It is not a bug, but a feature to show a command before execution. But it confuses.
My problem (ld-linux-armhf.so.3: No such file or directory) is related with icupkg compiled for ARM and executed on x86 machine.
Make sure the CC.host and CXX.host environment variables point to compilers for the host machine, not the target machine. make V=1 should print them when compiling icupkg.
have the same issue, but I'm trying to cross compile QT application for ARM7 lubuntu using raspberry pi3 toolchain via visual GDB, the executable generated and work normally, but the debugging through with break :(
Activity
xbolshe commentedon Jul 17, 2016
It looks like the same issue: #7491 (comment)
xbolshe commentedon Jul 17, 2016
Source code point: https://github.com/nodejs/node/blob/master/tools/gyp/pylib/gyp/generator/make.py#L919
xbolshe commentedon Jul 17, 2016
My investigation shows that displayed LD_LIBRARY_PATH is not LD_LIBRARY_PATH variable.
It is not a bug, but a feature to show a command before execution. But it confuses.
My problem (ld-linux-armhf.so.3: No such file or directory) is related with icupkg compiled for ARM and executed on x86 machine.
xbolshe commentedon Jul 17, 2016
Funny but ARM is selected on x86 build machine in Yocto environment:
If I run ./configure from a command line, host_arch = x64 is detected.
Need to add an option to setup host_arch for cross-compiling.
xbolshe commentedon Jul 17, 2016
After host_arch = x64 selection CC.host is still ARM:
xbolshe commentedon Jul 17, 2016
After applying a workaround have new problem with -m32 added somewere:
bnoordhuis commentedon Jul 17, 2016
Have you seen #7731?
xbolshe commentedon Jul 17, 2016
@bnoordhuis It is not my case. My problem was related with V8.
Now I have:

I will try to make a pull request with changes to simplify cross-compiling process.
BR,
xbolshe
bnoordhuis commentedon Jul 18, 2016
Okay, I'll close the issue for now.
xbolshe commentedon Jul 18, 2016
PR: #7787
JavaCS3 commentedon Jan 17, 2018
I met the same issue when I cross compiling nodejs for arm. It use icupkg, however icupkg cannot run on x86 platform. So compilation is failed.
bnoordhuis commentedon Jan 17, 2018
Make sure the
CC.hostandCXX.hostenvironment variables point to compilers for the host machine, not the target machine.make V=1should print them when compiling icupkg.JavaCS3 commentedon Jan 18, 2018
@bnoordhuis How to set
CC.hostandCXX.hostto the hostgccandg++?export CC_host="gcc"exportCXX_host="g++"?amtash commentedon Oct 31, 2018
have the same issue, but I'm trying to cross compile QT application for ARM7 lubuntu using raspberry pi3 toolchain via visual GDB, the executable generated and work normally, but the debugging through with break :(