Bug 301189 - error while SlackBuild'ing under Slackware64-current (20120602) with GCC-4.7.0
Summary: error while SlackBuild'ing under Slackware64-current (20120602) with GCC-4.7.0
Status: RESOLVED DUPLICATE of bug 293448
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.6.2
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 23:38 UTC by Lenard Spencer
Modified: 2012-06-05 07:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lenard Spencer 2012-06-04 23:38:50 UTC
Errors out while trying to build under Slackware64-current with GCC-4.7.0.
Builds fine under Slackware64-13.37 with GCC-4.5.2.


Reproducible: Always

Steps to Reproduce:
From slackbuilds.org:
1. Build  and install libalkimia
2. Build and install libofx 0.9.5 (NOTE: slackbuilds.org still has 0.9.1.  Downloaded 0.9.5 and edited libofx.SlackBuild to reflect updated version and remove patch that was no longer needed.
3. Attempted to build kmymoney.  
Actual Results:  
bombed with error:
[  3%] Building CXX object libkdchart/src/CMakeFiles/kmm_kdchart.dir/KDChartBackgroundAttributes.cpp.o                                                          
cd /tmp/SBo/kmymoney-4.6.2/build/libkdchart/src && /usr/bin/c++   -DMAKE_KMM_KDCHART_LIB -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=8 -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=8 -DHAVE_CONFIG_H -DKDCHART_BUILD_KDCHART_LIB -O2 -fPIC -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -fexceptions -UQT_NO_EXCEPTIONS -fexceptions -UQT_NO_EXCEPTIONS -fPIC -fno-common -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/tmp/SBo/kmymoney-4.6.2/build/libkdchart/src -I/tmp/SBo/kmymoney-4.6.2/libkdchart/src -I/tmp/SBo/kmymoney-4.6.2 -
I/tmp/SBo/kmymoney-4.6.2/build -I/tmp/SBo/kmymoney-4.6.2/libkdchart/src/../include -I/tmp/SBo/kmymoney-4.6.2/libkdchart/src/../kdablibfakes/include -I/usr/include/KDE -I/usr/lib64/qt/include/QtXmlPatterns -I/usr/lib64/qt/include/QtXml -I/usr/lib64/qt/include/QtWebKit -I/usr/lib64/qt/include/QtUiTools -I/usr/lib64/qt/include/QtTest -I/usr/lib64/qt/include/QtSvg -I/usr/lib64/qt/include/QtSql -I/usr/lib64/qt/include/QtScriptTools -I/usr/lib64/qt/include/QtScript -I/usr/lib64/qt/include/QtOpenGL -I/usr/lib64/qt/include/QtNetwork -I/usr/lib64/qt/include/QtMultimedia -I/usr/lib64/qt/include/QtHelp -I/usr/lib64/qt/include/QtDesigner -I/usr/lib64/qt/include/QtDeclarative -I/usr/lib64/qt/include/QtDBus -I/usr/lib64/qt/include/Qt3Support -I/usr/lib64/qt/include/QtGui -I/usr/lib64/qt/include/QtCore -I/usr/lib64/qt/include/Qt -I/usr/lib64/qt/mkspecs/default   -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -o CMakeFiles/kmm_kdchart.dir/KDChartBackgroundAttributes.cpp.o -c /tmp/SBo/kmymoney-4.6.2/
libkdchart/src/KDChartBackgroundAttributes.cpp
/tmp/SBo/kmymoney-4.6.2/libkdchart/src/KDChartBackgroundAttributes.cpp: In function 'QDebug operator<<(QDebug, const KDChart::BackgroundAttributes&)':
/tmp/SBo/kmymoney-4.6.2/libkdchart/src/KDChartBackgroundAttributes.cpp:153:26: error: ambiguous overload for 'operator<<' in '(&(& operator<<(QDebug, const QBrush&)((*(const QBrush*)(& KDChart::BackgroundAttributes::brush() const()))).QDebug::operator<<(((const char*)"pixmapmode=")))->QDebug::operator<<(((int)(& ba)->KDChart::BackgroundAttributes::pixmapMode())))->QDebug::operator<<(((const char*)"pixmap=")) << KDChart::BackgroundAttributes::pixmap() const()'
/tmp/SBo/kmymoney-4.6.2/libkdchart/src/KDChartBackgroundAttributes.cpp:153:26: note: candidates are:
In file included from /usr/lib64/qt/include/QtCore/qlocale.h:45:0,
                 from /usr/lib64/qt/include/QtCore/qtextstream.h:48,
                 from /usr/lib64/qt/include/QtCore/qdebug.h:50,
                 from /usr/lib64/qt/include/QtCore/QDebug:1,
                 from /tmp/SBo/kmymoney-4.6.2/libkdchart/src/KDChartBackgroundAttributes.h:26,
                 from /tmp/SBo/kmymoney-4.6.2/libkdchart/src/KDChartBackgroundAttributes.cpp:23:
/usr/lib64/qt/include/QtCore/qvariant.h:606:22: note: QDebug operator<<(QDebug, const QVariant&)
In file included from /usr/lib64/qt/include/QtGui/QBrush:1:0,
                 from /tmp/SBo/kmymoney-4.6.2/libkdchart/src/KDChartBackgroundAttributes.h:28,
                 from /tmp/SBo/kmymoney-4.6.2/libkdchart/src/KDChartBackgroundAttributes.cpp:23:
/usr/lib64/qt/include/QtGui/qbrush.h:171:21: note: QDebug operator<<(QDebug, const QBrush&)
make[2]: *** [libkdchart/src/CMakeFiles/kmm_kdchart.dir/KDChartBackgroundAttributes.cpp.o] Error 1
make[2]: Leaving directory `/tmp/SBo/kmymoney-4.6.2/build'
make[1]: *** [libkdchart/src/CMakeFiles/kmm_kdchart.dir/all] Error 2
make[1]: Leaving directory `/tmp/SBo/kmymoney-4.6.2/build'
make: *** [all] Error 2


Expected Results:  
Finished the build

As I mentioned in the details above, it builds fine in Slackware64-13.37 under GCC-4.5.2.
As a workaround, I built the package under 13.37 and installed it in my -current partition, and so far it works fine.
Comment 1 Lenard Spencer 2012-06-05 01:21:19 UTC
Identical results with 32-bit Slackware as well.
Extra info:  the relevant snippet from the SlackBuild script:

PRGNAM=kmymoney
VERSION=${VERSION:-4.6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;

mkdir -p build
cd build
  cmake \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DMAN_INSTALL_DIR=/usr/man \
    -DCMAKE_BUILD_TYPE=Release ..

  make VERBOSE=1
  make install VERBOSE=1 DESTDIR=$PKG
cd ..
Comment 2 Cristian Oneț 2012-06-05 07:25:09 UTC

*** This bug has been marked as a duplicate of bug 293448 ***