aguspiza / meta-nim

yocto meta layer to build nim and nim-native
0 stars 1 forks source link

Work-in-progress recipes for nim 1.6.6 #1

Open bkauler opened 2 years ago

bkauler commented 2 years ago

I have created two recipes, nim-native_1.6.6.bb and nim_1.6.6.bb, based on your recipes. Posted here:

https://bkhome.org/news/202208/nim-compiled-in-openembedded.html

I am new to Nim, so learnt about the build system from scratch.

In the recipe, have come to a stop trying to compile the tools with koch. I have tried to compile nimble without koch, and it failed, but might have been nearly there. I have commented-out the attempt.

aguspiza commented 2 years ago

As you see this was done for a quite old nim version. I tweaked a basic recipe until it worked for me. I would need to check if koch could work now with 1.6.6. I am willing to help here but I won't be able to help until sunday.

bkauler commented 2 years ago

Success, the recipe now compiles nim, koch, nimble, nimgrep and nimsuggest. Recipe files attached.

nim-native_1.6.6.bb.gz

nim_1.6.6.bb.gz

bkauler commented 2 years ago

Continuing to improve the recipes, see here:

https://bkhome.org/news/202208/debdb2pupdbnim-cross-compiled-in-oe.html

I have also reported to the Nim Forum:

https://forum.nim-lang.org/t/9406