Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643526 - =app-admin/qtpass-1.2.1 fails to build: ld: cannot find -lqtpass
Summary: =app-admin/qtpass-1.2.1 fails to build: ld: cannot find -lqtpass
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vladimir Pavljuchenkov (SpiderX)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-05 12:07 UTC by Vincent de Phily
Modified: 2018-05-16 08:18 UTC (History)
6 users (show)

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


Attachments
build.log.gz (build.log.gz,2.75 KB, application/octet-stream)
2018-01-05 12:12 UTC, Vincent de Phily
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent de Phily 2018-01-05 12:07:52 UTC
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -o qtpass main.o qrc_resources.o   -L/var/tmp/portage/app-admin/qtpass-1.2.1/work/QtPass-1.2.1/main/../src/./ -lqtpass -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread 
x86_64-pc-linux-gnu-g++ -c -Os -march=native -pipe -DSINGLE_APP=1 -fPIC -std=gnu++11 -Wall -W -Wno-unknown-pragmas -D_REENTRANT -DVERSION="\"1.2.1\"" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o settingsconstants.o settingsconstants.cpp
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lqtpass
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:332: qtpass] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-admin/qtpass-1.2.1/work/QtPass-1.2.1/main'
make: *** [Makefile:71: sub-main-make_first] Error 2
make: *** Waiting for unfinished jobs....
Comment 1 Vincent de Phily 2018-01-05 12:09:00 UTC
# emerge --info '=app-admin/qtpass-1.2.1::gentoo'
Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/hardened, gcc-6.4.0, glibc-2.25-r9, 4.14.11-gentoomolto x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.11-gentoomolto-x86_64-Intel-R-_Core-TM-_i7-4800MQ_CPU_@_2.70GHz-with-gentoo-2.4.1
KiB Mem:     8122556 total,    143796 free
KiB Swap:    4095996 total,   4095996 free
Timestamp of repository gentoo: Fri, 05 Jan 2018 10:00:01 +0000
Head commit of repository gentoo: 68a437bad073601ed59a0a71efd390e5f07a1b2e
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::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.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

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

moltonel
    location: /home/work/c/ebuilds
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /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/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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://ftp.heanet.ie/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7 -l7 VERBOSE=1"
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 aac acl activities akonadi alsa amd64 apache2 apng avahi bash-completion btrfs bzip2 cdda cddb consolekit crash-reporter crypt cups cxx dbus declarative dvd ebook egl emacs encode epub erlang exif ffmpeg flac fontconfig go gstreamer gudev hardened iconv icu ipv6 jit jpeg jpeg2k json kde kdepim kwallet lto lzma marble mng mp3 mpeg mplayer mtp multilib mysql ncurses nls nptl ogg openexr opengl openmp openssl opus otr pam pcre pdf pgo pie plasma pm-utils png policykit postgres printsupport prison pulseaudio python qrcode qt4 qt5 readline rust samba scanner script sddm seccomp semantic-desktop shapefile silk spatialite speex sql sqlite ssl ssp startup-notification svg sysstat system-cairo system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-llvm system-sqlite taglib theora threads tiff truetype udisks unicode upnp usb v4l video vnc vorbis wayland webkit wifi x264 xattr xcb xmp xtpax xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext 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="pc" INPUT_DEVICES="evdev keyboard mouse synaptics" 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 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby22" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Vincent de Phily 2018-01-05 12:09:54 UTC
# emerge -pqv =app-admin/qtpass-1.2.1::gentoo
[ebuild     U ] app-admin/qtpass-1.2.1 [1.1.6]
Comment 3 Vincent de Phily 2018-01-05 12:12:04 UTC
Created attachment 513390 [details]
build.log.gz
Comment 4 Vincent de Phily 2018-01-05 12:25:57 UTC
Building with MAKEOPTS="-j1" works reliably, so this looks like a parallel build bug.

There doesn't seem to be a corresponding upstream bug at https://github.com/IJHack/qtpass/issues , so I guess you could force "-j1" in the ebuild for now, and file a bug upstream ?
Comment 5 Dennis Schridde 2018-01-20 21:14:23 UTC
See-Also: https://github.com/IJHack/QtPass/issues/350
Comment 6 Dennis Schridde 2018-01-22 21:16:42 UTC
Upstream fixed this in 2c7fccaf99a6c1e70944f058060ac5bd29e2680e.  The sed lines to remove tests are no longer necessary.

See-Also: https://github.com/IJHack/QtPass/commit/2c7fccaf99a6c1e70944f058060ac5bd29e2680e#diff-3172e8de21b0fd4adb8567a1d7b3e11f
Comment 7 Vladimir Pavljuchenkov (SpiderX) 2018-01-22 23:31:18 UTC
> The sed lines to remove tests are no longer necessary.

Actually, they are still needed.
We should run tests only with FEATURES="test", but we can remove one line from sed block.

I pushed a new commit.
Comment 8 Dennis Schridde 2018-03-19 21:42:31 UTC
(In reply to Vladimir Pavljuchenkov (SpiderX) from comment #7)
> > The sed lines to remove tests are no longer necessary.
> 
> Actually, they are still needed.
> We should run tests only with FEATURES="test", but we can remove one line
> from sed block.
> 
> I pushed a new commit.

It works fine with the patch and no sed, if one builds sub-main and sub-main-install_subtargets instead of "first_target" and "install".
Comment 9 Larry the Git Cow gentoo-dev 2018-05-16 08:18:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbce389e48b0996f21c14cd44a8492bcc5581f93

commit dbce389e48b0996f21c14cd44a8492bcc5581f93
Author:     Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>
AuthorDate: 2018-05-15 17:37:04 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-05-16 08:17:43 +0000

    app-admin/qtpass: 1.2.2 version bump
    
    1. Sorted in alphabetical order eclasses, keywords.
    2. Added USE-flag test.
    3. Fixed dependencies and src_prepare section.
    4. Fixed tests installation (patches are in upstream).
    5. Added installation of appdata.
    6. Added localization support (l10n eclass).
    
    Closes: https://bugs.gentoo.org/643526
    Closes: https://bugs.gentoo.org/642956
    Package-Manager: Portage-2.3.24, Repoman-2.3.6
    Closes: https://github.com/gentoo/gentoo/pull/6794

 app-admin/qtpass/Manifest            |  1 +
 app-admin/qtpass/qtpass-1.2.2.ebuild | 74 ++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)