Here's some output: introdesk ~ # eselect ruby set 1 Successfully switched to profile: ruby22 introdesk ~ # emerge -U libselinux Calculating dependencies... done! >>> Recording sys-libs/libselinux in "world" favorites file... >>> Auto-cleaning packages... >>> No outdated packages were found on your system. introdesk ~ # emerge -u libselinux ... x86_64-pc-linux-gnu-gcc -mtune=native -O2 -pipe -I../include -D_GNU_SOURCE -DNO_ANDROID_BACKEND -Wno-error -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-shadow -Wno-uninitialized -Wno-missing-prototypes -Wno-missing-declarations -I/usr/include/ruby-2.2.0/x86_64-linux -I/usr/include/ruby-2.2.0 -fPIC -DSHARED -c -o selinuxswig_ruby_wrap.lo selinuxswig_ruby_wrap.c x86_64-pc-linux-gnu-gcc -mtune=native -O2 -pipe -I../include -D_GNU_SOURCE -DNO_ANDROID_BACKEND -fPIC -Wl,-O1 -Wl,--as-needed -lpthread -L. -shared -o ruby22_selinux.so selinuxswig_ruby_wrap.lo -lselinux -L/usr/lib64 -lruby /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lruby collect2: error: ld returned 1 exit status make[1]: *** [Makefile:140: ruby22_selinux.so] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/work/libselinux-2.7-rc1-abi_x86_64.amd64/src' make: *** [Makefile:54: rubywrap] Error 2 * ERROR: sys-libs/libselinux-2.7_rc1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-libs/libselinux-2.7_rc1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-libs/libselinux-2.7_rc1::gentoo'`. * The complete build log is located at '/var/log/portage/sys-libs:libselinux-2.7_rc1:20170630-145325.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/work/libselinux-2.7-rc1-abi_x86_64.amd64' * S: '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/work/libselinux-2.7-rc1' >>> Failed to emerge sys-libs/libselinux-2.7_rc1, Log file: >>> '/var/log/portage/sys-libs:libselinux-2.7_rc1:20170630-145325.log' * Messages for package sys-libs/libselinux-2.7_rc1: * ERROR: sys-libs/libselinux-2.7_rc1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-libs/libselinux-2.7_rc1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-libs/libselinux-2.7_rc1::gentoo'`. * The complete build log is located at '/var/log/portage/sys-libs:libselinux-2.7_rc1:20170630-145325.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/work/libselinux-2.7-rc1-abi_x86_64.amd64' * S: '/var/tmp/portage/sys-libs/libselinux-2.7_rc1/work/libselinux-2.7-rc1'
Can you try with 2.7-rc4? i just pushed that to the tree. It should have a fix for this.