/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnsl collect2: error: ld returned 1 exit status make[2]: *** [src/nvim/CMakeFiles/nvim.dir/build.make:4329: bin/nvim] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-editors/neovim-0.3.0/work/neovim-0.3.0_build' make[1]: *** [CMakeFiles/Makefile2:2595: src/nvim/CMakeFiles/nvim.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/app-editors/neovim-0.3.0/work/neovim-0.3.0_build' make: *** [Makefile:152: all] Error 2 * ERROR: app-editors/neovim-0.3.0::gentoo failed (compile phase): * emake failed Reproducible: Always
I can confirm this. I have a workaround ebuild in my overlay. The only difference is the addition of dev-libs/libnsl in RDEPENDS. https://github.com/lamawithonel/gentoo-overlay/blob/607651d357485e86eb20fd637b5545ef80fa9a3b/app-editors/neovim/neovim-0.3.0-r1.ebuild
Proposed a fix in https://github.com/gentoo/gentoo/pull/9791
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da6fad7c16373a85dcadd4113d0b8c54628035cf commit da6fad7c16373a85dcadd4113d0b8c54628035cf Author: Roman Yurchak <rth.yurchak@gmail.com> AuthorDate: 2018-09-06 11:10:49 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2018-09-10 13:23:23 +0000 app-editors/neovim: add missing dependency on libnsl. Closes: https://bugs.gentoo.org/658200 Closes: https://github.com/gentoo/gentoo/pull/9791 app-editors/neovim/neovim-0.3.0.ebuild | 3 ++- app-editors/neovim/neovim-0.3.1.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)