Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500740 - >=app-emulation/emul-linux-x86-baselibs-20131008-r14 with ABI_X86="-32" installs broken /usr/lib32/libjpeg.so symlink, causing wine to fails to configure with "checking for -ljpeg... not found"
Summary: >=app-emulation/emul-linux-x86-baselibs-20131008-r14 with ABI_X86="-32" insta...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Multilib team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-09 05:50 UTC by Juergen Rose
Modified: 2014-02-10 06:58 UTC (History)
9 users (show)

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


Attachments
build.log (build.log,64.95 KB, text/plain)
2014-02-09 05:50 UTC, Juergen Rose
Details
/var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86/config.log (config.log,421.62 KB, text/plain)
2014-02-09 05:55 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2014-02-09 05:50:10 UTC
Created attachment 369920 [details]
build.log

At the first system 'emerge wine' fails with:
checking for isnan... yes
checking whether we need to define __x86_64__... no
creating Makefile rules... * The ebuild phase 'configure' with pid 29382 appears to have left an
 * orphan process running in the background.

>>> Failed to emerge app-emulation/wine-1.7.12, Log file:

at the second it fails with:
checking for struct stat.st_birthtim... no
checking for struct stat.st_birthtimespec... no
checking for struct stat.__st_birthtime...  * The ebuild phase 'configure' with pid 6313 appears to have left an
 * orphan process running in the background.

>>> Failed to emerge app-emulation/wine-1.7.12, Log file:
Comment 1 Juergen Rose 2014-02-09 05:53:28 UTC
'MAKEOPTS="-j1" emerge wine' fails with:


checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for -ljpeg... not found
configure: error: libjpeg development files not found, JPEG won't be supported.
This is an error since --with-jpeg was requested.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86/config.log
 * ERROR: app-emulation/wine-1.7.12::gentoo failed (configure phase):
 *   econf failed
Comment 2 Juergen Rose 2014-02-09 05:55:47 UTC
Created attachment 369922 [details]
/var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86/config.log

The following jpeg packages are installed:

root@impala:/root(15)# qlist -Iv jpeg
media-gfx/recoverjpeg-2.2.3
media-libs/libjpeg-turbo-1.3.0-r3
media-libs/openjpeg-1.5.1-r1
media-libs/openjpeg-2.0.0
media-plugins/gst-plugins-jpeg-1.2.0
media-video/mjpegtools-2.1.0-r1
virtual/jpeg-0-r2
virtual/jpeg-62
Comment 3 Mario Bachmann 2014-02-09 09:24:18 UTC
Calculating dependencies... done!
[ebuild     U  ] app-emulation/wine-1.7.12 [1.7.11] USE="X alsa cups custom-cflags fontconfig gecko jpeg lcms mono mp3 ncurses nls openal opengl perl png prelink realtime run-exes ssl threads truetype udisks v4l xcomposite xinerama xml -capi -dos -gphoto2 -gsm -gstreamer -ldap -netapi -odbc -opencl -osmesa -oss -pulseaudio -samba -scanner (-selinux) {-test}" ABI_X86="32 64 (-x32)" LINGUAS="de -ar -bg -ca -cs -da -el -en -en_US -eo -es -fa -fi -fr -he -hi -hr -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW" 0 kB

# qlist -Iv jpeg
media-libs/libjpeg-turbo-1.3.0-r3
media-libs/openjpeg-2.0.0
virtual/jpeg-0-r2
virtual/jpeg-62

checking jpeglib.h usability... libfontconfig.so.1
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
yes
checking jpeglib.h presence... checking for -ljpeg... yes
checking for jpeglib.h... yes
checking for -ljpeg... not found
configure: error: libjpeg development files not found, JPEG won't be supported.
This is an error since --with-jpeg was requested.
libjpeg.so.62
checking png.h usability... 
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86/config.log
 * ERROR: app-emulation/wine-1.7.12::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 4869:  Called multilib_parallel_foreach_abi 'do_configure'
 *        environment, line 4227:  Called multibuild_parallel_foreach_variant '_multilib_multibuild_wrapper' 'do_configure'
 *        environment, line 3864:  Called multibuild_foreach_variant '_multibuild_parallel' '_multilib_multibuild_wrapper' 'do_configure'
yes
checking png.h presence...  *        environment, line 3812:  Called _multibuild_run '_multibuild_parallel' '_multilib_multibuild_wrapper' 'do_configure'
 *        environment, line 3810:  Called _multibuild_parallel '_multilib_multibuild_wrapper' 'do_configure'
 *        environment, line 3855:  Called _multilib_multibuild_wrapper 'do_configure'
 *        environment, line 1305:  Called do_configure
 *        environment, line 1767:  Called autotools-utils_src_configure
yes
checking for png.h... yes
checking for -lpng...  *        environment, line 1473:  Called econf '--docdir=/usr/share/doc/wine-1.7.12' '--sysconfdir=/etc/wine' '--with-alsa' '--without-capi' '--with-cms' '--with-cups' '--with-curses' '--with-dbus' '--with-fontconfig' '--with-gnutls' '--without-gphoto' '--without-gsm' '--without-gstreamer' '--without-hal' '--with-jpeg' '--without-ldap' '--with-mpg123' '--without-netapi' '--with-gettext' '--with-openal' '--without-opencl' '--with-opengl' '--without-osmesa' '--without-oss' '--with-png' '--with-pthread' '--without-sane' '--disable-tests' '--with-freetype' '--with-v4l' '--with-x' '--with-xcomposite' '--with-xinerama' '--with-xml' '--with-xslt' '--without-netapi' '--disable-win64'
 *   phase-helpers.sh, line  584:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/wine-1.7.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/wine-1.7.12::gentoo'`.
/usr/lib64/portage/bin/isolated-functions.sh: line 195: wait: `econf failed': not a pid or valid job spec
 * The complete build log is located at '/var/tmp/portage/app-emulation/wine-1.7.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/wine-1.7.12/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86'
 * S: '/var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12'
libpng16.so.16
checking tiffio.h usability... yes
Comment 4 Yuri Shatroff 2014-02-09 11:21:10 UTC
Seems like emerge starts two configure processes at once, for amd64 and x86: 

[ ... snip ... ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12 ...
 * x86: running do_configure
 * amd64: running do_configure
>>> Working in BUILD_DIR: "/var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-amd64"
>>> Working in BUILD_DIR: "/var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86"
 * econf: updating wine-1.7.12/tools/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating wine-1.7.12/tools/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating wine-1.7.12/tools/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating wine-1.7.12/tools/config.guess with /usr/share/gnuconfig/config.guess
/var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --docdir=/usr/share/doc/wine-1.7.12 --sysconfdir=/etc/wine --with-alsa --without-capi --without-cms --without-cups --with-curses --without-dbus --with-fontconfig --without-gnutls --without-gphoto --without-gsm --without-gstreamer --without-hal --with-jpeg --without-ldap --without-mpg123 --without-netapi --without-gettext --without-openal --without-opencl --with-opengl --without-osmesa --without-oss --with-png --with-pthread --without-sane --disable-tests --with-freetype --without-v4l --with-x --without-xcomposite --without-xinerama --with-xml --with-xslt --enable-win64
/var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 --docdir=/usr/share/doc/wine-1.7.12 --sysconfdir=/etc/wine --with-alsa --without-capi --without-cms --without-cups --with-curses --without-dbus --with-fontconfig --without-gnutls --without-gphoto --without-gsm --without-gstreamer --without-hal --with-jpeg --without-ldap --without-mpg123 --without-netapi --without-gettext --without-openal --without-opencl --with-opengl --without-osmesa --without-oss --with-png --with-pthread --without-sane --disable-tests --with-freetype --without-v4l --with-x --without-xcomposite --without-xinerama --with-xml --with-xslt --without-netapi --disable-win64
checking build system type... x86_64-pc-linux-gnu
checking host system type... checking build system type... x86_64-pc-linux-gnu
checking whether make sets $(MAKE)... i686-pc-linux-gnu
checking host system type... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32
[ ... ]

(with ABI_X86=32 64 -x32)
When the first process fails, emerge cleans up and not even a log is available. The second configure continues to run.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-09 12:06:22 UTC
This probably comes from multiprocessing.eclass not the wine ebuild.
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-02-09 13:01:30 UTC
The wine ebuild configures 32-bit and 64-bit versions in parallel to save some build time. So there is no point in pasting the last lines of configure output from the terminal, they are non-informative because they will be from the wrong configure proces.

Instead, please attach just the 32-bit config.log:

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86/config.log

(In reply to Juergen Rose from comment #2)

Thank you for the log.

It seems to show that the compiler is looking for 32-bit libjpeg.so in /usr/lib instead of /usr/lib32:

configure:12884: checking for -ljpeg
configure:12909: x86_64-pc-linux-gnu-gcc -m32 -o conftest -march=amdfam10 -O2 -pipe   -Wl,-O1 -Wl,--as-needed conftest.c -ljpeg   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libjpeg.so when searching for -ljpeg
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ljpeg
collect2: error: ld returned 1 exit status


To try to figure out what is going on, please provide the following information:

1. The output of "emerge --info media-libs/jpeg libjpeg-turbo emul-linux-x86-baselibs"

2. The output of "ls -l /usr/lib*/libjpeg*"
Comment 7 jospezial 2014-02-09 13:11:05 UTC
joerg@jlgentoo ~ $ ls -l /usr/lib*/libjpeg*
lrwxrwxrwx 1 root root     17 14. Dez 20:13 /usr/lib/libjpeg.so -> libjpeg.so.62.1.0
lrwxrwxrwx 1 root root     17 14. Dez 20:13 /usr/lib/libjpeg.so.62 -> libjpeg.so.62.1.0
-rwxr-xr-x 1 root root 281120 14. Dez 20:13 /usr/lib/libjpeg.so.62.1.0
lrwxrwxrwx 1 root root     16  8. Okt 21:58 /usr/lib32/libjpeg.so -> libjpeg.so.8.0.2
-rwxr-xr-x 1 root root 144900  7. Okt 21:11 /usr/lib32/libjpeg.so.62
lrwxrwxrwx 1 root root     17 14. Dez 20:13 /usr/lib64/libjpeg.so -> libjpeg.so.62.1.0
lrwxrwxrwx 1 root root     17 14. Dez 20:13 /usr/lib64/libjpeg.so.62 -> libjpeg.so.62.1.0
-rwxr-xr-x 1 root root 281120 14. Dez 20:13 /usr/lib64/libjpeg.so.62.1.0
joerg@jlgentoo ~ $

/usr/lib32/libjpeg.so -> libjpeg.so.8.0.2 !!! is broken


caused by
https://bugs.gentoo.org/show_bug.cgi?id=499170
Bug 499170 - =app-emulation/emul-linux-x86-baselibs-r9: files still linking to libjpeg.so.8
Comment 8 Yuri Shatroff 2014-02-09 13:32:02 UTC
(In reply to Alexandre Rostovtsev from comment #6)
> The wine ebuild configures 32-bit and 64-bit versions in parallel to save
> some build time. So there is no point in pasting the last lines of configure
> output from the terminal, they are non-informative because they will be from
> the wrong configure proces.

Yes, but namely this parallelization is the cause of 'orphan process'. After the first configure failed, the second doesn't get stopped. That also somewhat misleads about the roots of the failure. And while waiting for the second process to fail, I had the build directory emptied by emerge so I couldn't get any logs except in terminal. (I found later that the '--fail-clean=n' option keeps the build directory)

> Instead, please attach just the 32-bit config.log:
> 
> !!! Please attach the following file when seeking support:
> !!!
> /var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86/config.log

It's in general the same as the already attached one.
Comment 9 jospezial 2014-02-09 13:45:37 UTC
my workaround:

jlgentoo ~ # cd /usr/lib32/
jlgentoo lib32 # rm libjpeg.so
jlgentoo lib32 # ln -vs libjpeg.so.62 libjpeg.so
„libjpeg.so“ -> „libjpeg.so.62“
jlgentoo lib32 # ls -l /usr/lib32/libjpeg*
lrwxrwxrwx 1 root root     13  9. Feb 14:37 /usr/lib32/libjpeg.so -> libjpeg.so.62
-rwxr-xr-x 1 root root 144900  7. Okt 21:11 /usr/lib32/libjpeg.so.62

cd ..


configure works then
Comment 10 Juergen Rose 2014-02-09 16:34:30 UTC
(In reply to Alexandre Rostovtsev from comment #6)
> The wine ebuild configures 32-bit and 64-bit versions in parallel to save
> some build time. So there is no point in pasting the last lines of configure
> output from the terminal, they are non-informative because they will be from
> the wrong configure proces.
> 
> Instead, please attach just the 32-bit config.log:
> 
> !!! Please attach the following file when seeking support:
> !!!
> /var/tmp/portage/app-emulation/wine-1.7.12/work/wine-1.7.12-x86/config.log
> 
> (In reply to Juergen Rose from comment #2)
> 
> Thank you for the log.
> 
> It seems to show that the compiler is looking for 32-bit libjpeg.so in
> /usr/lib instead of /usr/lib32:
> 
> configure:12884: checking for -ljpeg
> configure:12909: x86_64-pc-linux-gnu-gcc -m32 -o conftest -march=amdfam10
> -O2 -pipe   -Wl,-O1 -Wl,--as-needed conftest.c -ljpeg   >&5
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/
> ld: skipping incompatible
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libjpeg.so when searching
> for -ljpeg
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/
> ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/
> ld: cannot find -ljpeg
> collect2: error: ld returned 1 exit status
> 
> 
> To try to figure out what is going on, please provide the following
> information:
> 
> 1. The output of "emerge --info media-libs/jpeg libjpeg-turbo
> emul-linux-x86-baselibs"
> 
> 2. The output of "ls -l /usr/lib*/libjpeg*"


root@impala:/root(69)# emerge --info media-libs/jpeg libjpeg-turbo emul-linux-x86-baselibs
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.18-r1, 3.13.2-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.13.2-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     8165076 total,    444776 free
KiB Swap:   50331640 total,  50329880 free
Timestamp of tree: Sun, 09 Feb 2014 10:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo x11 science sunrise sage-on-gentoo dlan x-portage g-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage_impala"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/sage-on-gentoo /var/lib/layman/dlan /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac accessibility acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli cmake consolekit cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libkms libnotify libsamplerate live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy nvidia obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime raw readline real reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode usb userlocales utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau displaylink" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-libs/libjpeg-turbo-1.3.0-r3 was built with the following:
USE="java -static-libs" ABI_X86="64 -32 -x32"


app-emulation/emul-linux-x86-baselibs-20131008-r14 was built with the following:
USE="development" ABI_X86="-32"



root@impala:/root(70)# ls -l /usr/lib*/libjpeg*
lrwxrwxrwx 1 root root     16 Feb  8 01:08 /usr/lib32/libjpeg.so -> libjpeg.so.8.0.2
-rwxr-xr-x 1 root root 144900 Oct  7 21:11 /usr/lib32/libjpeg.so.62
lrwxrwxrwx 1 root root     17 Dec 16 11:01 /usr/lib64/libjpeg.so -> libjpeg.so.62.1.0
lrwxrwxrwx 1 root root     17 Dec 16 11:01 /usr/lib64/libjpeg.so.62 -> libjpeg.so.62.1.0
-rwxr-xr-x 1 root root 285216 Dec 16 11:01 /usr/lib64/libjpeg.so.62.1.0
lrwxrwxrwx 1 root root     17 Dec 16 11:01 /usr/lib/libjpeg.so -> libjpeg.so.62.1.0
lrwxrwxrwx 1 root root     17 Dec 16 11:01 /usr/lib/libjpeg.so.62 -> libjpeg.so.62.1.0
-rwxr-xr-x 1 root root 285216 Dec 16 11:01 /usr/lib/libjpeg.so.62.1.0


The first link (/usr/lib32/libjpeg.so) is a broken link.


After removing the broken link, I get the same error.
Comment 11 Marc Grondin 2014-02-10 01:06:50 UTC
Solution in Comment 9 fixes it.
Comment 12 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-02-10 06:42:01 UTC
Confirmed; emul-linux-x86-baselibs-20131008-r14 and -r15 when emerged with USE="-abi_x86_32" (i.e. if you don't have ABI_X86="32 64" set in your make.conf) does install broken /usr/lib32/libjpeg.so and /usr/lib32/libturbojpeg.so symlinks, causing wine to fail to emerge.

Samuli (or multilib team), please fix the baselibs ebuild.


Wine users, as a temporary workaround to emerge wine, try the following:

# ln -sf /usr/lib32/emul-linux/libjpeg.so.8 /usr/lib32/libjpeg.so
# ln -sf /usr/lib32/emul-linux/libturbojpeg.so.0 /usr/lib32/libturbojpeg.so
Comment 13 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-02-10 06:46:18 UTC
(In reply to Alexandre Rostovtsev from comment #12)
> Wine users, as a temporary workaround to emerge wine, try the following:
> 
> # ln -sf /usr/lib32/emul-linux/libjpeg.so.8 /usr/lib32/libjpeg.so

Or, as suggested in comment #9,
# ln -sf /usr/lib32/libjpeg.so.62 /usr/lib32/libjpeg.so

Not sure which workaround is less bad :/
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2014-02-10 06:57:32 UTC
the *jpeg* file moving code in src_install() is only supposed to be ran with USE=abi_x86_32 enabled, case of simple missing if and else
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2014-02-10 06:58:23 UTC
fixed in -r16