Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445818 - dev-libs/libffi-3.0.11: The linker reported linking against -lffi to be working while it shouldn't have.
Summary: dev-libs/libffi-3.0.11: The linker reported linking against -lffi to be worki...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-03 17:51 UTC by Juergen Rose
Modified: 2012-12-04 15:19 UTC (History)
0 users

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


Attachments
/var/tmp/portage/dev-libs/libffi-3.0.11/temp/build.log (build.log,1.48 KB, text/plain)
2012-12-03 17:51 UTC, Juergen Rose
Details
/var/tmp/portage/dev-libs/libffi-3.0.11/temp/die.env (die.env,183.29 KB, text/plain)
2012-12-03 17:52 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2012-12-03 17:51:15 UTC
A new installation of Gentoo (emerge e2fsprogs) fails, because libffi fails to emerge:

root@sysresccd:/usr/src/linux(39)# emerge -v1 e2fsprogs

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/libffi-3.0.11  USE="-debug -static-libs {-test}" 0 kB
[ebuild  N     ] virtual/libffi-3.0.11  0 kB
[ebuild  N     ] dev-util/gtk-doc-am-1.18  0 kB
[ebuild  N     ] dev-libs/glib-2.32.4-r1:2  USE="-debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr" 0 kB
[ebuild  N     ] dev-util/pkgconfig-0.27.1  USE="-hardened -internal-glib" 0 kB
[ebuild  N     ] virtual/pkgconfig-0  0 kB
[ebuild  N     ] x11-misc/shared-mime-info-1.0  0 kB
[ebuild  N     ] sys-libs/e2fsprogs-libs-1.42  USE="nls -static-libs" 0 kB
[ebuild  N     ] sys-fs/e2fsprogs-1.42  USE="nls -static-libs" 0 kB

Total: 9 packages (9 new), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 9) dev-libs/libffi-3.0.11
openpty failed: 'out of pty devices'
 * libffi-3.0.11.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                           [ ok ]
 * The linker reported linking against -lffi to be working while it shouldn't have.
 * This is wrong and you should find and delete the old copy of libffi before continuing.
 * ERROR: dev-libs/libffi-3.0.11 failed (setup phase):
 *   The system is in inconsistent state with unknown libffi installed.


Reproducible: Always




root@sysresccd:/usr/src/linux(40)# emerge --info '=dev-libs/libffi-3.0.11'
Portage 2.1.11.31 (default/linux/x86/10.0, gcc-4.5.4, unavailable, 3.2.33-std311-i586 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.2.33-std311-i586-i686-AMD_Athlon-tm-_Processor-with-gentoo-2.1
Timestamp of tree: Thu, 29 Nov 2012 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/libtool:        2.4-r1
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --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="acl berkdb bzip2 cli cracklib crypt cups cxx device-mapper dri fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre pppd readline session ssl tcpd unicode x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="authn_core authz_core socache_shmcb unixd 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 sheets 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



root@sysresccd:/usr/src/linux(41)# emerge -pqv '=dev-libs/libffi-3.0.11'
[ebuild  N    ] dev-libs/libffi-3.0.11  USE="-debug -static-libs {-test}"
Comment 1 Juergen Rose 2012-12-03 17:51:39 UTC
Created attachment 331330 [details]
/var/tmp/portage/dev-libs/libffi-3.0.11/temp/build.log
Comment 2 Juergen Rose 2012-12-03 17:52:44 UTC
Created attachment 331332 [details]
/var/tmp/portage/dev-libs/libffi-3.0.11/temp/die.env
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-12-03 17:59:59 UTC
So where did you get your cope of libffi.so from, if not from the libffi ebuild? 

And if it's from sys-devel/gcc, then with what version and which USE flags you used to emerge it? Bootstrapping gcc or something? Stage1...2?

Is eclass/ directory in your PORTDIR up-to-date? The code that removes the gcc's copy of libffi is from an eclass
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-03 18:32:48 UTC
The stage3 you used obviously includes a sys-devel/gcc which installs libffi.

Does it help to update the system target before emerging e2fsprogs? The Handbook omits that step, oddly enough.
Comment 5 Juergen Rose 2012-12-04 08:54:58 UTC
To Comment 4: 'emerge -uvND system' fails with:

root@sysresccd:/usr/src/linux(49)# emerge -vuND system

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!


[nomerge       ] virtual/package-manager-0 
[nomerge       ]  sys-apps/portage-2.1.11.31  USE="(ipc) -build -doc -epydoc (-pypy1_9) -python2 -python3 (-selinux) -xattr" LINGUAS="-pl" 
[nomerge       ]   dev-lang/python-3.2.3:3.2  USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -sqlite -tk -wininst" 
[ebuild  N     ]    app-admin/python-updater-0.10  10 kB
[ebuild  N     ]     dev-lang/python-3.2.3:3.2  USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -sqlite -tk -wininst" 8,775 kB
[ebuild  N     ] virtual/package-manager-0  0 kB
[ebuild  N     ]  sys-apps/portage-2.1.11.31  USE="(ipc) -build -doc -epydoc (-pypy1_9) -python2 -python3 (-selinux) -xattr" LINGUAS="-pl" 829 kB
[ebuild  N     ] virtual/ssh-0  USE="-minimal" 0 kB
[ebuild  N     ] sys-apps/busybox-1.20.2  USE="ipv6 pam static -livecd -make-symlinks -math -mdev -savedconfig (-selinux) -sep-usr -systemd" 2,136 kB
[nomerge       ] virtual/ssh-0  USE="-minimal" 
[ebuild  N     ]  net-misc/openssh-5.9_p1-r4  USE="hpn pam tcpd -X -X509 -bindist -kerberos -ldap -libedit (-selinux) -skey -static" 1,106 kB
[ebuild  N     ]   virtual/shadow-0  0 kB
[ebuild  N     ]    sys-apps/shadow-4.1.4.3  USE="cracklib nls pam -audit (-selinux) -skey" 1,762 kB
[nomerge       ] sys-apps/baselayout-2.1-r1  USE="-build" 
[ebuild  N     ]  sys-apps/openrc-0.11.5  USE="ncurses pam unicode -debug -newnet (-prefix) (-selinux) -static-libs" 171 kB
[nomerge       ] sys-apps/shadow-4.1.4.3  USE="cracklib nls pam -audit (-selinux) -skey" 
[ebuild  N     ]  virtual/pam-0  0 kB
[ebuild  N     ]   sys-libs/pam-1.1.5  USE="berkdb cracklib nls -audit -debug -nis (-selinux) {-test} -vim-syntax" 1,584 kB
[ebuild  N     ]    sys-auth/pambase-20101024-r2  USE="cracklib sha512 -consolekit -debug -gnome-keyring -minimal -mktemp -pam_krb5 -pam_ssh -passwdqc (-selinux)" 4 kB
[ebuild  N     ] virtual/libc-0  0 kB
[nomerge       ] dev-lang/python-3.2.3:3.2  USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -sqlite -tk -wininst" 
[ebuild  N     ]  app-admin/eselect-python-20100321  6 kB
[ebuild  N     ]   sys-devel/gcc-4.5.4:4.5  USE="cxx fortran mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libssp) -lto (-multilib) -multislot -nopie -nossp -objc -objc++ -objc-gc {-test} -vanilla" 64,910 kB
[ebuild  N     ]    sys-libs/glibc-2.15-r3:2.2  USE="-debug -gd (-hardened) (-multilib) -profile (-selinux) -vanilla" 10,568 kB

Total: 17 packages (17 new), Size of downloads: 91,855 kB

 * Error: circular dependencies:

(sys-libs/glibc-2.15-r3::gentoo, ebuild scheduled for merge) depends on
 (sys-devel/gcc-4.5.4::gentoo, ebuild scheduled for merge) (buildtime)
  (sys-libs/glibc-2.15-r3::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.



If I try to emerge only gcc ('emerge -v1 gcc'), it fails with the same circular dependency.
Comment 6 Juergen Rose 2012-12-04 10:46:15 UTC
All is my fault. Forgive me the trouble, the /var filesystem was not mounted.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-04 15:19:15 UTC
It still isn't a blocker.