lang/nimrod issue: missing forward slash

Matthew Pherigo hybrid120 at gmail.com
Mon Mar 31 17:15:38 UTC 2014


Hey all,

I'm having a problem with lang/nimrod that's keeping me from doing any development at the moment. I think this is an issue created by the person who created the port (nimrod works fine on my arch linux VM), but I figured I'd check here in case anyone knows a fix.

When I try to compile anything from nimrod, the paths calls the compiler with are incorrect. For example, here is the (successful) compilation output of a program that doesn't depend on any external Libs (besides system.nim):

[matt at Chiyochan /usr/home/matt/MyProjects/Challenges-Nimrod/Mine]$ nimrod c -r hello2.nim                                                     usr/local/etc/nimrod.cfg(38, 11) Hint: added path: '/home/matt/.babel/libs/' [Path]
Hint: used config file '/etc/nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: hello2 [Processing]
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-Nimrod/Mine/nimcache/hello2.o usr/home/matt/MyProjects/Challenges-Nimrod/Mine/nimcache/hello2.c
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-Nimrod/Mine/nimcache/system.o usr/home/matt/MyProjects/Challenges-Nimrod/Mine/nimcache/system.c
clang   -o /usr/home/matt/MyProjects/Challenges-Nimrod/Mine/hello2  usr/home/matt/MyProjects/Challenges-Nimrod/Mine/nimcache/system.o usr/home/matt/MyProjects/Challenges-Nimrod/Mine/nimcache/hello2.o 
Hint: operation successful (7438 lines compiled; 3.469 sec total; 7.768MB) [SuccessX]
/usr/home/matt/MyProjects/Challenges-Nimrod/Mine/hello2 
What's your name? 
Matt
Hi, Matt!
[matt at Chiyochan /usr/home/matt/MyProjects/Challenges-Nimrod/Mine]$

However, when compiling a project that depends on external libraries, compilation completely fails:

[matt at Chiyochan /usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc]$ nimrod c -r calc1.nim 
usr/local/etc/nimrod.cfg(38, 11) Hint: added path: '/home/matt/.babel/libs/' [Path]
Hint: used config file '/etc/nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: calc1 [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/calc1.nim(3, 11) Hint: 'c' is declared but not used [XDeclaredButNotUsed]
usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/calc1.nim(3, 8) Hint: 'b' is declared but not used [XDeclaredButNotUsed]
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/calc1.o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/calc1.c
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/system.o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/system.c
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/strutils.o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/strutils.c
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/parseutils.o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/parseutils.c
clang   -o /usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/calc1  usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/parseutils.o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/strutils.o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/system.o usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/calc1.o 
clang: error: no such file or directory: 'usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/system.o'
Error: execution of an external program failed

This is driving me crazy! I can't find anything in my configuration file that has to do with these paths. Has anyone else encountered an issue like this?

--Matt


More information about the freebsd-questions mailing list