Failed installing native extensions in rubygem ebuilds on amd64... and i don't know how to fix this Reproducible: Always Steps to Reproduce: 1. emerge ruby-postgres Expected Results: install this library correctly :) creating Makefile make x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQFREEMEM -DHAVE_PQSERVERVERSION -DHAVE_PQESCAPESTRING -DHAVE_PQEXECPARAMS -I/usr/include/postgresql-8.3 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -c postgres.c x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQFREEMEM -DHAVE_PQSERVERVERSION -DHAVE_PQESCAPESTRING -DHAVE_PQEXECPARAMS -I/usr/include/postgresql-8.3 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -c libpq-compat.c x86_64-pc-linux-gnu-gcc -shared -o postgres.so postgres.o libpq-compat.o -L'.' -L'/usr/lib64' -Wl,-R'/usr/lib64' -L'/usr/lib64/postgresql-8.3/lib64' -Wl,-R'/usr/lib64/postgresql-8.3/lib64' -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18 -lpq -lpthread -ldl -lcrypt -lm -lc make install mkdir -p /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/lib /usr/bin/install -c -m 0755 postgres.so /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/lib /usr/bin/install: cannot create regular file `/var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/lib': File exists make: *** [/var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/lib/postgres.so] Error 1 Gem files will remain installed in /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28 for inspection. Results logged to /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/ext/gem_make.out * * ERROR: dev-ruby/ruby-postgres-0.7.9.20080128 failed. * Call stack: * ebuild.sh, line 49: Called src_install * environment, line 2581: Called gems_src_install * environment, line 1457: Called die * The specific snippet of code: * gem install ${GEM_SRC} --version ${PV} ${myconf} --local --install-dir "${D}/${GEMSDIR}" || die "gem install failed"; * The die message: * gem install failed strange, because manually calling lines with `mkdir -p` and `install` works PS: sys-apps/coreutils-6.10-r2 USE="acl nls (-selinux) -static -vanilla -xattr"
Please add "emerge --info", relevant 'build.log' and 'config.log' files, and reopen.
emerge --info Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r6 x86_64) ================================================================= System uname: 2.6.25-gentoo-r6 x86_64 Intel(R) Xeon(TM) CPU 3.00GHz Timestamp of tree: Thu, 14 Aug 2008 13:45:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r13, 2.5.2-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r2 sys-devel/automake: 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/postgresql /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1" LINGUAS="ru" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://mirror.yandex.ru/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog java kerberos midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl postgres pppd python readline reflection session sparc spl sse sse2 ssl sysfs tcpd threads unicode xorg 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY build.log: cat build.log >>> Unpacking source... >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/w ork ... >>> Source compiled. >>> Test phase [not enabled]: dev-ruby/ruby-postgres-0.7.9.20080128 >>> Install ruby-postgres-0.7.9.20080128 into /var/tmp/portage/dev-ruby/ruby-pos tgres-0.7.9.20080128/image/ category dev-ruby Building native extensions. This could take a while... ERROR: Error installing /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/ distdir/postgres-0.7.9.2008.01.28: ERROR: Failed to build gem native extension. /usr/bin/ruby18 extconf.rb install /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9 .20080128/distdir/postgres-0.7.9.2008.01.28 --version 0.7.9.20080128 --no-rdoc - -no-ri --local --install-dir /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080 128/image///usr/lib64/ruby/gems/1.8 checking for main() in -lpq... yes checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for PQsetClientEncoding()... yes checking for pg_encoding_to_char()... yes checking for PQfreemem()... yes checking for PQserverVersion()... yes checking for PQescapeString()... yes checking for PQexecParams()... yes creating Makefile make x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_LI BPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_T O_CHAR -DHAVE_PQFREEMEM -DHAVE_PQSERVERVERSION -DHAVE_PQESCAPESTRING -DHAVE_PQEX ECPARAMS -I/usr/include/postgresql-8.3 -fPIC -O2 -pipe -fno-strict-aliasing -f PIC -c postgres.c x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_LI BPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_T O_CHAR -DHAVE_PQFREEMEM -DHAVE_PQSERVERVERSION -DHAVE_PQESCAPESTRING -DHAVE_PQEX ECPARAMS -I/usr/include/postgresql-8.3 -fPIC -O2 -pipe -fno-strict-aliasing -f PIC -c libpq-compat.c x86_64-pc-linux-gnu-gcc -shared -o postgres.so postgres.o libpq-compat.o -L'.' - L'/usr/lib64' -Wl,-R'/usr/lib64' -L'/usr/lib64/postgresql-8.3/lib64' -Wl,-R'/usr /lib64/postgresql-8.3/lib64' -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18 -lpq -lpthread -ldl -lcrypt -lm -lc make install mkdir -p /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/usr/lib64/ ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/lib /usr/bin/install -c -m 0755 postgres.so /var/tmp/portage/dev-ruby/ruby-postgres- 0.7.9.20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/lib /usr/bin/install: cannot create regular file `/var/tmp/portage/dev-ruby/ruby-pos tgres-0.7.9.20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.2 8/lib': File exists make: *** [/var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/usr/lib6 4/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/lib/postgres.so] Error 1 Gem files will remain installed in /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9 .20080128/image/usr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28 for inspe ction. Results logged to /var/tmp/portage/dev-ruby/ruby-postgres-0.7.9.20080128/image/u sr/lib64/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28/ext/gem_make.out * * ERROR: dev-ruby/ruby-postgres-0.7.9.20080128 failed. * Call stack: * ebuild.sh, line 49: Called src_install * environment, line 2581: Called gems_src_install * environment, line 1457: Called die * The specific snippet of code: * gem install ${GEM_SRC} --version ${PV} ${myconf} --local --install-dir "${D}/${GEMSDIR}" || die "gem install failed"; * The die message: * gem install failed * * If you need support, post the topmost build error, and the call stack if rele vant. * A complete build log is located at '/var/tmp/portage/dev-ruby/ruby-postgres-0 .7.9.20080128/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/ruby-pos tgres-0.7.9.20080128/temp/environment'. * and there is no config.log file :)
Worksforme on amd64. Did you try other versions of the ebuild? And what exactly has fastthread to do with your problem? :o