#250 oprofile build sometimes fails to build gui

None
closed-invalid
None
5
2013-10-15
2013-07-25
No

In some situations, building oprofile fails with the following error:

make[3]: Entering directory `/home/mpj/oprofile-0.9.9-rc1/gui/ui'
g++ -DHAVE_CONFIG_H -I. -I../.. -isystem /usr/lib64/qt-3.3/include -W -Wall -fno-common -ftemplate-depth-50 -g -O2 -MT oprof_start.base.o -MD -MP -MF .deps/oprof_start.base.Tpo -c -o oprof_start.base.o oprof_start.base.cpp
In file included from /usr/lib64/qt-3.3/include/qvariant.h:322,
from oprof_start.base.h:12,
from oprof_start.base.cpp:9:
/usr/lib64/qt-3.3/include/qvaluelist.h: In function âQDataStream& operator>>(QDataStream&, QValueList<T>&)â:
/usr/lib64/qt-3.3/include/qvaluelist.h:642: error: no match for âoperator>>â in âs >> câ
/usr/lib64/qt-3.3/include/qcstring.h:136: note: candidates are: QDataStream& operator>>(QDataStream&, QByteArray&)
/usr/lib64/qt-3.3/include/qcstring.h:244: note: QDataStream& operator>>(QDataStream&, QCString&)
/usr/lib64/qt-3.3/include/qstring.h:829: note: QDataStream& operator>>(QDataStream&, QString&)
/usr/lib64/qt-3.3/include/qtextstream.h:301: note: QTextStream& operator>>(QTextStream&, QTextStream& ()(QTextStream&))
/usr/lib64/qt-3.3/include/qvaluelist.h:648: error: invalid use of incomplete type âstruct QDataStreamâ
/usr/lib64/qt-3.3/include/qglobal.h:754: error: forward declaration of âstruct QDataStreamâ
/usr/lib64/qt-3.3/include/qvaluelist.h: In function âQDataStream& operator<<(QDataStream&, const QValueList<T>&)â:
/usr/lib64/qt-3.3/include/qvaluelist.h:657: error: ambiguous overload for âoperator<<â in âs << (Q_UINT32)(l->size())â
/usr/lib64/qt-3.3/include/qcstring.h:135: note: candidates are: QDataStream& operator<<(QDataStream&, const QByteArray&)
/usr/lib64/qt-3.3/include/qcstring.h:243: note: QDataStream& operator<<(QDataStream&, const QCString&)
/usr/lib64/qt-3.3/include/qstring.h:828: note: QDataStream& operator<<(QDataStream&, const QString&) <near match="">
make[3]:
** [oprof_start.base.o] Error 1


The --enable-gui configure option is not specified, so the default choice of configure is "Building GUI with QT 3.3.8b".

System information for where this error occurs:

Architecture/processor type: ppc64/IBM POWER7
Linux disto: RHEL 6.4
Kernel version: 2.6.32-279.el6.ppc64
gcc version: gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
qt packages installed:
qt3-devel-3.3.8b-30.el6.ppc64
qt-4.6.2-24.el6.ppc64
qt-devel-4.6.2-24.el6.ppc64
qt3-3.3.8b-30.el6.ppc64
qt-x11-4.6.2-24.el6.ppc64
qt-sqlite-4.6.2-24.el6.ppc64

Discussion

  • Maynard Johnson

    Maynard Johnson - 2013-07-29

    Note that the GUI component in 0.9.8 also fails to build in the same development enviornment where the above error for 0.9.9-rc1 was reported.

     
  • Maynard Johnson

    Maynard Johnson - 2013-10-15

    Correction of Linux distro on failing system -- it's RHEL 6.3, not RHEL 6.4.

    On a RHEL 6.4/POWER7 system, oprofile builds fine with QT3. I did a yum update of qt/qt3/qt-devel/qt3-devel on the failing system so the levels would be exactly like those on the RHEL 6.4 system, but it still failed to build. I was surprised to find that the qvaluelist.h files from the two systems were not identical, even though they were both installed as part of qt3-devel-3.3.8b-30.el6.ppc64 RPM. So I copied the qvaluelist.h from the good system to the bad one, and then oprofile's gui component built OK! Obviously, this is not an oprofile bug, so I'm closing this bug.

     
  • Maynard Johnson

    Maynard Johnson - 2013-10-15
    • status: open --> closed-invalid
    • assigned_to: Maynard Johnson
    • Group: -->
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks