dom96 / nimkernel

A small kernel written in Nim
Other
613 stars 39 forks source link

Cannot run nakefile #15

Open lilkeet opened 1 year ago

lilkeet commented 1 year ago

Hey, ive run into an issue trying use the nakefile. the nakefile does compile, but when using the run task, it errors: Linking.... $HOME/cross-tools/lib/gcc/i686-elf/11.2.0/../../../../i686-elf/bin/ld: cannot find nimcache/stdlib_system.nim.c.o: No such file or directory

The object file that its looking for is not in nimcache, but there is a file named @m..@s..@s.choosenim@stoolchains@snim-1.6.8@slib@ssystem.nim.c.o and its corresponding c file. I tried copying both files and renaming them to what the nakefile wants, and it sorta bypasses the error but throws a warning and then another error: $HOME/cross-tools/lib/gcc/i686-elf/11.2.0/../../../../i686-elf/bin/ld: warning: section `.bss' type changed to PROGBITS Done. sh: 1: qemu-system-i386: not found

Isnt this file just a necessary file that the nim compiler generates? It doesn't seem to be doing much, just defining nim structures in c.

J0nas-DEV commented 1 year ago

you need to add the path of your qemu directory to your environment then after that restart your computer..... it works with mine try it.