Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367045 - x11-libs/qt-gui-4.7.3 fails to build
Summary: x11-libs/qt-gui-4.7.3 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-13 03:26 UTC by Timothy Miller
Modified: 2012-03-25 18:52 UTC (History)
1 user (show)

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


Attachments
build log, compressed because it's too big (build.log.gz,40.54 KB, application/x-gzip)
2011-05-13 03:28 UTC, Timothy Miller
Details
environment (environment.txt.gz,34.75 KB, application/x-gzip)
2011-05-13 03:28 UTC, Timothy Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Miller 2011-05-13 03:26:51 UTC
[ebuild  N    ] x11-libs/qt-gui-4.7.3  USE="accessibility aqua exceptions glib tiff (-cups) -dbus -debug -egl -gtkstyle -mng -nas -nis -pch -private-headers -qt3support -raster -trace -xinerama" 


x86_64-apple-darwin10-g++ -Wl,-dead_strip_dylibs -headerpad_max_install_names -Wl,-dead_strip_dylibs -mmacosx-version-min=10.6 -single_module -dynamiclib -install_name	/Users/millerti/Gentoo/usr/lib/qt4/plugins/imageformats/libqjpeg.dylib -o libqjpeg.dylib .obj/release-shared/qjpeghandler.o .obj/release-shared/main.o  -F/Users/millerti/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.3/work/qt-everywhere-opensource-src-4.7.3/lib -L/Users/millerti/Gentoo/usr/lib -F/Users/millerti/Gentoo/usr/lib/qt4 -L/Users/millerti/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.3/work/qt-everywhere-opensource-src-4.7.3/lib -L/Users/millerti/Gentoo/usr/lib/qt4 -ljpeg -framework QtGui -L/Users/millerti/Gentoo/usr/lib -F/Users/millerti/Gentoo/usr/lib/qt4 -L/Users/millerti/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.3/work/qt-everywhere-opensource-src-4.7.3/lib -F/Users/millerti/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.3/work/qt-everywhere-opensource-src-4.7.3/lib -framework QtCore -lgthread-2.0 -lglib-2.0 -lintl  
Undefined symbols:
  "qt_convert_rgb888_to_rgb32_ssse3(unsigned int*, unsigned char const*, int)", referenced from:
      QJpegHandler::QJpegHandler()in qjpeghandler.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [../../../../plugins/imageformats/libqjpeg.dylib] Error 1
make[1]: Leaving directory `/Users/millerti/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.3/work/qt-everywhere-opensource-src-4.7.3/src/plugins/imageformats/jpeg'
make: *** [release] Error 2
emake failed
 * ERROR: x11-libs/qt-gui-4.7.3 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   62:  Called call-ebuildshell 'src_compile'
 *   environment, line  739:  Called src_compile
 *   environment, line 3770:  Called qt4-build_src_compile
 *   environment, line 3374:  Called build_directories 'src/gui' 'src/scripttools' 'tools/designer' 'tools/linguist/linguist' 'src/plugins/imageformats/gif' 'src/plugins/imageformats/ico' 'src/plugins/imageformats/jpeg' 'src/plugins/inputmethods' 'src/plugins/imageformats/tiff' 'src/plugins/accessible/widgets'
 *   environment, line  654:  Called die
 * The specific snippet of code:
 *           emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" || die "emake failed";
 * 
 * If you need support, post the output of 'emerge --info =x11-libs/qt-gui-4.7.3',
 * the complete build log and the output of 'emerge -pqv =x11-libs/qt-gui-4.7.3'.
 * The complete build log is located at '/Users/millerti/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.3/temp/build.log'.
 * The ebuild environment file is located at '/Users/millerti/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.3/temp/environment'.
 * S: '/Users/millerti/Gentoo/var/tmp/portage/x11-libs/qt-gui-4.7.3/work/qt-everywhere-opensource-src-4.7.3'


Reproducible: Always




emerge --info =x11-libs/qt-gui-4.7.3
Portage 2.2.01.18252-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.7.3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-10.7.3-x86_64-i386-64bit
Timestamp of tree: Fri, 13 May 2011 02:39:07 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled]
app-shells/bash:     4.2_p8
dev-lang/python:     2.7.1-r1
sys-devel/autoconf:  2.68
sys-devel/automake:  1.11.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  0
Repositories: gentoo_prefix
Installed sets: 
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin10"
CFLAGS="-O2 -pipe -ggdb -march=core2 -ggdb"
CHOST="x86_64-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -ggdb -march=core2 -ggdb"
DISTDIR="/Users/millerti/Gentoo/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
LINGUAS="en en_US"
MAKEOPTS="--jobs=3"
PKGDIR="/Users/millerti/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/millerti/Gentoo/"
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="/Users/millerti/Gentoo/var/tmp"
PORTDIR="/Users/millerti/Gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua cairo coreaudio cracklib cxx ithreads jpeg mmx mmxext modules ncurses nls nptl objc objc++ pdf png prefix qt4 readline sse sse2 ssl threads tiff unicode x64-macos zlib" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Timothy Miller 2011-05-13 03:28:16 UTC
Created attachment 273015 [details]
build log, compressed because it's too big
Comment 2 Timothy Miller 2011-05-13 03:28:33 UTC
Created attachment 273017 [details]
environment
Comment 3 Ole Langbehn 2011-05-13 14:40:34 UTC
build.log.gz is gzipped twice, just so you know
Comment 4 Paul 2011-07-15 00:50:35 UTC
I was suffering from this bug as well. I was able to force the build by adding --no-ssse3 to the configure flags in the ebuild. 

If I had to guess I would say (being almost completely ignorant of c++) that something has change which is causing case sensitivity to be an issue. The case of the function name differs between the definition and the call. Again, completely ignorant so likely wrong.
 
./gui/image/qimage_ssse3.cpp:void convert_RGB888_to_RGB32_ssse3(QImageData *dest, const QImageData *src, Qt::ImageConversionFlags)
./gui/image/qimage_ssse3.cpp:        qt_convert_rgb888_to_rgb32_ssse3(dest_data, src_data, src->width);
Comment 5 Fabian Groffen gentoo-dev 2011-08-28 09:29:22 UTC
It fails to build on OSX Lion as well, with a different problem, though.
Comment 6 tdr 2011-10-26 11:11:10 UTC
Also happens with qt-gui-4.7.4 on OSX Lion too.  I got it build by removing the config.test/unix/sse3 and config.tests/unix/ssse3 directories (always fail so they are not enabled)
Comment 7 Fabian Groffen gentoo-dev 2011-12-03 20:26:12 UTC
committed now, thanks
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2011-12-08 00:00:45 UTC
Could this be another symptom of bug #336618 ?
Comment 9 Fabian Groffen gentoo-dev 2011-12-08 07:55:23 UTC
unlikely, but on the otherhand, maybe
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2011-12-08 11:44:19 UTC
So what's the root cause of this failure?
Comment 11 Fabian Groffen gentoo-dev 2011-12-08 11:47:20 UTC
I assume ssse3 doesn't work well with the Apple toolchain, or not at all on OSX systems.
Comment 12 Davide Pesavento (RETIRED) gentoo-dev 2011-12-08 13:16:30 UTC
Ok, thanks a lot!
Comment 13 MATSUI Tetsushi 2012-03-25 17:48:58 UTC
The bug affects x86-macos, too.
Please extend the target CHOST of the conditional to *-apple-darwin*.
Comment 14 Fabian Groffen gentoo-dev 2012-03-25 18:52:02 UTC
ok, done