Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397661 - dev-ruby/bcrypt-ruby-3.0.1 fails to compile for ruby19 target
Summary: dev-ruby/bcrypt-ruby-3.0.1 fails to compile for ruby19 target
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-04 18:05 UTC by cerebroso
Modified: 2012-01-04 19:33 UTC (History)
0 users

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 cerebroso 2012-01-04 18:05:21 UTC
During the compile phase for ruby19, there's an undefined reference to `ruby_bcrypt', and the compile fails

build log:
 * Package:    dev-ruby/bcrypt-ruby-3.0.1
 * Repository: gentoo
 * Maintainer: ruby@gentoo.org
 * USE:        amd64 consolekit elibc_glibc kernel_linux multilib policykit ruby_targets_ree18 ruby_targets_ruby18 ruby_targets_ruby19 userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file... ...                                                                                                                                                                       [ ok ]
 * Uncompressing metadata ...                                                                                                                                                                       [ ok ]
 * Unpacking data.tar.gz ...                                                                                                                                                                        [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work
>>> Preparing source in /var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby18 ...
 * Running source copy phase for ruby19 ...
 * Running source copy phase for ree18 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work ...
 * Running configure phase for ruby18 ...
creating Makefile
 * Running configure phase for ruby19 ...
creating Makefile
 * Running configure phase for ree18 ...
creating Makefile
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work ...
 * Running compile phase for ruby18 ...
make -j9 -Cext/mri 
make: Entrando no diretório `/var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work/ruby18/bcrypt-ruby-3.0.1/ext/mri'
x86_64-pc-linux-gnu-gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I.   -fPIC -pipe -march=native -fno-strict-aliasing  -fPIC   -c crypt_gensalt.c
x86_64-pc-linux-gnu-gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I.   -fPIC -pipe -march=native -fno-strict-aliasing  -fPIC   -c crypt_blowfish.c
x86_64-pc-linux-gnu-gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I.   -fPIC -pipe -march=native -fno-strict-aliasing  -fPIC   -c crypt.c
x86_64-pc-linux-gnu-gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I.   -fPIC -pipe -march=native -fno-strict-aliasing  -fPIC   -c bcrypt_ext.c
x86_64-pc-linux-gnu-gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I.   -fPIC -pipe -march=native -fno-strict-aliasing  -fPIC   -c wrapper.c
x86_64-pc-linux-gnu-gcc -shared -o bcrypt_ext.so crypt_gensalt.o crypt_blowfish.o crypt.o bcrypt_ext.o wrapper.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lpthread -lrt -ldl -lcrypt -lm   -lc
make: Saindo do diretório `/var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work/ruby18/bcrypt-ruby-3.0.1/ext/mri'
 * Running compile phase for ruby19 ...
make -j9 -Cext/mri 
make: Entrando no diretório `/var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work/ruby19/bcrypt-ruby-3.0.1/ext/mri'
compiling crypt_gensalt.c
compiling crypt_blowfish.c
compiling crypt.c
compiling bcrypt_ext.c
compiling wrapper.c
In file included from wrapper.c:27:0:
/usr/include/ruby-1.9.1/ruby/backward/util.h:2:2: warning: #warning use "ruby/util.h" instead of bare "util.h"
linking shared-object bcrypt_ext.so
bcrypt_ext.o: In function `bcrypt_wrapper':
bcrypt_ext.c:(.text+0x37): undefined reference to `ruby_bcrypt'
collect2: ld returned 1 exit status
make: ** [bcrypt_ext.so] Erro 1
make: Saindo do diretório `/var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work/ruby19/bcrypt-ruby-3.0.1/ext/mri'
emake failed
 * ERROR: dev-ruby/bcrypt-ruby-3.0.1 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 4327:  Called ruby-ng_src_compile
 *   environment, line 3981:  Called _ruby_each_implementation 'each_ruby_compile'
 *   environment, line  400:  Called _ruby_invoke_environment 'ruby19' 'each_ruby_compile'
 *   environment, line  445:  Called each_ruby_compile
 *   environment, line  833:  Called die
 * The specific snippet of code:
 *       emake -Cext/mri || die;
 * 
 * If you need support, post the output of 'emerge --info =dev-ruby/bcrypt-ruby-3.0.1',
 * the complete build log and the output of 'emerge -pqv =dev-ruby/bcrypt-ruby-3.0.1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/temp/environment'.
 * S: '/var/tmp/portage/dev-ruby/bcrypt-ruby-3.0.1/work/ruby19/bcrypt-ruby-3.0.1'

Reproducible: Always

Steps to Reproduce:
1.emerge =dev-ruby/bcrypt-ruby-3.0.1 with ruby targets = ree18 ruby18 ruby19
2.
3.
Actual Results:  
fails to compile

Expected Results:  
compile and install correctly

# emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.0.13-tuxonice x86_64)
=================================================================
System uname: Linux-3.0.13-tuxonice-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 04 Jan 2012 08:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.c3sl.ufpr.br/"
LANG="pt_BR.UTF-8"
LDFLAGS=""
LINGUAS="pt_BR"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam fglrx firefox flac fortran gdbm gdu gif gpm iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline ruby sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype udev unicode usb vim-syntax vorbis webkit wicd x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19 ree18 rubinius" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 cerebroso 2012-01-04 19:33:27 UTC
Doing an emerge --depclean and compiling =dev-lang/ruby-1.9.3_p0 again solved it.