Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637410 - dev-qt/qtgui-5.9.2 linker error: undefined reference to 'qt_blend_rgb16_on_argb32_neon(unsigned char*, int, unsigned char const*, int, int, int, int)'
Summary: dev-qt/qtgui-5.9.2 linker error: undefined reference to 'qt_blend_rgb16_on_ar...
Status: RESOLVED DUPLICATE of bug 639494
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal major (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2017-11-13 21:06 UTC by Steve Arnold
Modified: 2017-12-03 05:56 UTC (History)
2 users (show)

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


Attachments
build log (qtgui-5.9.2-20171113-200525.log,465.39 KB, text/plain)
2017-11-13 21:08 UTC, Steve Arnold
Details
override failing neon test in mkspecs (qtgui-5.9.2-mkspecs-native-arm-has-neon.patch,372 bytes, patch)
2017-11-19 05:04 UTC, Steve Arnold
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2017-11-13 21:06:11 UTC
This looks a lot like that gcc bug (which is supposedly fixed) and has essentially the same failure without LTO (except without the temp/cc8lOxz0.ltrans28.ltrans.o reference).

Forcing the Qt arm cpu features to neon doesn't change anything either, but everything else up to qtgui builds fine (and it all builds fine on x86).

Portage 2.3.13 (python 2.7.14-final-0, hardened/linux/arm/armv7a, gcc-6.4.0, glibc-2.25-r9, 4.11.0-rc4-tegra-r0 armv7l)
=================================================================
System uname: Linux-4.11.0-rc4-tegra-r0-armv7l-ARMv7_Processor_rev_3_-v7l-with-gentoo-2.4.1
KiB Mem:     2061280 total,    384280 free
KiB Swap:    1548280 total,   1538296 free
Timestamp of repository gentoo: Thu, 09 Nov 2017 11:30:01 +0000
Head commit of repository gentoo: 488bf2fc89fdfc836da1552680a9700006197231
Head commit of repository arm_support: fdfedc80436c20c6fe94bdf610591a5453e01889

Head commit of repository nerdboy: 70690cea2d09d40aa55bf009d2c26b2ebdf0bd72

sh bash 4.4_p12
ld GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.6::gentoo
dev-util/ccache:          3.3.4::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.34.6::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.27::gentoo, 2.28-r2::nerdboy, 2.29.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r4::ada, 6.3.0::ada, 6.4.0::ada, 7.1.0-r1::ada, 7.2.0::ada
sys-devel/gcc-config:     1.9.0::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-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-umask: 022
    sync-uri: rsync://prime.arnolds.bogus/gentoo-portage
    sync-user: portage:portage
    priority: -1000
    sync-rsync-extra-opts: 

arm_support
    location: /usr/local/arm
    sync-type: git
    sync-umask: 022
    sync-uri: https://github.com/gentoo/arm.git
    sync-user: portage:portage
    masters: gentoo

nerdboy
    location: /usr/local/portage
    sync-type: git
    sync-umask: 022
    sync-uri: https://github.com/sarnold/portage-overlay.git
    sync-user: portage:portage
    masters: gentoo

ada
    location: /var/lib/layman/ada
    sync-umask: 022
    sync-user: portage:portage
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon-fp16 -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -flto=2"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /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="-march=armv7-a -mtune=cortex-a9 -mfpu=neon-fp16 -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -flto=2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon-fp16 -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -flto=2 -fuse-linker-plugin"
MAKEOPTS="-j5"
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="7zip X acl alsa apache2 arm armada armv5te armv6 armv6t2 berkdb bluetooth bzip2 cacert cairo caps ccache cdda cddb cgroups cli consolekit cracklib crypt cups curl cxx dbus dejavu distcc djvu dri dri3 drm egl eglfs enchant etnaviv evdev expat fam ffmpeg flac fontconfig fortran gbm gd gdbm git gles1 gles2 glib glx gmp gnome-keyring gnome-online-accounts gnutls gpm graphviz gs gstreamer gtk gtk3 gudev guile hardened howl hwdb ibus iconv imlib imx innodb introspection ipv6 jbig jpeg jpeg2k kms libnotify logrotate lto lua lzma modules mp3 ncurses neon networkmanager nls nptl nptlonly ogg openc opengl openmp openpgp opus pam pango pax pcre pdf pic pie pkcs11 png policykit postgres premount pulseaudio python qml qt5 readline sasl seccomp session snmp spell sqlite ssl ssp subversion svg system-icu system-libvpx tcpd threads tiff truetype udev udisks unicode urandom usb v4l vala vorbis vpx wayland weston wheel x264 xattr xml xorg xpm xtpax zeroconf zip zlib" ALSA_CARDS="soc_imx_sgtl5000 usb-audio" APACHE2_MODULES="actions alias auth_digest 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 proxy proxy_connect proxy_http 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_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" CURL_SSL="openssl" 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="keyboard mouse evdev" KERNEL="linux" L10N="en_US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby24 ruby22" USERLAND="GNU" VIDEO_CARDS="imx vivante" 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 1 Steve Arnold archtester gentoo-dev 2017-11-13 21:08:17 UTC
Created attachment 504124 [details]
build log
Comment 2 Spekadyon 2017-11-17 09:31:58 UTC
Same problem on a Raspberry Pi 3B (armv7-a). 
If it may help, no compilation failure is encountered when qtbase is cross-compiled from git sources on an x86_64 host (using -device linux-rasp-pi3-vc4-g++ as ./configure option)...
Comment 3 Steve Arnold archtester gentoo-dev 2017-11-19 05:02:59 UTC
Turns out native arm with "normal" cflags is too confusing for qt configure; it's literally failing its own simd (neon) test and fails to configure the neon cpu feature, thus the linker fail.  A small mkspecs patch works to force neon on and completes the build, but I'm not sure what the proper way is wrt to the eclass.  Feel free to improve it ;)
Comment 4 Steve Arnold archtester gentoo-dev 2017-11-19 05:04:45 UTC
Created attachment 504738 [details, diff]
override failing neon test in mkspecs
Comment 5 Michael Palimaka (kensington) gentoo-dev 2017-11-19 06:04:08 UTC
I don't know a lot about neon unfortunately.

Is this condition true?
#if defined(__ARM_NEON) || defined(__ARM_NEON__)

Any idea where/how these get defined?
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2017-11-19 06:54:23 UTC
This is a "simple" case of CFLAGS/CXXFLAGS/CXX/etc... not being respected during configure.

(In reply to Michael Palimaka (kensington) from comment #5)
> I don't know a lot about neon unfortunately.
> 
> Is this condition true?
> #if defined(__ARM_NEON) || defined(__ARM_NEON__)
> 
> Any idea where/how these get defined?

The compiler/preprocessor automatically defines those depending on the -mfpu option.
Comment 7 Steve Arnold archtester gentoo-dev 2017-11-19 21:14:07 UTC
Those configure tests are pretty opaque regardless, and I don't have the time or desire to be the qt guy...  Anyway, no amount of typical flag fiddling seems to work here, so it really needs the patch or an eclass hack of some sort.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2017-12-03 05:56:30 UTC
Marking as duplicate, as it is essentially the same bug.

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