Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 695694 - dev-qt/qtgui-5.12.5: undefined reference to `QHighDpiScaling::scaleAndOrigin
Summary: dev-qt/qtgui-5.12.5: undefined reference to `QHighDpiScaling::scaleAndOrigin
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-26 21:14 UTC by Axel Fischer
Modified: 2020-04-22 22:34 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,946.92 KB, text/x-log)
2019-09-26 21:15 UTC, Axel Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Fischer 2019-09-26 21:14:55 UTC
Emerging qtgui-5.12.5 result in build error qxcbwindow.cpp:(.text+0x4968): undefined reference to `QHighDpiScaling::scaleAndOrigin(QScreen const*, QPoint*)'


Reproducible: Always

Steps to Reproduce:
1.Update world where qtgui get updated to version 5.12.5

Actual Results:  
Build error: qxcbwindow.cpp:(.text+0x4968): undefined reference to `QHighDpiScaling::scaleAndOrigin(QScreen const*, QPoint*)'



build log: https://cloud.axel-fischer.net/s/Jmo4x8THAwqB8z4

~ $ emerge --info
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.29-r5, 5.3.1-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.3.1-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-8650U_CPU_@_1.90GHz-with-gentoo-2.6
KiB Mem:    16198932 total,  11768784 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Thu, 26 Sep 2019 20:30:01 +0000
Head commit of repository gentoo: c6d0858de5d855c28e2bfcaac7b05a8376a9ed47
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

axel
    location: /var/lib/layman/axel
    sync-type: laymansync
    sync-uri: https://vcs.axel-fischer.net/axel/gentoo-overlay.git
    masters: gentoo
    priority: 50

flussence
    location: /var/lib/layman/flussence
    sync-type: laymansync
    sync-uri: https://gitlab.com/flussence/overlay.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 acpi alsa alsa-plugin amd64 berkdb bluetooth branding bzip2 cairo clang cli consolekit crypt cxx dbus djvu dri dri3 drm egl emacs exif ffmpeg flac fontconfig gbm gdbm gif git glamor gold harfbuzz iconv icu imagemagick ipv6 jit jpeg jpeg2k jumbo-build latex libnotify libtirpc llvm lto mime mp3 mp4 mpeg mpi multilib ncurses network nls nptl offensive openal opengl openmp pam pango pcre pdf pgo png policykit pulseaudio readline seccomp smp sna sound spell split-usr ssl svg syslog taglib tcpd threads tiff truetype udev udisks unicode upower usb vaapi vdpau videos vulkan wifi xattr xcb xdg xft xkb xmpp xscreensaver zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Axel Fischer 2019-09-26 21:15:32 UTC
Created attachment 591136 [details]
build.log

Build log
Comment 2 Paul Bowden 2019-10-31 18:27:27 UTC
Confirmed Axel's findings, having 'gles2' as a GLOBAL flag has allowed qtgui-5.12.5 to compile without issue.

Reccomend changing 'gles2' as a default enable flag for dev-qt packages
Comment 3 Andreas Sturmlechner gentoo-dev 2019-10-31 20:41:37 UTC
Certainly not, breaks everything.
Comment 4 Davide Pesavento gentoo-dev 2019-11-02 17:41:32 UTC
Please don't randomly CC arch teams.
Comment 5 Douglas Paul 2019-11-07 14:50:14 UTC
I run into exactly the same problem, and the problem seems to be in the command line for the generated link command in the Makefile.

The problem stems from here:

Makefile.xcb_qpa_lib:LIBS          = $(SUBLIBS) /var/tmp/portage/dev-qt/qtgui-5.12.5/work/qtbase-everywhere-src-5.12.5/lib/libQt5ServiceSupport.a /var/tmp/portage/dev-qt/qtgui-5.12.5/work/qtbase-everywhere-src-5.12.5/lib/libQt5ThemeSupport.a /var/tmp/portage/dev-qt/qtgui-5.12.5/work/qtbase-everywhere-src-5.12.5/lib/libQt5FontDatabaseSupport.a /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libz.so /usr/lib64/libQt5LinuxAccessibilitySupport.a -lQt5AccessibilitySupport -lQt5Gui -lQt5DBus -lQt5Core /var/tmp/portage/dev-qt/qtgui-5.12.5/work/qtbase-everywhere-src-5.12.5/lib/libQt5AccessibilitySupport.a /usr/lib64/libGL.so /var/tmp/portage/dev-qt/qtgui-5.12.5/work/qtbase-everywhere-src-5.12.5/lib/libQt5Gui.so /var/tmp/portage/dev-qt/qtgui-5.12.5/work/qtbase-everywhere-src-5.12.5/lib/libQt5EdidSupport.a /usr/lib64/libQt5DBus.so /usr/lib64/libQt5Core.so -lpthread /usr/lib64/libX11-xcb.so /usr/lib64/libxcb-xinput.so /usr/lib64/libxcb-icccm.so /usr/lib64/libxcb-image.so /usr/lib64/libxcb-shm.so /usr/lib64/libxcb-keysyms.so /usr/lib64/libxcb-randr.so /usr/lib64/libxcb-render-util.so /usr/lib64/libxcb-render.so /usr/lib64/libxcb-shape.so /usr/lib64/libxcb-sync.so /usr/lib64/libxcb-xfixes.so /usr/lib64/libxcb-xinerama.so /usr/lib64/libxcb-xkb.so /usr/lib64/libxcb.so /usr/lib64/libXrender.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libm.so /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libxkbcommon-x11.so /usr/lib64/libxkbcommon.so /usr/lib64/libdl.so /usr/lib64/libGL.so /usr/lib64/libgthread-2.0.so /usr/lib64/libglib-2.0.so /usr/lib64/libfreetype.so /usr/lib64/libz.so  

The problem is that there is a -lQt5Gui in that list before /var/tmp/portage/dev-qt/qtgui-5.12.5/work/qtbase-everywhere-src-5.12.5/lib/libQt5Gui.so ... and this is the package building the Qt5Gui library. This uses the existing Qt5Gui library on your system in preference to the one currently being built. If you remove the -lQt5Gui from this variable, the merge succeeds. I guess you could also delete your /usr/lib*/libQt5Gui.so* as well ...

Of course, once you have that version merged, you can merge it again with no problems. 

Strangely, Axel Fischer's build.log isn't exactly the same -- but his has /usr/lib64/libQt5Gui.so instead of -lQt5Gui ... which causes the same problem.

I didn't check where this comes from, since the build system seems pretty complicated.