arnetheduck / nlvm

LLVM-based compiler for the Nim language
Other
712 stars 42 forks source link

Error building #64

Closed lf-araujo closed 8 months ago

lf-araujo commented 8 months ago

Hi, can you please help me identifying what I am missing to build this package?

make complains of:

.o c_code/1_2/@mmain.nim.o c_code/2_2/@mscriptconfig.nim.o c_code/2_2/@mcmdlinehelper.nim.o c_code/2_2/@mnim.nim.o -ldl -lm -lrt
SUCCESS
make[1]: Leaving directory '/home/luis/Documents/OneDrive/Coding/Nim/nlvm/Nim/csources_v1'
cd Nim ; bin/nim c koch
/home/luis/Documents/OneDrive/Coding/Nim/nlvm/Nim/config/nim.cfg(52, 1) Error: invalid package name: /home/luis/.nimble/pkgs2/x11-1.1-dad7b243bb290af47fcd9603340f428e5590bb5a
make: *** [Makefile:34: Nim/koch] Error 1
arnetheduck commented 8 months ago

removing your nimble folder entirely (/home/luis/.nimble) sounds like a good start - it is known to introduce many build problems in general.

lf-araujo commented 8 months ago

Will try this and report back in half an hour. Thank you.

lf-araujo commented 8 months ago

Yep, this worked.

lf-araujo commented 8 months ago

nlvm expects the shared libraries in certain folders. I wanted to install in my nimble/bin folder, which folders should I move over to /bin? There is no make install option, right?

Thank you.

arnetheduck commented 8 months ago

See instructions about compiling a static binary: https://github.com/arnetheduck/nlvm?tab=readme-ov-file#compile-instructions