building kdebluetooth on amd64 with the ebuild fails spectacularly with the following error: hcisocket.cpp: In member function `void KBluetooth::HciSocket::updateStatus(const QByteArray&)': hcisocket.cpp:164: error: ambiguous overload for 'operator+' in 'data + 2' hcisocket.cpp:164: note: candidates are: operator+(const char*, long int) <built-in> /usr/qt/3/include/qcstring.h:368: note: const QCString operator+(const char*, const QCString&) /usr/qt/3/include/qcstring.h:382: note: const QCString operator+(char, const QCString&) <near match> /usr/qt/3/include/qstring.h:1034: note: const QString operator+(const QString&, const QString&) <near match> /usr/qt/3/include/qstring.h:1042: note: const QString operator+(const QString&, const char*) <near match> /usr/qt/3/include/qstring.h:1049: note: const QString operator+(const char*, const QString&) <near match> /usr/qt/3/include/qstring.h:1057: note: const QString operator+(const QString&, QChar) /usr/qt/3/include/qstring.h:1064: note: const QString operator+(const QString&, char) /usr/qt/3/include/qstring.h:1079: note: const QString operator+(char, const QString&) <near match> /bin/sh ../../libtool --silent --mode=compile --tag=CXX x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/include/openobex -I/usr/include -I/usr/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -g3 -fno-inline -pipe -g -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o rfcommsocket.lo `test -f 'rfcommsocket.cpp' || echo './'`rfcommsocket.cpp make[3]: *** [hcisocket.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/kdebluetooth-20040416/work/kdebluetooth-0.0.20040416/kdebluetooth/libkbluetooth' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdebluetooth-20040416/work/kdebluetooth-0.0.20040416/kdebluetooth' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdebluetooth-20040416/work/kdebluetooth-0.0.20040416' make: *** [all] Error 2 System Info: infiltrator ~ # emerge info Portage 2.0.51-r3 (gcc34-amd64-2004.1, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3 x86_64) ================================================================= System uname: 2.6.9-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.6 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r6 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-pipe -g" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-pipe -g" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks keeptemp keepwork nostrip" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm avi berkdb bitmap-fonts bonobo cdparanoia cdr crypt cups debug dvd encode f77 foomaticdb fortran gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib jabber jack jpeg kde ldap libg++ libwww maildir mikmod motif mozilla mpeg multilib ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl tcltk tcpd tetex truetype xine xml2 xmms xv zlib" Reproducible: Always Steps to Reproduce: 1. emerge kdebluetooth 2. build failure 3. Actual Results: the application build fails. Expected Results: application should have built and installed on the target computer.
this seems more likely to be a gcc-3.4 'bug' than an amd64 one
I can't reproduce it with gcc 3.4.3 on x86. sorry. line 164 reports: stream.setByteOrder(QDataStream::LittleEndian); I can't see a problem here.
Can you try with the latest version 0.0.20041107? Bug 73384 reports that it works on amd64, maybe this bug can be closed fixed?
I thought it was closed, the compile now works. -B