Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623162 - sys-libs/libselinux-2.7_rc1 : /.../ld: cannot find -lruby
Summary: sys-libs/libselinux-2.7_rc1 : /.../ld: cannot find -lruby
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-30 14:55 UTC by Renich Bon Ciric
Modified: 2017-09-23 02:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renich Bon Ciric 2017-06-30 14:55:48 UTC
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'
Comment 1 Jason Zaman gentoo-dev 2017-07-09 10:07:32 UTC
Can you try with 2.7-rc4? i just pushed that to the tree. It should have a fix for this.