Re: hello world execute on openwrt
Thanks, I have resolved this problem: nim -d:release --opt=size --passL:'-s -static' --cpu:arm --os:linux --gcc.exe:arm-openwrt-linux-gcc --gcc.linkerexe:arm-openwrt-linux-gcc c hello.nim Run
Re: hello world execute on openwrt
Or you can use Zig (it can act as a C compiler because of libclang and includes musl for a lot of architectures so you can easily cross compile) so you wouldn't have to compile GCC yourself.
Re: hello world execute on openwrt
I've had a similar problem when developing on Xilinx hardware (ZedBoard) using Rust & Cargo. The error was due to linking against a different version of libc that was installed on my board (as @Yardanico said). The solution I chose was to use musl-gcc in order to statically link the libc.
Re: hello world execute on openwrt
It's not about not finding the binary though - that error can also occur if the binary is made for a different architecture than the current one.
Re: hello world execute on openwrt
Well it isn't able to find the hello executable. Did you copy it over? Did you copy it over to the place you thought you did? Are you standing in the correct folder?