Deprecated QMutex
nesnera opened this issue · comments
Build output on PinePhone BE/Manjaro/Phosh-dev
build output
[ 96%] Building CXX object CMakeFiles/osmin.dir/src/favoritesmodel.cpp.o
[ 97%] Building CXX object CMakeFiles/osmin.dir/src/gpxlistmodel.cpp.o
[ 97%] Building CXX object CMakeFiles/osmin.dir/src/gpxfilemodel.cpp.o
In file included from /home/manjaro/Downloads/osmin/src/osmin/build/osmin_autogen/mocs_compilation.cpp:5:
In file included from /home/manjaro/Downloads/osmin/src/osmin/build/osmin_autogen/UVLADIE3JM/moc_favoritesmodel.cpp:10:
In file included from /home/manjaro/Downloads/osmin/src/osmin/build/osmin_autogen/UVLADIE3JM/../../../src/favoritesmodel.h:4:
/home/manjaro/Downloads/osmin/src/osmin/build/osmin_autogen/UVLADIE3JM/../../../src/locked.h:73:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
, m_lock(new QMutex(QMutex::Recursive)) {}
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:147:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
[ 97%] Building CXX object CMakeFiles/osmin.dir/src/tracker.cpp.o
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/favoritesmodel.cpp:2:
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/favoritesmodel.h:4:
/home/manjaro/Downloads/osmin/src/osmin/src/locked.h:73:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
, m_lock(new QMutex(QMutex::Recursive)) {}
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:35:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/gpxlistmodel.cpp:2:
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/gpxlistmodel.h:4:
/home/manjaro/Downloads/osmin/src/osmin/src/locked.h:73:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
, m_lock(new QMutex(QMutex::Recursive)) {}
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:147:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
[ 97%] Building CXX object CMakeFiles/osmin.dir/src/tracker.cpp.o
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/favoritesmodel.cpp:2:
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/favoritesmodel.h:4:
/home/manjaro/Downloads/osmin/src/osmin/src/locked.h:73:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
, m_lock(new QMutex(QMutex::Recursive)) {}
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:35:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/gpxlistmodel.cpp:2:
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/gpxlistmodel.h:4:
/home/manjaro/Downloads/osmin/src/osmin/src/locked.h:73:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
, m_lock(new QMutex(QMutex::Recursive)) {}
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:35:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
[ 98%] Building CXX object CMakeFiles/osmin.dir/src/compass/genericcompass.cpp.o
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/gpxfilemodel.cpp:2:
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/gpxfilemodel.h:4:
/home/manjaro/Downloads/osmin/src/osmin/src/locked.h:73:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
, m_lock(new QMutex(QMutex::Recursive)) {}
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:35:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
[ 98%] Building CXX object CMakeFiles/osmin.dir/src/compass/plugin.cpp.o
/home/manjaro/Downloads/osmin/src/osmin/src/favoritesmodel.cpp:41:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
m_lock = new QMutex(QMutex::Recursive);
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:35:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
/home/manjaro/Downloads/osmin/src/osmin/src/gpxlistmodel.cpp:69:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
m_lock = new QMutex(QMutex::Recursive);
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:35:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
2 warnings generated.
[ 98%] Building CXX object CMakeFiles/osmin.dir/src/signalhandler.cpp.o
2 warnings generated.
[100%] Building CXX object CMakeFiles/osmin.dir/qrc_osmin_controls2_515.cpp.o
/home/manjaro/Downloads/osmin/src/osmin/src/gpxfilemodel.cpp:108:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
m_lock = new QMutex(QMutex::Recursive);
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:35:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
1 warning generated.
/home/manjaro/Downloads/osmin/src/osmin/src/tracker.cpp:197:3: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
, m_lock(QMutex::Recursive)
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:65:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
2 warnings generated.
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/osmin.cpp:72:
In file included from /home/manjaro/Downloads/osmin/src/osmin/src/favoritesmodel.h:4:
/home/manjaro/Downloads/osmin/src/osmin/src/locked.h:73:16: warning: 'QMutex' is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
, m_lock(new QMutex(QMutex::Recursive)) {}
^
/usr/include/qt/QtCore/qmutex.h:139:5: note: 'QMutex' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X(5, 15, "Use QRecursiveMutex instead of a recursive QMutex")
^
/usr/include/qt/QtCore/qglobal.h:390:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major##_##minor(text)
^
<scratch space>:78:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5_15
^
/usr/include/qt/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
1 warning generated.
1 warning generated.
[100%] Linking CXX executable osmin
[100%] Built target osmin
==> Starting check()...
..
That was with qt5-base 5.15.2. As I see, 5.12 is required. Sorry.
I didn't finished to fix deprecation with qt 5.15. Now the master branch can build without warning with qt 5.15.
The occurrences of "DEPRECATED" have significantly decreased see log.👍
When the build was at about 60% I thought it froze, but it only slowed down due to lack of RAM (PP has 3 GB + 4.5 swap). I killed another process that was consuming more than 20% RAM and the build started.
For interest I attach PKGBUILD (doc)
PKGBUILD.txt
makepkg-2022-03-06_01:05:44.log
I pushed the fix for that. See commit 5f2aed3
Osmin is now among the community packs thanks to Strit - osmin-.