Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613128 - app-emulation/wine compilation hang for versions >=1.9.22 with gcc-5.4.0
Summary: app-emulation/wine compilation hang for versions >=1.9.22 with gcc-5.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Wine Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Keywords:
: 632038 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-03-18 16:53 UTC by Andrés Becerra Sandoval
Modified: 2019-06-03 03:05 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrés Becerra Sandoval 2017-03-18 16:53:56 UTC
Compilation hangs forever at dll/ntdll/server.c

extract of ps -ef --cols=1000 output:

 /usr/i686-pc-linux-gnu/gcc-bin/5.4.0/i686-pc-linux-gnu-gcc -c -o server.o /var/tmp/portage/app-emulation/wine-2.2/work/wine-2.2/dlls/ntdll/server.c -I. -I/var/tmp/portage/app-emulation/wine-2.2/work/wine-2.2/dlls/ntdll -I../../include -I/var/tmp/portage/app-emulation/wine-2.2/work/wine-2.2/include -D__WINESRC__ -D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe -fno-tree-loop-distribute-patterns -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -fno-omit-frame-pointer -O2 -march=i686 -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
portage  14605 14602 99 11:54 pts/0    00:00:39 /usr/libexec/gcc/i686-pc-linux-gnu/5.4.0/cc1 -quiet -I . -I /var/tmp/portage/app-emulation/wine-2.2/work/wine-2.2/dlls/ntdll -I ../../include -I /var/tmp/portage/app-emulation/wine-2.2/work/wine-2.2/include -D __WINESRC__ -D _NTSYSTEM_ -D _REENTRANT -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=0 /var/tmp/portage/app-emulation/wine-2.2/work/wine-2.2/dlls/ntdll/server.c -quiet -dumpbase server.c -march=i686 -auxbase-strip server.o -O2 -Wall -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -fPIC -fno-tree-loop-distribute-patterns -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong -o -
portage  14609 14602  0 11:54 pts/0    00:00:00 /usr/lib/gcc/i686-pc-linux-gnu/5.4.0/../../../../i686-pc-linux-gnu/bin/as -I . -I /var/tmp/portage/app-emulation/wine-2.2/work/wine-2.2/dlls/ntdll -I ../../include -I /var/tmp/portage/app-emulation/wine-2.2/work/wine-2.2/include --32 -o server.o

emerge --info output:

Portage 2.3.5 (python 2.7.13-final-0, default/linux/x86/13.0, gcc-5.4.0, glibc-2.24-r1, 4.10.3-gentoo i686)
=================================================================
System uname: Linux-4.10.3-gentoo-i686-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-gentoo-2.3
KiB Mem:     6094880 total,    127196 free
KiB Swap:    1998844 total,   1998792 free
Timestamp of repository gentoo: Sat, 18 Mar 2017 14:22:17 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.5.3::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.1::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

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

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/lib64/libreoffice/program/sofficerc /usr/share/config /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 buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer 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="http://gentoo.osuosl.org"
LANG="es_CO.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/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="acl berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline 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" 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="libinput keyboard mouse" 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" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andrés Becerra Sandoval 2017-03-18 16:56:01 UTC
Viktor Yu. Kovalskiy submitted a bug report upstream (URL).
Comment 2 Adam Feldman gentoo-dev 2017-03-19 04:03:28 UTC
Can you paste the output of:
grep PATCH_VER /var/db/pkg/sys-devel/gcc-5.4.0-r3/gcc-5.4.0-r3.ebuild

Also, I successfully compiled wine-2.0 with gcc-5.4.0-r3 about a day ago on a ~amd64 system, so it might be worth investigating whether anyone can reproduce this on a stable system.
Comment 3 Viktor Yu. Kovalskii 2017-03-19 15:07:12 UTC
I test compilation of >=app-emalution/wine-1.9.22 and found that compilation fine with CFLAGS="-O2 -march=i686 -mtune=generic" but hangs with CFLAGS="-O2 -march=i686".

(In reply to NP-Hardass from comment #2)

> Can you paste the output of:
> grep PATCH_VER /var/db/pkg/sys-devel/gcc-5.4.0-r3/gcc-5.4.0-r3.ebuild
> 
> Also, I successfully compiled wine-2.0 with gcc-5.4.0-r3 about a day ago on
> a ~amd64 system, so it might be worth investigating whether anyone can
> reproduce this on a stable system.

grep PATCH_VER /var/db/pkg/sys-devel/gcc-5.4.0-r3/gcc-5.4.0-r3.ebuild
PATCH_VER="1.3"
Comment 4 Adam Feldman gentoo-dev 2017-03-19 19:04:39 UTC
(In reply to NP-Hardass from comment #2)
> Can you paste the output of:
> grep PATCH_VER /var/db/pkg/sys-devel/gcc-5.4.0-r3/gcc-5.4.0-r3.ebuild
> 
> Also, I successfully compiled wine-2.0 with gcc-5.4.0-r3 about a day ago on
> a ~amd64 system, so it might be worth investigating whether anyone can
> reproduce this on a stable system.

Sorry, meant to say on a amd64 system, not an ~amd64 system.  What about changing the -O level?  Does -O1 allow it to compile?  I'll see if I can get a system up and running soon to test more extensively locally.
Comment 5 Adam Feldman gentoo-dev 2017-03-20 12:49:21 UTC
Alright, I successfully reproduced the issue on a stable system with gcc-5.4.0{,-r3}  wine env: USE="-abi_x86_64" CFLAGS="-O2 -march=i686"  I'll see if I can get a test of 5.4.0 on another distro so we can see if it appears Gentoo specific (before I go digging further on our end)
Comment 6 Pavel 2017-09-27 06:20:12 UTC
*** Bug 632038 has been marked as a duplicate of this bug. ***
Comment 7 Viktor Yu. Kovalskii 2017-09-27 10:07:40 UTC
Upstream (GCC) bug was reported:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78911

I think we should report information from our Bugzilla to GCC Bugzilla.
Comment 8 Artem S. Tashkinov 2019-06-03 00:25:23 UTC
This has long been fixed upstream (GCC in this case). Please close this bug report.