I get the following error trying to compile nimble in Ubuntu 16.04 in a BeagleBone Black:
root@arm:/devel/nimble# nim -d:release c -r src/nimble install
.
.
.
nimble.nim(822, 68) Hint: simpleGetOrDefault({}(options.nimbleData["reverseDeps"], [pkg.name]), pkg.version) --> 'getOrDefault({}(options.nimbleData["reverseDeps"], [pkg.name]), pkg.version)' [Pattern]
nimble.nim(822, 58) Hint: simpleGetOrDefault(options.nimbleData["reverseDeps"], pkg.name) --> 'getOrDefault(options.nimbleData["reverseDeps"], pkg.name)' [Pattern]
Error: execution of an external program failed: 'gcc -c -w -O3 -fno-strict-aliasing -I/opt/Nim/lib -o /mnt/sdcard/devel/nimble/src/nimcache/nimble_nimble.o /mnt/sdcard/devel/nimble/src/nimcache/nimble_nimble.c'
FAILURE: Build failed for package: nimble
Error: execution of an external program failed: '/mnt/sdcard/devel/nimble/src/nimble install'
root@arm:/devel/nimble# nim --version
Nim Compiler Version 0.13.1 (2016-05-03) [Linux: arm]
Copyright (c) 2006-2016 by Andreas Rumpf
git hash: c876b304ba72e93dac4737dd98f003f9ee94d9b8
active boot switches: -d:release
root@arm:/devel/nimble# gcc --version
gcc (Ubuntu/Linaro 5.3.1-14ubuntu2) 5.3.1 20160413
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
yes, it apears to compile correctly
root@arm:/devel/nimtest# cat hello.nim
echo "hello world"
root@arm:/devel/nimtest# nim c -r hello.nim
Hint: system [Processing]
Hint: hello [Processing]
Hint: [Link]
Hint: operation successful (10121 lines compiled; 1.726 sec total; 9.922MB; Debug Build) [SuccessX]
hello world
root@arm:/devel/nimtest#
Hrm, it seems like when Nimble is trying to compile itself it fails. Please run:
nim c src/nimble
./src/nimble install
If the first command works, and the second fails then try:
./src/nimble c src/nimble
this did the trick:
nim c src/nimble
./src/nimble install
... and I was able to install packages!
Thank you very much