Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 308837

Summary: app-emulation/wine-1.1.35 failed to configure within portage (reverse with manual)
Product: Gentoo Linux Reporter: Timothy Dubois <psfere>
Component: Current packagesAssignee: Wine Maintainers <wine>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: wine-1.1.35 config.log

Description Timothy Dubois 2010-03-10 15:33:23 UTC
When manually configuring within a sandbox wine completely configures and possibly compile but when run through portage, it fails.

Reproducible: Always

Steps to Reproduce:
1. emerge -av wine

Actual Results:  
~ # USE="opengl xinerama" emerge -av wine

 * IMPORTANT: 3 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    ] app-emulation/wine-1.1.35  USE="X cups gecko ncurses opengl perl png ssl threads truetype xinerama -alsa (-capi) -custom-cflags -dbus (-esd) -fontconfig -gnutls (-gphoto2) -gsm (-hal) -jack (-jpeg) -lcms -ldap (-mp3) -nas -openal -oss -samba (-scanner) -test -win64 -xcomposite -xml" 0 kB                                                                          

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-emulation/wine-1.1.35
 * wine-1.1.35.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                [ ok ]
 * wine_gecko-1.0.0-x86.cab RMD160 SHA1 SHA256 size ;-) ...                                                                                                                           [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                [ ok ]
 * CPV:  app-emulation/wine-1.1.35                                                                                                                                                          
 * REPO: gentoo                                                                                                                                                                             
 * USE:  X amd64 cups elibc_glibc gecko kernel_linux multilib ncurses opengl perl png ssl threads truetype userland_GNU xinerama                                                            
>>> Unpacking source...                                                                                                                                                                     
>>> Unpacking wine-1.1.35.tar.bz2 to /var/tmp/portage/app-emulation/wine-1.1.35/work                                                                                                        
>>> Source unpacked in /var/tmp/portage/app-emulation/wine-1.1.35/work                                                                                                                      
>>> Preparing source in /var/tmp/portage/app-emulation/wine-1.1.35/work/wine-1.1.35 ...                                                                                                     
 * Applying wine-1.1.15-winegcc.patch ...                                                                                                                                              [ ok ]
>>> Source prepared.                                                                                                                                                                         
>>> Configuring source in /var/tmp/portage/app-emulation/wine-1.1.35/work/wine-1.1.35 ...                                                                                                    
 * econf: updating wine-1.1.35/tools/config.guess with /usr/share/gnuconfig/config.guess                                                                                                     
 * econf: updating wine-1.1.35/tools/config.sub with /usr/share/gnuconfig/config.sub                                                                                                         
./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 --sysconfdir=/etc/wine --without-alsa --without-capi --without-cms --with-cups --with-curses --without-esd --without-fontconfig --without-gnutls --without-gphoto --without-gsm --without-hal --without-jack --without-jpeg --without-ldap --without-mpg123 --without-nas --without-openal --with-opengl --with-openssl --without-oss --with-png --with-pthread --without-sane --disable-tests --with-freetype --disable-win64 --with-x --without-xcomposite --with-xinerama --without-xml --without-xslt                                                        
checking build system type... i686-pc-linux-gnu                                                                                                                                              
checking host system type... i686-pc-linux-gnu                                                                                                                                               
checking whether make sets $(MAKE)... yes                                                                                                                                                    
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32                                                                                                                           
checking for C compiler default output file name... a.out                                                                                                                                    
checking whether the C compiler works... configure: error: in `/var/tmp/portage/app-emulation/wine-1.1.35/work/wine-1.1.35':                                                                 
configure: error: cannot run C compiled programs.                                                                                                                                            
If you meant to cross compile, use `--host'.                                                                                                                                                 
See `config.log' for more details.                                                                                                                                                           

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-emulation/wine-1.1.35/work/wine-1.1.35/config.log
 * ERROR: app-emulation/wine-1.1.35 failed:                               
 *   econf failed                                                         
 *                                                                        
 * Call stack:                                                            
 *     ebuild.sh, line   54:  Called src_configure                        
 *   environment, line 2747:  Called econf '--sysconfdir=/etc/wine' '--without-alsa' '--without-capi' '--without-cms' '--with-cups' '--with-curses' '--without-esd' '--without-fontconfig' '--without-gnutls' '--without-gphoto' '--without-gsm' '--without-hal' '--without-jack' '--without-jpeg' '--without-ldap' '--without-mpg123' '--without-nas' '--without-openal' '--with-opengl' '--with-openssl' '--without-oss' '--with-png' '--with-pthread' '--without-sane' '--disable-tests' '--with-freetype' '--disable-win64' '--with-x' '--without-xcomposite' '--with-xinerama' '--without-xml' '--without-xslt'                                                                                                                                                                
 *     ebuild.sh, line  544:  Called die                                                                                                                                                     
 * The specific snippet of code:                                                                                                                                                             
 *                      die "econf failed"                                                                                                                                                   
 *                                                                                                                                                                                           
 * If you need support, post the output of 'emerge --info =app-emulation/wine-1.1.35',                                                                                                       
 * the complete build log and the output of 'emerge -pqv =app-emulation/wine-1.1.35'.                                                                                                        
 * The complete build log is located at '/var/tmp/portage/app-emulation/wine-1.1.35/temp/build.log'.                                                                                         
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/wine-1.1.35/temp/environment'.                                                                                  
 * S: '/var/tmp/portage/app-emulation/wine-1.1.35/work/wine-1.1.35'                                                                                                                          

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

>>>  '/var/tmp/portage/app-emulation/wine-1.1.35/temp/build.log'

 * Messages for package app-emulation/wine-1.1.35:

 * ERROR: app-emulation/wine-1.1.35 failed:
 *   econf failed                          
 *                                         
 * Call stack:                             
 *     ebuild.sh, line   54:  Called src_configure
 *   environment, line 2747:  Called econf '--sysconfdir=/etc/wine' '--without-alsa' '--without-capi' '--without-cms' '--with-cups' '--with-curses' '--without-esd' '--without-fontconfig' '--without-gnutls' '--without-gphoto' '--without-gsm' '--without-hal' '--without-jack' '--without-jpeg' '--without-ldap' '--without-mpg123' '--without-nas' '--without-openal' '--with-opengl' '--with-openssl' '--without-oss' '--with-png' '--with-pthread' '--without-sane' '--disable-tests' '--with-freetype' '--disable-win64' '--with-x' '--without-xcomposite' '--with-xinerama' '--without-xml' '--without-xslt'                                                                                                                                                                
 *     ebuild.sh, line  544:  Called die                                                                                                                                                     
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =app-emulation/wine-1.1.35',
 * the complete build log and the output of 'emerge -pqv =app-emulation/wine-1.1.35'.
 * The complete build log is located at '/var/tmp/portage/app-emulation/wine-1.1.35/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/wine-1.1.35/temp/environment'.
 * S: '/var/tmp/portage/app-emulation/wine-1.1.35/work/wine-1.1.35'

Expected Results:  
Compiled ;P

Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4600+-with-gentoo-1.12.13
Timestamp of tree: Wed, 10 Mar 2010 13:45:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org/ "
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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="/usr/local/portage/layman/kde-sunset"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 jpeg kde ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis x264 xinerama xml xorg 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 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" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia virtualbox"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2010-03-10 15:43:55 UTC
So, what was in config.log ?
Did you check gcc-config already ?
Comment 2 Timothy Dubois 2010-03-10 16:03:05 UTC
Created attachment 223009 [details]
wine-1.1.35 config.log
Comment 3 Timothy Dubois 2010-03-10 16:09:27 UTC
(In reply to comment #2)
> Created an attachment (id=223009) [details]
> wine-1.1.35 config.log
> 

gcc-config -c:
  x86_64-pc-linux-gnu-4.3.4
Comment 4 SpanKY gentoo-dev 2010-03-15 16:48:34 UTC
so try the simple test that wine is failing on:
echo 'main(){}' > conftest.c
x86_64-pc-linux-gnu-gcc -m32  -O2 -pipe  -Wl,-O1 conftest.c
./a.out
Comment 5 Timothy Dubois 2010-03-17 16:02:03 UTC
(In reply to comment #4)
> so try the simple test that wine is failing on:
> echo 'main(){}' > conftest.c
> x86_64-pc-linux-gnu-gcc -m32  -O2 -pipe  -Wl,-O1 conftest.c
> ./a.out
> 

bash: ./a.out: cannot execute binary file
Comment 6 SpanKY gentoo-dev 2010-03-17 23:16:28 UTC
your host system is misconfigured ... check your kernel 32bit settings

otherwise, please seek assistance on the forums.  this isnt a bug in wine.
Comment 7 Timothy Dubois 2010-03-18 00:50:34 UTC
(In reply to comment #6)
> your host system is misconfigured ... check your kernel 32bit settings
> 
> otherwise, please seek assistance on the forums.  this isnt a bug in wine.
> 
For those that had this specific issue this will fix it:

USE="multilib" FEATURES="-sandbox" emerge gcc portage
Comment 8 Rafał Mużyło 2010-03-18 01:28:55 UTC
Why do you turn off sandbox ?
Comment 9 SpanKY gentoo-dev 2010-03-18 06:15:56 UTC
broken multilib often hits troubles with sandbox.  kernel/gcc/glibc/sandbox need to all be properly supporting multilib for any of it to work.