Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632038 - emerge hangs while compiling app-emulation/wine-vanilla
Summary: emerge hangs while compiling app-emulation/wine-vanilla
Status: RESOLVED DUPLICATE of bug 613128
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-26 10:41 UTC by Pavel
Modified: 2017-09-27 06:20 UTC (History)
0 users

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


Attachments
emerge_info (emerge_info,185.79 KB, text/plain)
2017-09-26 10:41 UTC, Pavel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel 2017-09-26 10:41:16 UTC
Created attachment 496436 [details]
emerge_info

Hello. Let us compile wine:
# emerge -av app-emulation/wine-vanilla

The compilation process hangs around here (absolutely no progress):
../../tools/winegcc/winegcc -o user32.dll.fake -B../../tools/winebuild -fasynchronous-unwind-tables -shared /var/tmp/portage/app-emulation/wine-vanilla-2.17/work/wine-2.17/dlls/user32/user32.spec \
  button.o caret.o class.o clipboard.o combo.o cursoricon.o dde_client.o dde_misc.o dde_server.o \
  defdlg.o defwnd.o desktop.o dialog.o driver.o edit.o exticon.o focus.o hook.o icontitle.o input.o \
  listbox.o lstr.o mdi.o menu.o message.o misc.o msgbox.o nonclient.o painting.o property.o \
  resource.o scroll.o spy.o static.o sysparams.o text.o uitools.o user_main.o win.o winhelp.o \
  winpos.o winproc.o winstation.o wsprintf.o user32.res -limm32 -lusp10 -lgdi32 -lversion -ladvapi32 \
  ../../libs/port/libwine_port.a -Wb,-dimm32 -Wb,-dusp10 -Wl,-O1 -Wl,--as-needed
make[1]: Leaving directory '/var/tmp/portage/app-emulation/wine-vanilla-2.17/work/wine-2.17-abi_x86_32.x86/dlls/user32'

I tried to understand the reasons:
$ ps -A | grep emerge
 2615 tty1     00:00:11 emerge
$ pstree 2615
 emerge
   ─sandbox
     ─ebuild.sh
       ─ebuild.sh─┬─emake─-make-─make--─i686-pc-linux-g─┬─as
                  │                                     └─cc1
                  └─tee

Let's kill farthest process (in the hope of compile process resuming):
# kill -KILL <as pid>
$ ps -A | grep as
 2643 tty1     00:00:00 as <defunct>  # compiling is still not resumed

What about cc1:
# kill -KILL <cc1 pid>
After this command "emerge" is resumed and exit with error.

I think that this is gcc error but you can localize the error.

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/6.4.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-6.4.0/work/gcc-6.4.0/configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/6.4.0 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/6.4.0/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/6.4.0 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/6.4.0/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/6.4.0/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/6.4.0/include/g++-v6 --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/6.4.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 6.4.0 p1.0' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --with-arch=i686 --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --without-isl --enable-libsanitizer --disable-default-pie --enable-default-ssp
Thread model: posix
gcc version 6.4.0 (Gentoo 6.4.0 p1.0)
Comment 1 Pavel 2017-09-26 10:42:51 UTC
Portage 2.3.10 (python 3.4.6-final-0, default/linux/x86/13.0, gcc-6.4.0, glibc-2.25-r5, 4.13.3-gentoo i686)
=================================================================
System uname: Linux-4.13.3-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_P7350_@_2.00GHz-with-gentoo-2.4.1
KiB Mem:     3071488 total,    497692 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 25 Sep 2017 21:30:01 +0000
Head commit of repository gentoo: 63c56087785f0a65d287ed9faa67ecfc80e85ce3
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29 p1.0) 2.29
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.9.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.31.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="x86 ~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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
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 multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://gentoo.bloodhost.ru/ ftp://xeon.gentoo.ru/mirrors/gentoo/distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline savedconfig seccomp session ssl tcpd unicode x86 xattr zlib" ABI_X86="32" 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" 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 author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Pavel 2017-09-26 10:51:31 UTC
# find / -name cc1
/usr/libexec/gcc/i686-pc-linux-gnu/6.4.0/cc1
Comment 3 Pavel 2017-09-27 06:17:10 UTC
This problem is same as https://bugs.gentoo.org/show_bug.cgi?id=613128, i set "-mtune=generic" and "wine" has been compiled.
Comment 4 Pavel 2017-09-27 06:20:12 UTC

*** This bug has been marked as a duplicate of bug 613128 ***