Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qtchooser(?) calling wrong qt4 executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
emsy
n00b
n00b


Joined: 16 Dec 2011
Posts: 23

PostPosted: Mon Jan 12, 2015 1:34 am    Post subject: qtchooser(?) calling wrong qt4 executables Reply with quote

Code:

$ emerge -DNpvu world

These are the packages that would be merged, in order:

Calculating dependencies /
... done!
[ebuild     U  ] net-p2p/bitcoin-qt-0.9.3-r1 [0.8.6] USE="dbus kde qrcode -1stclassmsg -ljr% -ljr-antispam% {-test%} -upnp (-ipv6%*)" LINGUAS="-ach% -af_ZA -ar -be_BY% -bg -bs -ca -ca@valencia% -ca_ES -cmn% -cs -cy -da -de -el_GR -en -eo -es -es_CL -es_DO% -es_MX% -es_UY% -et -eu_ES -fa -fa_IR -fi -fr -fr_CA -gl% -gu_IN -he -hi_IN -hr -hu -id_ID% -it -ja -ka% -kk_KZ% -ko_KR% -ky% -la -lt -lv_LV -mn% -ms_MY% -nb -nl -pam% -pl -pt_BR -pt_PT -ro_RO -ru -sah% -sk -sl_SI% -sq% -sr -sv -th_TH -tr -uk -ur_PK% -uz@Cyrl% -vi% -vi_VN% -zh_CN -zh_HK% -zh_TW" 0 KiB
[ebuild     U  ] net-misc/networkmanager-1.0.0 [0.9.10.1_pre20141101] USE="bluetooth connection-sharing consolekit dhcpcd gnutls introspection modemmanager ncurses ppp resolvconf vala wext wifi -dhclient -nss (-selinux) -systemd -teamd {-test} -zeroconf" 0 KiB


upgrading to net-misc/networkmanager-1.0.0 :

Code:

...
Making all in qt
make[4]: Entering directory '/var/tmp/portage/net-misc/networkmanager-1.0.0/work/NetworkManager-1.0.0/examples/C/qt'
moc-qt4 -i monitor-nm-running.cpp -o monitor-nm-running.moc
moc-qt4: could not exec '/usr/lib64/qt4/bin/moc-qt4': No such file or directory
Makefile:810: recipe for target 'monitor-nm-running.moc' failed
make[4]: *** [monitor-nm-running.moc] Error 1
...


upgrading to net-p2p/bitcoin-qt-0.9.3-r1 :

Code:

...
Making all in qt
make[3]: Entering directory '/var/tmp/portage/net-p2p/bitcoin-qt-0.9.3-r1/work/bitcoin-0.9.3/src/qt'
test -f /usr/bin/protoc && /usr/bin/protoc --cpp_out=. --proto_path=/var/tmp/portage/net-p2p/bitcoin-qt-0.9.3-r1/work/bitcoin-0.9.3/src/qt /var/tmp/portage/net-p2p/bitcoin-qt-0.9.3-r1/work/bitcoin-0.9.3/src/qt/paymentrequest.proto  || \
  echo error: could not build paymentrequest.pb.h
uic-qt4: could not exec '/usr/lib64/qt4/bin/uic-qt4': No such file or directory
uic-qt4: could not exec '/usr/lib64/qt4/bin/uic-qt4': No such file or directory
uic-qt4: could not exec '/usr/lib64/qt4/bin/uic-qt4': No such file or directory
uic-qt4: could not exec '/usr/lib64/qt4/bin/uic-qt4': No such file or directory
error: could not build /var/tmp/portage/net-p2p/bitcoin-qt-0.9.3-r1/work/bitcoin-0.9.3/src/qt/forms/ui_askpassphrasedialog.h
...



Code:

$ ls -l /usr/lib64/qt4/bin/*qt4
ls: cannot access /usr/lib64/qt4/bin/*qt4: No such file or directory

$ ls -l /usr/lib64/qt4/bin/??c
-rwxr-xr-x 1 root root 1187056 Jan 11 06:01 /usr/lib64/qt4/bin/moc
-rwxr-xr-x 1 root root 1256672 Jan 11 06:01 /usr/lib64/qt4/bin/rcc
-rwxr-xr-x 1 root root 1711312 Jan 11 06:01 /usr/lib64/qt4/bin/uic

$ ls -l /usr/bin/??c-qt4 /usr/bin/moc /usr/bin/uic
lrwxrwxrwx 1 root root 9 Jan 10 23:37 /usr/bin/moc -> qtchooser
lrwxrwxrwx 1 root root 3 Jun 24  2012 /usr/bin/moc-qt4 -> moc
lrwxrwxrwx 1 root root 9 Jan 10 23:37 /usr/bin/uic -> qtchooser
lrwxrwxrwx 1 root root 3 Sep 22  2012 /usr/bin/uic-qt4 -> uic


Why is the compiler calling the -qt4 versions of the binaries?

If i try to make symbolic links:

Code:

$ cd /usr/lib64/qt4/bin/
$ ln -s moc moc-qt4
$ emerge networkmanager
...
Making all in qt
make[4]: Entering directory '/var/tmp/portage/net-misc/networkmanager-1.0.0/work/NetworkManager-1.0.0/examples/C/qt'
moc-qt4 -i monitor-nm-running.cpp -o monitor-nm-running.moc
moc-qt4: could not exec '/usr/lib64/qt4/bin/moc-qt4' since it links to moc-qt4 itself. Check your installation.
Makefile:810: recipe for target 'monitor-nm-running.moc' failed
make[4]: *** [monitor-nm-running.moc] Error 1
...


any clues wtf?
Back to top
View user's profile Send private message
emsy
n00b
n00b


Joined: 16 Dec 2011
Posts: 23

PostPosted: Thu Jan 29, 2015 6:13 pm    Post subject: Reply with quote

I'm having similar problems with app-office/libreoffice and sci-chemistry/avogadro

All of them are searching for the -qt4 version of the binaries, while there are only the base files present. Does any of you have any *-qt4 files in /usr/lib64/qt4/bin/ ?

Code:

# emerge --info
Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r1, 3.17.3-gentoo x86_64)
=================================================================
System uname: Linux-3.17.3-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.2
KiB Mem:    16198512 total,   2731148 free
KiB Swap:    4748372 total,   4748372 free
Timestamp of tree: Thu, 29 Jan 2015 14:15:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.2.1 [enabled]
app-shells/bash:          4.3_p33-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.2.1-r1
dev-util/cmake:           3.1.0
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.6.4, 4.7.4, 4.8.4, 4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.5
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo anders-larsson steam-overlay x-portage My-ebuilds
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula PUEL QUAKE4 dlj-1.1 ETQW googleearth AdobeFlash-10 AdobeFlash-10.1 Oracle-BCLA-JavaSE AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x NVIDIA-CUDA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/spool/munin-async/.ssh"
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.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache 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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://gentoo.supp.name/ http://mirror.ynet.sk/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/anders-larsson /var/lib/layman/steam-overlay /usr/local/portage /var/lib/layman/my_ebuilds"
SYNC="rsync://rsync.cz.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit 7zip X a52 aac aalib acl acpi ads alsa amd64 apache2 apng archive atmo automount bash-completion berkdb bluetooth bonobo branding bzip2 cairo caps cdda cddax cddb cdio cdparanoia cdr clang cli connection-sharing consolekit cracklib crypt cuda cups curl cxx dbus declarative device-mapper dga dhcpcd diff directfb dmraid dri dts dv dvb dvd dvdr emboss emerald encode exif extensions extras faac faad fam fat ffmpeg firefox flac fluidsynth fontconfig fortran ftp fts3 g3dvl gd gdbm gdu gedit gif git glamor glitz gme gmp gmplayer gnutls googledrive gphoto2 gpm gpu graphviz gs gsf gsm gstreamer gtk gtk3 gtkstyle gudev hash hddtemp httpd hwdb iconv icu id3 id3tag imagemagick introspection ipv6 java javascript jbig jpeg jpeg2k kate kde kde3 kdrive kipi lcms ldap libass libcaca libmpeg2 libnotify libtar libtiger libv4l2 live llvm-shared-libs lm_sensors logitech-mouse lua mad matroska melt midi mikmod minizip mmx mmxext mng mod modules moodbar mousewarp mp3 mp4 mpeg mtp multilib munin musicbrainz mysql mysqli mythtv ncurses network networkmanager nls nokia nptl nscd nsplugin ntfs ntfsprogs ogg openal opencl openexr opengl openldap openmp oss pam pango pcntl pcre pdf perl phonon pidgin plasma png policykit popcnt ppds prediction pulseaudio python python3 qt3support qt4 readline real reiser4 reiserfs resolvconf rtmp rtsp samba schroedinger script sdl semantic-desktop sensord session simplexml skins smp sms soap soundtouch speech speex spell sql sqlite sse sse2 sse3 sse4a ssh ssl startup-notification steamruntime stream svg symlink tcl tcpd tga theora threads thumbnail tiff truetype udev udisks unicode upcall upower usb uvm v4l v4l2 vaapi vala vdpau vhosts video vim-syntax vorbis vpx weather webkit wifi win32codecs winbind wmf wxwidgets x264 x265 xcb xcomposite xext xinerama xml xmlreader xmlrpc xmlwriter xmp xorg xscreensaver xsl xulrunner xv xvid zip 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="openssl" 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 virtualbox evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_3 python2_7" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia virtualbox" 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"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 455

PostPosted: Fri Jan 30, 2015 5:43 pm    Post subject: Reply with quote

I dont have any * -qt4 packages in /usr/lib64/qt4/bin/

But if u run qtchooser manually then maybe ....
But I wouldnt try it without backup, I used it once more than year ago and it removed my qt4 binaries ( just moc,qmake and friends) , so I had to reemerge them.
_________________
Sent from Windows
Back to top
View user's profile Send private message
emsy
n00b
n00b


Joined: 16 Dec 2011
Posts: 23

PostPosted: Fri Jan 30, 2015 6:33 pm    Post subject: Reply with quote

Thanks for reply, so there's something fishy when building packages. Since today, even vlc is throwing the same error when trying to rebuild it (rebuild triggered by CPU_FLAGS_X86 change)
Back to top
View user's profile Send private message
emsy
n00b
n00b


Joined: 16 Dec 2011
Posts: 23

PostPosted: Thu Mar 19, 2015 2:43 am    Post subject: Reply with quote

a bit of bump, I'm getting desperate, I'm unable to upgrade some packages because of this common error
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Thu Mar 19, 2015 4:19 am    Post subject: Reply with quote

best bet is to submit a bug report, to see if the devs can figure this out (didn't see anything related when I searched). Be sure to post a copy of the entire build log and emerge --info
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Fri Mar 20, 2015 6:03 am    Post subject: Reply with quote

qtchooser is not meant to be used in ebuilds. I have recently added some convenience functions for qmake-utils.eclass to help find the correct directory where qt binaries are installed. This was announced on the dev mailing list, but may not have been implemented yet in ebuilds that need it. Please file bug reports for the packages that have this kind of failure.

You can ping me on IRC, or get me CC'ed on those bugs, and I will provide patches for those ebuilds. (I don't check the forums as often.)
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sun Mar 22, 2015 3:17 pm    Post subject: Reply with quote

I still don't see any bugs filed for the packages mentioned in this thread. Guys, if you want to see things fixed, you need to file bugs! Make them block the tracker bug #544108.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
pavlonion
n00b
n00b


Joined: 25 Mar 2015
Posts: 1

PostPosted: Wed Mar 25, 2015 9:17 am    Post subject: Reply with quote

It's strange, but the solution is:

rm /usr/bin/moc-qt4
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum