Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2014 12:15:35 -0500
From:      Matthew Pherigo <hybrid120@gmail.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   lang/nimrod issue: missing forward slash
Message-ID:  <C0A51891-9BF5-44DF-A466-887FB3AAD153@gmail.com>

next in thread | raw e-mail | index | archive | help
Hey all,

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

When I try to compile anything from nimrod, the paths calls the compiler wit=
h 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@Chiyochan /usr/home/matt/MyProjects/Challenges-Nimrod/Mine]$ nimrod c -=
r hello2.nim                                                     usr/local/e=
tc/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-N=
imrod/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-N=
imrod/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/MyPr=
ojects/Challenges-Nimrod/Mine/nimcache/hello2.o=20
Hint: operation successful (7438 lines compiled; 3.469 sec total; 7.768MB) [=
SuccessX]
/usr/home/matt/MyProjects/Challenges-Nimrod/Mine/hello2=20
What's your name?=20
Matt
Hi, Matt!
[matt@Chiyochan /usr/home/matt/MyProjects/Challenges-Nimrod/Mine]$

However, when compiling a project that depends on external libraries, compil=
ation completely fails:

[matt@Chiyochan /usr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc]$ n=
imrod c -r calc1.nim=20
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) Hin=
t: '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-N=
imrod/Numbers/calc/nimcache/calc1.o usr/home/matt/MyProjects/Challenges-Nimr=
od/Numbers/calc/nimcache/calc1.c
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-N=
imrod/Numbers/calc/nimcache/system.o usr/home/matt/MyProjects/Challenges-Nim=
rod/Numbers/calc/nimcache/system.c
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-N=
imrod/Numbers/calc/nimcache/strutils.o usr/home/matt/MyProjects/Challenges-N=
imrod/Numbers/calc/nimcache/strutils.c
clang -c -w -I/usr/local/lib/nimrod -o usr/home/matt/MyProjects/Challenges-N=
imrod/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  u=
sr/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 u=
sr/home/matt/MyProjects/Challenges-Nimrod/Numbers/calc/nimcache/calc1.o=20
clang: error: no such file or directory: 'usr/home/matt/MyProjects/Challenge=
s-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 tha=
t has to do with these paths. Has anyone else encountered an issue like this=
?

--Matt=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C0A51891-9BF5-44DF-A466-887FB3AAD153>