I've painlessly used the "How I Start" ( http://howistart.org/posts/nim/1/index.html ) build instructions link from the Nim doc page a bunch of times on ARM devices over the past few years. But, just now when I really need it to work, I'm having trouble.
at the last step:
./koch boot -d:release
I get:
: execution of an external program failed: 'gcc -c -w -O3 -fno-strict-aliasing -I/home/debian/work/Nim/lib -o /home/debian/work/Nim/nimcache/r_linux_arm/stdlib_system.c.o /home/debian/work/Nim/nimcache/r_linux_arm/stdlib_system.c'
If I run that command all by itself, it succeeds. But ./koch tools
also fails with : execution of an external program failed: 'gcc -c -w -pthread -O3 -fno-strict-aliasing -I/home/debian/work/Nim/lib -o /home/debian/.cache/nim/nimsuggest_r/linenoise.c.o /home/debian/work/Nim/lib/wrappers/linenoise/linenoise.c'
Ultimately, just cross-compiling from linux would be fine. But, that resulted in
/lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by ./myapp
when I tried to run it on the beaglebone, which may be the easier issue to solve, now.
any ideas? Which of these issues is easier to solve? thanks.
Not sure how helpful this will be but I just enabled ARM binary builds in nightlies using DockCross.
I do have to make some changes to nim.cfg for this. Check out this script which does all the work.
Thanks!, that looked promising at the start. but, the arm7 version of "nim" or "nimble" on the beaglebone responds only with
Illegal instruction
I'll try the arm6 version next
Looks like DockCross has a special image just for the beaglebone - dockcross/linux-armv7a.
You could try the nightlies script and use that image instead and see if it works for you as is.
I just made an armv7a build on 0.19.6 for test purposes. Please let me know if it works as expected. I plan making it a part of nightlies soon.
https://bintray.com/genotrance/binaries/download_file?file_path=nim-0.19.6-linux_armv7a.tar.xz