Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568442 - dev-qt/qtgui-5.5.1 fails to build - QT_MGE_PGE_PATTERN: own own placehol%{if%{ifQIODe::re::read (QFi"../"../3 Cannot process input: '../3rdpardpa'. Stop.
Summary: dev-qt/qtgui-5.5.1 fails to build - QT_MGE_PGE_PATTERN: own own placehol%{if%...
Status: RESOLVED DUPLICATE of bug 552942
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-16 15:41 UTC by Sernin van de Krol
Modified: 2015-12-18 23:31 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,408.43 KB, text/plain)
2015-12-16 15:41 UTC, Sernin van de Krol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sernin van de Krol 2015-12-16 15:41:09 UTC
qtgui failed to merge while trying to install lxqt-meta.


Reproducible: Always

Steps to Reproduce:
Short: emerge =dev-qt/qtgui-5.5.1 -v1a

Long, but exact method followed:
1. Put the following in package.keywords, most has been taken from the LXQT page on the Gentoo Wiki:
dev-libs/libdbusmenu-qt
dev-libs/libqtxdg
dev-qt/*
kde-frameworks/extra-cmake-modules
kde-frameworks/kf-env
kde-frameworks/kguiaddons
kde-frameworks/kwindowsystem
kde-frameworks/solid
kde-plasma/libkscreen
lxqt-base/*
media-gfx/lximage-qt
x11-misc/obconf-qt
x11-misc/pcmanfm-qt
x11-misc/sddm
x11-misc/xdg-utils
2. Put the following in package.use:
dev-libs/libpcre pcre16
dev-util/cmake -qt5
3. emerge lxqt-meta -va
Actual Results:  
Emerge fails to compile qtgui

Expected Results:  
qtgui should have compiled and installed normally, allowing emerge to continue

Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/x86/13.0/desktop, gcc-4.8.5, glibc-2.21-r1, 4.0.5-gentoo i686)
=================================================================
System uname: Linux-4.0.5-gentoo-i686-Intel-R-_Pentium-R-_III_Mobile_CPU_1133MHz-with-gentoo-2.2
KiB Mem:      247500 total,     38064 free
KiB Swap:    1048348 total,   1047152 free
Timestamp of repository gentoo: Sat, 12 Dec 2015 13:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

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

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -mno-sahf"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
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=pentium3 -mno-sahf"
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 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://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm iconv ipv6 jpeg lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt5 readline sdl seccomp session spell sse ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 x86 xattr xcb xml xv xvid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau nv" 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, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Sernin van de Krol 2015-12-16 15:41:44 UTC
Created attachment 419370 [details]
build.log
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2015-12-16 15:46:39 UTC
> KiB Mem:      247500 total,     38064 free

did you run out of memory?
Comment 3 Sernin van de Krol 2015-12-16 15:55:04 UTC
I don't think I ran out of memory. There is a 1 GB swap partition and nothing in dmesg or syslog to indicate out of memory. Only things running were syslog-ng, cronie and sshd.
Running that last command from a shell gives the same output.
Comment 4 josef.95 2015-12-16 17:08:16 UTC
Hm, would this builds with latest stable gcc-4.9.3 ?
Comment 5 Sernin van de Krol 2015-12-17 12:45:38 UTC
Same error with the stable gcc 4.9. Remerging qtdbus (the package with qdbusxml2cpp) with the new gcc didn't help either.

Also, I searched for QT_MGE_PGE_PATTERN and came across at least one case of faulty memory. To be sure I am now running memtest86+ on the machine, it has currently completed 6 passes without errors.
Comment 6 Sernin van de Krol 2015-12-18 23:12:50 UTC
I did some more research and got some new, weird, more usable results:

I recompiled sys-apps/dbus and dev-qt/qtcore with gcc 4.9. Those were the first candidates, because glibc should probably give issues much earlier if something is wrong.
Then I recompiled dev-qt/qtdbus, and tried to run it in the leftover directory from the last compile attempted by portage.

qdbusxml2cpp started printing the following message in an infinite loop:
Incompatible processor. This Qt build requires the following features: sse2

Weirdest thing ever, cause my pentium 3 has pentium3 as march. I know -march=native is the preferred way, but is unusable if you want to do stuff with distcc.
The instructions I followed during setup are those found on the Gentoo Wiki: https://wiki.gentoo.org/wiki/Safe_CFLAGS#Find_CPU-specific_options

I don't know how any sse2 instructions would have gotten in with my current CFLAGS, but I am tempted to think something in de Qt build system is enabling it, because it seems to know about using them.
Also there is this line in the build.log supporting my claim:
i686-pc-linux-gnu-g++ -c -O2 -march=pentium3 -mno-sahf -msse2 -mfpmath=sse
And my CFLAGS:
CFLAGS="-O2 -march=pentium3 -mno-sahf"

Looking at the previous lines of the build.log reveals Qt assuming a lot of things about the processor. (I cut some stuff for clarity.)

Build options:
  Configuration .......... *snip* avx avx2 *snip* sse2 sse3 sse4_1 sse4_2 ssse3 *snip*

Which is strange, because above that it clearly states:

Build type:    linux-g++ (i386, CPU features: mmx sse)
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2015-12-18 23:31:45 UTC
Thanks for the analysis. This is a known bug.

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