dom96 / nimkernel

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

Error: system module needs: appendString #10

Closed joshuajohncohen closed 2 years ago

joshuajohncohen commented 4 years ago

When I run ./nakefile run I get an error saying the system module needs appendString() My screen

AlectronikForge commented 3 years ago

I get the same thing. Guess nim internals have changed over time and now it requires an explicit implementation of said function when using --os:standalone.

Probably we'll have to ask in nim forums as here is no activity anymore, sadly :(

dom96 commented 3 years ago

Yeah, no time to look into this I'm afraid. Happy to accept PRs to fix this if someone finds the solution :)

AlectronikForge commented 3 years ago

So far that's what I got from nimforum: https://forum.nim-lang.org/t/7107

First, there's a fork which fixed this error but it just gives me another one: https://github.com/watzon/JackOS

Second, other poster proposed compiler flags --os:any -d:StandaloneHeapSize=1048576 which indeed compile but need to fix my cross gcc first.

Still I am very intrigued about using nim for a hobby microkernel OS (x86_64 with bootloader Pure64 probably) and am working on it but I'm also still learning nim basics..

Do you have any recommendations to me where to read about nim internals, --os:standalone, porting nim RTL etc..?

dom96 commented 3 years ago

Not really, just gotta search around and find various github issues/forum posts :)

sudo-d4s3 commented 3 years ago

I have made a pull request that fixes this, and a couple other problems with the newer versions of nim.

dom96 commented 2 years ago

Closing this since the PR was merged.