media-sound/sonic-visualiser-1.9 fails to build during config. The problem seems to be an unknown parameter of qmake. Reproducible: Always Steps to Reproduce: emerge -v sonic-visualiser Actual Results: emerge dies with error message: ***Unknown option -r Usage: /usr/qt/3/bin/qmake [mode] [options] [files] Expected Results: emerge runs without error. emerge --info =media-sound/sonic-visualiser-1.9 Portage 2.1.10.41 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.1.6-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.0.3 Timestamp of tree: Sat, 14 Jan 2012 00:45:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.1.4-r3 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo x-overlay oomidi-overlay proaudio moonrise sunrise kde-sunset ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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 -mtune=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/overlay /var/lib/layman/oomidi /var/lib/layman/pro-audio /var/lib/layman/moonrise /var/lib/layman/sunrise /var/lib/layman/kde-sunset" SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl alsa amd64 apng artworkextra aspell bazaar berkdb branding bzip2 cairo cdda cddb cdparanoia cdr cli consolekit coverart cpudetection cracklib crypt css cups cvs cxx daap darcs dbus dga dia dirac djvu dri dts dv dvb dvd dvdr dvipdfm emerald encode expat faac ffmpeg fftw flac fltk fluidsynth fontconfig fortran ftp fuse gcdmaster gdbm gdu gif gimp git glade gnome gnome-keyring gnutls gpg gphoto2 gpm graphics gs gstreamer gtk gui guile hddtemp http httpd iconv id3tag idn imap imlib inkjar ipv6 jack java jbig jpeg jpeg2k kate kdrive kpathsea ladspa lame lash latex latex3 ldap libburn libcaca libnotify libproxy libtiger libv4l libv4l2 lm_sensors lv2 mad mercurial mikmod mmx modules mono mp3 mp4 mpeg mtp mudflap multilib musepack musicbrainz nautilus ncurses networking nls nptl nptlonly ntp ogg openal opengl openldap openmp opensync pam pcre pdf pdfannotextractor perl php playlist plotutils png policykit pppd pvr python qt3support rar raw readline rtmp samba sasl schroedinger science sdl sdl-image session slideshow sndfile socks5 spell sqlite sse sse2 sse3 ssl ssse3 subversion svg sysfs taglib tcl tcpd theora tiff tk tordns truetype udev unicode v4l v4l2 vaapi vnc vorbis wavpack webkit wmf wxwidgets x264 xcb xinerama xml xorg xv zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS emerge -pqv =media-sound/sonic-visualiser-1.9 [ebuild N ] media-sound/sonic-visualiser-1.9 USE="fftw id3tag jack mad ogg -osc -portaudio -pulseaudio" build.log: * Package: media-sound/sonic-visualiser-1.9 * Repository: gentoo * Maintainer: proaudio@gentoo.org * USE: amd64 elibc_glibc fftw id3tag jack kernel_linux mad multilib ogg userland_GNU * FEATURES: sandbox >>> Unpacking source... >>> Unpacking sonic-visualiser-1.9.tar.gz to /var/tmp/portage/media-sound/sonic-visualiser-1.9/work >>> Source unpacked in /var/tmp/portage/media-sound/sonic-visualiser-1.9/work >>> Preparing source in /var/tmp/portage/media-sound/sonic-visualiser-1.9/work/sonic-visualiser-1.9 ... * Applying sonic-visualiser-1.8-configure.patch ... [ ok ] * Applying sonic-visualiser-1.7.1-liboggz11.patch ... [ ok ] * Disabling liblo * Disabling portaudio * Disabling libpulse * Running eautoreconf in '/var/tmp/portage/media-sound/sonic-visualiser-1.9/work/sonic-visualiser-1.9/sonic-visualiser' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running eautoreconf in '/var/tmp/portage/media-sound/sonic-visualiser-1.9/work/sonic-visualiser-1.9/svapp' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running eautoreconf in '/var/tmp/portage/media-sound/sonic-visualiser-1.9/work/sonic-visualiser-1.9/svcore' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running eautoreconf in '/var/tmp/portage/media-sound/sonic-visualiser-1.9/work/sonic-visualiser-1.9/svgui' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-sound/sonic-visualiser-1.9/work/sonic-visualiser-1.9 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 *** Preparing to configure in: svcore svgui svapp sonic-visualiser *** Configuring in: svcore checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c checking for a thread-safe mkdir -p... /bin/mkdir -p checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for x86_64-pc-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for qmake-qt4... no checking for qmake... /usr/qt/3/bin/qmake Qmake version: 1.07a (Qt 3.3.8b) Qmake is free software from Trolltech ASA. configure: WARNING: *** The version of qmake found in "/usr/qt/3/bin/qmake" looks like it might be from the wrong version of Qt (Qt4 is required). Please check that this is the correct version of qmake for Qt4 builds. configure: The CXXFLAGS environment variable is set to "-march=native -mtune=native -O2 -pipe". configure: Overriding default compiler flags with the above user setting. checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for bz2... no configure: Failed to find required module bz2 using pkg-config, trying again by old-fashioned means checking bzlib.h usability... yes checking bzlib.h presence... yes checking for bzlib.h... yes checking for BZ2_bzReadOpen in -lbz2... yes checking for fftw3... yes checking for fftw3f... yes checking for sndfile... yes checking for samplerate... yes checking for vamp... yes checking for vamphostsdk... yes checking for rubberband... yes checking for rasqal... yes checking for redland... yes checking for JACK... yes checking for lrdf... yes checking for oggz... yes checking for fishsound... yes checking for mad... yes checking for id3tag... yes configure: creating ./config.status config.status: creating config.pri ***Unknown option -r Usage: /usr/qt/3/bin/qmake [mode] [options] [files] QMake has two modes, one mode for generating project files based on some heuristics, and the other for generating makefiles. Normally you shouldn't need to specify a mode, as makefile generation is the default mode for qmake, but you may use this to test qmake on an existing project Mode: -project Put qmake into project file generation mode In this mode qmake interprets files as files to be built, defaults to *.c; *.ui; *.y; *.l; *.ts; *.h; *.hpp; *.hh; *.H; *.hxx; *.cpp; *.cc; *.cxx; *.C -makefile Put qmake into makefile generation mode (default) In this mode qmake interprets files as project files to be processed, if skipped qmake will try to find a project file in your current working directory Warnings Options: -Wnone Turn off all warnings -Wall Turn on all warnings -Wparser Turn on parser warnings -Wlogic Turn on logic warnings Options: * You can place any variable assignment in options and it will be * * processed as if it was in [files]. These assignments will be parsed * * before [files]. * -o file Write output to file -unix Run in unix mode -win32 Run in win32 mode -macx Run in Mac OS X mode -d Increase debug level -t templ Overrides TEMPLATE as templ -tp prefix Overrides TEMPLATE so that prefix is prefixed into the value -help This help -v Version information -after All variable assignments after this will be parsed after [files] -cache file Use file as cache [makefile mode only] -spec spec Use spec as QMAKESPEC [makefile mode only] -nocache Don't use a cache file [makefile mode only] -nodepend Don't generate dependencies [makefile mode only] -nomoc Don't generate moc targets [makefile mode only] -nopwd Don't look for files in pwd [ project mode only] -norecursive Don't do a recursive search [ project mode only] configure: error: qmake failed: Command was "/usr/qt/3/bin/qmake -r" * ERROR: media-sound/sonic-visualiser-1.9 failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 75: Called src_configure * environment, line 3011: Called qt4-r2_src_configure * environment, line 2931: Called base_src_configure * environment, line 572: Called econf * phase-helpers.sh, line 467: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of 'emerge --info =media-sound/sonic-visualiser-1.9', * the complete build log and the output of 'emerge -pqv =media-sound/sonic-visualiser-1.9'. * The complete build log is located at '/var/tmp/portage/media-sound/sonic-visualiser-1.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/sonic-visualiser-1.9/temp/environment'. * S: '/var/tmp/portage/media-sound/sonic-visualiser-1.9/work/sonic-visualiser-1.9'
The same problem can also be confirmed for media-sound/sonic-visualiser-1.8.
(In reply to comment #0) > media-sound/sonic-visualiser-1.9 fails to build during config. The problem > seems to be an unknown parameter of qmake. > ***Unknown option -r > Usage: /usr/qt/3/bin/qmake [mode] [options] [files] > /var/lib/layman/kde-sunset" This is caused by having x11-libs/qt:3 or x11-libs/qt-meta:3 from the kde-sunset overlay installed. The kde-sunset overlay is not supported and it's not reasonable to expect any developers have it installed anymore when testing ebuilds in the actual Portage tree. So unless you have a patch, the fix is to stop using qt:3 and kde-sunset overlay. Closing WONTFIX, reopen if you have a patch.
Thanks for the support. I solved the problem by setting the rights of /usr/qt/3/bin/qmake to 000 temporarily during build. Ugly but it worked. Maybe a patch could set the absolute path to the correct qmake.
<overlay contact="gentoo-desktop+subscribe@lists.gentoo.org" name="kde-sunset" src="git://git.overlays.gentoo.org/proj/kde-sunset.git" status="unofficial" type="git"> <!--THIS FILE IS GENERATED, PLEASE EDIT repositories.xml INSTEAD.--> <link>http://git.overlays.gentoo.org/gitweb/?p=proj/kde-sunset.git;a=summary</link> <description>User-maintained overlay for old KDE packages removed from the tree, such as KDE3. Please do not file bug reports, but subscribe to the gentoo-desktop mailing list</description> </overlay>