Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585482 - dev-libs/injeqt-1.0.0-r1 fails to build - test/unit/dependencies-test.cpp:299: undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)'
Summary: dev-libs/injeqt-1.0.0-r1 fails to build - test/unit/dependencies-test.cpp:299...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 585384
  Show dependency tree
 
Reported: 2016-06-09 16:26 UTC by Michael Palimaka (kensington)
Modified: 2016-07-13 15:12 UTC (History)
0 users

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


Attachments
build.log (build.log,215.71 KB, text/x-log)
2016-06-09 16:26 UTC, Michael Palimaka (kensington)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Palimaka (kensington) gentoo-dev 2016-06-09 16:26:08 UTC
Created attachment 437016 [details]
build.log

Portage 2.2.28 (python 3.4.3-final-0, default/linux/x86/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.4.8-hardened-r1 i686)
=================================================================
System uname: Linux-4.4.8-hardened-r1-i686-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    32780684 total,  30857316 free
KiB Swap:    1951804 total,   1951804 free
Timestamp of repository gentoo: Wed, 08 Jun 2016 11:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::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.19.1::gentoo
sys-apps/sandbox:         2.10-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.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: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::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="-march=native -O2 -pipe -frecord-gcc-switches"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /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 -frecord-gcc-switches"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/ http://distfiles.gentoo.org/"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j7"
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 a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 jpeg kde kipi lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 x86 xattr xcb xcomposite xinerama xml xscreensaver 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" 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="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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-06-09 16:27:06 UTC
It builds OK with FEATURES="-test".
Comment 2 Maciej Mrozowski gentoo-dev 2016-06-10 19:00:05 UTC
Hmm, unable to reproduce..., FEATURES=test works fine here:

30/30 Test #30: /ready-object-behavior-test ...........................   Passed    0.00 sec

100% tests passed, 0 tests failed out of 30

Total Test time (real) =   0.09 sec
 * Tests succeeded.
>>> Completed testing dev-libs/injeqt-1.0.0-r1

My setup does not differ much from yours. You have:
CFLAGS -frecord-gcc-switches
LDFLAGS -Wl,--hash-style=gnu

I tried your flags but still builds. Have not tried to re-build QtTest with those flags.
In your build log:

cd /var/tmp/portage/dev-libs/injeqt-1.0.0-r1/work/injeqt-1.0.0_build/test && /usr/bin/cmake -E cmake_link_script CMakeFiles/dependencies-test.dir/link.txt --verbose=1
/usr/bin/i686-pc-linux-gnu-g++   -march=native -O2 -pipe -frecord-gcc-switches  -std=c++11 -Werror -W -Wall -Wextra -Wundef -Wunused -Wuninitialized -Wcast-align -Wpointer-arith -Woverloaded-virtual -Wnon-virtual-dtor -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -g -fprofile-arcs -ftest-coverage -O0   -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -fprofile-arcs -ftest-coverage -O0 CMakeFiles/dependencies-test.dir/unit/dependencies-test.cpp.o CMakeFiles/dependencies-test.dir/dependencies-test_automoc.cpp.o  -o dependencies-test -rdynamic /usr/lib/libQt5Test.so.5.5.1 -lgcov /usr/lib/libQt5Core.so.5.5.1

/usr/lib/libQt5Test.so.5.5.1 is clearly passed to linker so it must be something funky with that QtTest library of yours.
Have you tried rebuilding it?
What is the result of objdump -C -T /usr/lib/libQt5Test.so | grep qCompare

Mine is:
000000000000e650 g    DF .text  00000000000000da  Base        QTest::qCompare(float const&, float const&, char const*, char const*, char const*, int)
000000000000e770 g    DF .text  00000000000000da  Base        QTest::qCompare(double const&, double const&, char const*, char const*, char const*, int)
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-06-12 17:21:39 UTC
Issue still persists after rebuilding qttest.

# objdump -C -T /usr/lib/libQt5Test.so | grep qCompare
0000bc40 g    DF .text  000000ca  Base        QTest::qCompare(float const&, float const&, char const*, char const*, char const*, int)
0000bd50 g    DF .text  000000ca  Base        QTest::qCompare(double const&, double const&, char const*, char const*, char const*, int)
Comment 4 Maciej Mrozowski gentoo-dev 2016-06-12 21:10:37 UTC
I take it you don't have anything in /usr/local that would interfere (LD_PATH-wise).
What happens when you build injeqt manually, outside of portage?
Comment 5 Michael Palimaka (kensington) gentoo-dev 2016-06-15 13:34:35 UTC
I was able to reproduce this on a separate x86 box outside of portage.

Apparently this is a known issue upstream and was fixed in (the only change) 1.0.1 https://github.com/vogel/injeqt/compare/1.0.0...1.0.1
Comment 6 Michael Palimaka (kensington) gentoo-dev 2016-06-18 13:00:21 UTC
(In reply to Michael Palimaka (kensington) from comment #5)
> Apparently this is a known issue upstream and was fixed in (the only change)
> 1.0.1 https://github.com/vogel/injeqt/compare/1.0.0...1.0.1

Should I continue stabilisation of 1.0.0-r1 (as it is no regression), or can we shift the target to 1.0.1 (since there are minimal changes)?
Comment 7 Michael Palimaka (kensington) gentoo-dev 2016-07-13 15:12:08 UTC
1.0.1 is stable