Bug 253925 - x11-toolkits/qt5-declarative compile fails
Summary: x11-toolkits/qt5-declarative compile fails
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-01 00:56 UTC by jnaughto
Modified: 2021-03-02 10:04 UTC (History)
2 users (show)

See Also:
linimon: maintainer-feedback? (kde)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jnaughto 2021-03-01 00:56:04 UTC

    
Comment 1 jnaughto 2021-03-01 01:02:27 UTC
Virtualbox gui fails to load due to qt5 library.  Proceeded to attempt to compile virtualbox-ose.  Yet when it got to compiling the Qt5 it failed.

compiling qt5-declarative-5.15.2 from ports tree on Freebsd 11.4 Amd64  

known conversion from 'const QColorSpace' to 'QVariant' for 1st argument
    inline QVariant &operator=(QVariant &&other) noexcept
                     ^
1 error generated.
*** [.obj/qquickglobal.o] Error code 1

make[3]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src/quick
--- .obj/qsgdefaultglyphnode_p.o ---
In file included from scenegraph/qsgdefaultglyphnode_p.cpp:46:
/usr/local/include/qt5/QtGui/5.14.2/QtGui/private/qguiapplication_p.h:119:70: error: member reference type 'QAtomicPointer<QThreadData>' is not a pointer; did you mean to use '.'?
            return QCoreApplication::instance()->d_func()->threadData->eventDispatcher.loadRelaxed();
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
                                                                     .
/usr/local/include/qt5/QtGui/5.14.2/QtGui/private/qguiapplication_p.h:119:72: error: no member named 'eventDispatcher' in 'QAtomicPointer<QThreadData>'
            return QCoreApplication::instance()->d_func()->threadData->eventDispatcher.loadRelaxed();
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
--- .obj/qsgrhisupport.o ---
scenegraph/qsgrhisupport.cpp:601:63: error: no member named 'errorOccurred' in 'QAbstractSocket'
        QObject::connect(m_profConn.data(), &QAbstractSocket::errorOccurred, m_profConn.data(),
                                             ~~~~~~~~~~~~~~~~~^
1 error generated.
*** [.obj/qsgrhisupport.o] Error code 1

make[3]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src/quick
--- .obj/qsgplaintexture.o ---
scenegraph/util/qsgplaintexture.cpp:302:18: error: excess elements in scalar initializer
    t->buildFrom({nativeObjectPtr, nativeLayout});
                 ^               ~~~~~~~~~~~~~~~
/usr/local/include/qt5/QtGui/5.14.2/QtGui/private/qrhi_p.h:779:53: note: passing argument to parameter 'src' here
    virtual bool buildFrom(const QRhiNativeHandles *src);
                                                    ^
--- .obj/qsgdefaultglyphnode_p.o ---
2 errors generated.
*** [.obj/qsgdefaultglyphnode_p.o] Error code 1

make[3]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src/quick
--- .obj/qsgplaintexture.o ---
In file included from scenegraph/util/qsgplaintexture.cpp:43:
In file included from ../../include/QtQuick/5.15.2/QtQuick/private/qquickprofiler_p.h:1:
../../include/QtQuick/5.15.2/QtQuick/private/../../../../../src/quick/util/qquickprofiler_p.h:170:20: warning: array index -1 is before the beginning of the array [-Warray-bounds]
            return guiThreadTimings.values[type - NumRenderThreadFrameTypes];
                   ^                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/QtQuick/5.15.2/QtQuick/private/../../../../../src/quick/util/qquickprofiler_p.h:258:38: note: in instantiation of function template specialization 'QQuickProfilerSceneGraphData::timings<QQmlProfilerDefinitions::SceneGraphTextureDeletion>' requested here
        s_instance->m_sceneGraphData.timings<FrameType2>()[0] =
                                     ^
scenegraph/util/qsgplaintexture.cpp:174:5: note: in instantiation of function template specialization 'QQuickProfiler::startSceneGraphFrame<QQmlProfilerDefinitions::SceneGraphTexturePrepare, QQmlProfilerDefinitions::SceneGraphTextureDeletion>' requested here
    Q_QUICK_SG_PROFILE_START_SYNCHRONIZED(QQuickProfiler::SceneGraphTexturePrepare,
    ^
../../include/QtQuick/5.15.2/QtQuick/private/../../../../../src/quick/util/qquickprofiler_p.h:388:49: note: expanded from macro 'Q_QUICK_SG_PROFILE_START_SYNCHRONIZED'
                               (QQuickProfiler::startSceneGraphFrame<Type1, Type2>()))
                                                ^
../../include/QtQuick/5.15.2/QtQuick/private/../../../../../src/quick/util/qquickprofiler_p.h:157:9: note: array 'values' declared here
        qint64 values[size][s_numSceneGraphTimings + 1];
        ^
../../include/QtQuick/5.15.2/QtQuick/private/../../../../../src/quick/util/qquickprofiler_p.h:170:20: warning: array index -2 is before the beginning of the array [-Warray-bounds]
            return guiThreadTimings.values[type - NumRenderThreadFrameTypes];
                   ^                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/QtQuick/5.15.2/QtQuick/private/../../../../../src/quick/util/qquickprofiler_p.h:259:46: note: in instantiation of function template specialization 'QQuickProfilerSceneGraphData::timings<QQmlProfilerDefinitions::SceneGraphTexturePrepare>' requested here
                s_instance->m_sceneGraphData.timings<FrameType1>()[0];
                                             ^
scenegraph/util/qsgplaintexture.cpp:174:5: note: in instantiation of function template specialization 'QQuickProfiler::startSceneGraphFrame<QQmlProfilerDefinitions::SceneGraphTexturePrepare, QQmlProfilerDefinitions::SceneGraphTextureDeletion>' requested here
    Q_QUICK_SG_PROFILE_START_SYNCHRONIZED(QQuickProfiler::SceneGraphTexturePrepare,
    ^
../../include/QtQuick/5.15.2/QtQuick/private/../../../../../src/quick/util/qquickprofiler_p.h:388:49: note: expanded from macro 'Q_QUICK_SG_PROFILE_START_SYNCHRONIZED'
                               (QQuickProfiler::startSceneGraphFrame<Type1, Type2>()))
                                                ^
../../include/QtQuick/5.15.2/QtQuick/private/../../../../../src/quick/util/qquickprofiler_p.h:157:9: note: array 'values' declared here
        qint64 values[size][s_numSceneGraphTimings + 1];
        ^
2 warnings and 1 error generated.
*** [.obj/qsgplaintexture.o] Error code 1

make[3]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src/quick
4 errors

make[3]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src/quick
*** [sub-quick-all-ordered] Error code 2

make[2]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src
1 error

make[2]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2/src
*** [sub-src-all] Error code 2

make[1]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2
1 error

make[1]: stopped in /usr/ports/x11-toolkits/qt5-declarative/work/qtdeclarative-everywhere-src-5.15.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/x11-toolkits/qt5-declarative
Comment 2 Adriaan de Groot freebsd_committer freebsd_triage 2021-03-02 10:04:16 UTC
After discussion on the mailing list, problem both resolved and become moot.