oasislinux / oasis

a small statically-linked linux system
Other
2.75k stars 84 forks source link

Troubles compiling kernel #57

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi there. I'm following the Wiki for building the kernel and running into an issue.

If I use master branch of kernel sources, I run into a merge conflict with scripts/kconfig/mconf-cfg.sh. I set tag to v6.1 (the version noted in the commit messages on oasislinux/linux/scripts/kconfig), I can apply the patches.

But then I run into a problem with make menuconfig related to the same mconf issue

  HOSTLD  scripts/kconfig/mconf
/usr/bin/ld: cannot find -lterminfo
collect2: error: ld returned 1 exit status
make[1]: *** [scripts/Makefile.host:120: scripts/kconfig/mconf] Error 1
make: *** [Makefile:697: menuconfig] Error 2

I saw some discussion elsewhere about the above error suggesting to run pkgconf, which on my end returns:

$ pkgconf --libs ncurses
-Wl, -Bsymbolic-functions -lncurses -ltinfo

I'm not sure how to get past this issue. Any help appreciated.

Thank you

ghost commented 1 year ago

Found the answer here: https://github.com/oasislinux/oasis/issues/26#issuecomment-894857609

Just had to compile and install netbsd-curses and that got me up and running.