Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build AUR package anymore, warnings treated as errors #110

Open
Reio22 opened this issue Feb 14, 2020 · 3 comments · May be fixed by #111
Open

Can't build AUR package anymore, warnings treated as errors #110

Reio22 opened this issue Feb 14, 2020 · 3 comments · May be fixed by #111
Assignees

Comments

@Reio22
Copy link

Reio22 commented Feb 14, 2020

When I last installed the AUR package on manjaro, it built without problems, and it does not seem to have changed since then. But still, it won't build anymore. Not with pamac, not with makepkg -si
Seems like warnings are treated as errors.

Could you please have a look?

makepkg -si
==> Making package: radiance 0.6.1-1 (Fri 14 Feb 2020 09:58:42 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found 0.6.1.tar.gz
  -> Found stable-201810.tar.gz
==> Validating source files with sha256sums...
    0.6.1.tar.gz ... Passed
    stable-201810.tar.gz ... Passed
==> Extracting sources...
  -> Extracting 0.6.1.tar.gz with bsdtar
  -> Extracting stable-201810.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3") 
-- Checking for module 'portaudio-2.0'
--   Found portaudio-2.0, version 19
-- Found FFTW: /lib/libfftw3f.so;/lib/libfftw3.so;/lib/libfftw3f_threads.so;/lib/libfftw3_threads.so  
-- Found SAMPLERATE: /usr/lib/libsamplerate.so  
-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found RtMidi: /usr/lib/librtmidi.so  
-- Found MPV: /usr/include  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/manjaro/Documents/radiance/src/radiance-0.6.1/build
Scanning dependencies of target libradiance_autogen
[  2%] Automatic MOC for target libradiance
[  2%] Built target libradiance_autogen
Scanning dependencies of target libradiance
[  6%] Building CXX object CMakeFiles/libradiance.dir/src/BaseVideoNodeTile.cpp.o
[  6%] Building CXX object CMakeFiles/libradiance.dir/libradiance_autogen/mocs_compilation.cpp.o
[  8%] Building CXX object CMakeFiles/libradiance.dir/src/Chain.cpp.o
[ 10%] Building CXX object CMakeFiles/libradiance.dir/src/Context.cpp.o
[ 13%] Building CXX object CMakeFiles/libradiance.dir/src/Audio.cpp.o
[ 15%] Building CXX object CMakeFiles/libradiance.dir/src/Controls.cpp.o
In file included from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Chain.h:4,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/VideoNode.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.h:7,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.cpp:1:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h: In instantiation of ‘const QMetaObject QmlSharedPointer<Model>::staticMetaObject’:
/usr/include/qt/QtCore/qmetatype.h:1484:59:   required from ‘static const QMetaObject* QtPrivate::MetaObjectForType<T*, typename std::enable_if<QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value>::type>::value() [with T = QmlSharedPointer<Model>]’
/usr/include/qt/QtCore/qmetatype.h:1765:74:   required from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<Model>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<Model>*, true>::DefinedType]’
/usr/include/qt/QtCore/qmetatype.h:1790:42:   required from ‘int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<Model>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<Model>*, true>::DefinedType]’
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Model.h:204:1:   required from here
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:356:51: error: cannot convert ‘const QMetaObject* const*’ to ‘const QMetaObject::SuperData*’ in initialization
  356 |     QmlSharedPointer<T, B>::gen_relatedMetaObjects(),
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                   |
      |                                                   const QMetaObject* const*
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h: In instantiation of ‘const QMetaObject QmlSharedPointer<VideoNode>::staticMetaObject’:
/usr/include/qt/QtCore/qmetatype.h:1484:59:   required from ‘static const QMetaObject* QtPrivate::MetaObjectForType<T*, typename std::enable_if<QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value>::type>::value() [with T = QmlSharedPointer<VideoNode>]’
/usr/include/qt/QtCore/qmetatype.h:1765:74:   required from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<VideoNode>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<VideoNode>*, true>::DefinedType]’
/usr/include/qt/QtCore/qmetatype.h:1790:42:   required from ‘int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<VideoNode>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<VideoNode>*, true>::DefinedType]’
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/VideoNode.h:164:1:   required from here
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:356:51: error: cannot convert ‘const QMetaObject* const*’ to ‘const QMetaObject::SuperData*’ in initialization
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h: In instantiation of ‘static const QByteArrayData* QmlSharedPointer<T, B>::gen_stringdata() [with T = Model; B = QmlSharedPointerBase; QByteArrayData = QArrayData]’:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:353:43:   required from ‘const QMetaObject QmlSharedPointer<Model>::staticMetaObject’
/usr/include/qt/QtCore/qmetatype.h:1484:59:   required from ‘static const QMetaObject* QtPrivate::MetaObjectForType<T*, typename std::enable_if<QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value>::type>::value() [with T = QmlSharedPointer<Model>]’
/usr/include/qt/QtCore/qmetatype.h:1765:74:   required from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<Model>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<Model>*, true>::DefinedType]’
/usr/include/qt/QtCore/qmetatype.h:1790:42:   required from ‘int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<Model>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<Model>*, true>::DefinedType]’
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Model.h:204:1:   required from here
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:310:43: error: ‘void QBasicAtomicInteger<T>::store(T) [with T = int]’ is deprecated: Use storeRelaxed [-Werror=deprecated-declarations]
  310 |         new_stringdata[i].ref.atomic.store(-1); // Don't attempt to free
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/qt/QtCore/qatomic.h:46,
                 from /usr/include/qt/QtCore/qglobal.h:1296,
                 from /usr/include/qt/QtCore/qnamespace.h:43,
                 from /usr/include/qt/QtCore/qobjectdefs.h:48,
                 from /usr/include/qt/QtCore/qobject.h:46,
                 from /usr/include/qt/QtCore/QObject:1,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/OpenGLWorker.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Chain.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/VideoNode.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.h:7,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.cpp:1:
/usr/include/qt/QtCore/qbasicatomic.h:104:59: note: declared here
  104 |     QT_DEPRECATED_VERSION_X_5_14("Use storeRelaxed") void store(T newValue) noexcept { storeRelaxed(newValue); }
      |                                                           ^~~~~
In file included from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Chain.h:4,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/VideoNode.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.h:7,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.cpp:1:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:310:43: error: ‘void QBasicAtomicInteger<T>::store(T) [with T = int]’ is deprecated: Use storeRelaxed [-Werror=deprecated-declarations]
  310 |         new_stringdata[i].ref.atomic.store(-1); // Don't attempt to free
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/qt/QtCore/qatomic.h:46,
                 from /usr/include/qt/QtCore/qglobal.h:1296,
                 from /usr/include/qt/QtCore/qnamespace.h:43,
                 from /usr/include/qt/QtCore/qobjectdefs.h:48,
                 from /usr/include/qt/QtCore/qobject.h:46,
                 from /usr/include/qt/QtCore/QObject:1,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/OpenGLWorker.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Chain.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/VideoNode.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.h:7,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.cpp:1:
/usr/include/qt/QtCore/qbasicatomic.h:104:59: note: declared here
  104 |     QT_DEPRECATED_VERSION_X_5_14("Use storeRelaxed") void store(T newValue) noexcept { storeRelaxed(newValue); }
      |                                                           ^~~~~
In file included from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Chain.h:4,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/VideoNode.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.h:7,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Context.cpp:1:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h: In instantiation of ‘static const QMetaObject* const* QmlSharedPointer<T, B>::gen_relatedMetaObjects() [with T = Model; B = QmlSharedPointerBase]’:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:356:51:   required from ‘const QMetaObject QmlSharedPointer<Model>::staticMetaObject’
/usr/include/qt/QtCore/qmetatype.h:1484:59:   required from ‘static const QMetaObject* QtPrivate::MetaObjectForType<T*, typename std::enable_if<QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value>::type>::value() [with T = QmlSharedPointer<Model>]’
/usr/include/qt/QtCore/qmetatype.h:1765:74:   required from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<Model>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<Model>*, true>::DefinedType]’
/usr/include/qt/QtCore/qmetatype.h:1790:42:   required from ‘int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<Model>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<Model>*, true>::DefinedType]’
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Model.h:204:1:   required from here
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:342:34: error: cannot convert ‘const QMetaObject::SuperData* const’ to ‘const QMetaObject* const*’ in return
  342 |     return T::staticMetaObject.d.relatedMetaObjects;
      |               ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  const QMetaObject::SuperData* const
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h: In instantiation of ‘static const QByteArrayData* QmlSharedPointer<T, B>::gen_stringdata() [with T = VideoNode; B = QmlSharedPointerBase; QByteArrayData = QArrayData]’:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:353:43:   required from ‘const QMetaObject QmlSharedPointer<VideoNode>::staticMetaObject’
/usr/include/qt/QtCore/qmetatype.h:1484:59:   required from ‘static const QMetaObject* QtPrivate::MetaObjectForType<T*, typename std::enable_if<QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value>::type>::value() [with T = QmlSharedPointer<VideoNode>]’
/usr/include/qt/QtCore/qmetatype.h:1765:74:   required from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<VideoNode>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<VideoNode>*, true>::DefinedType]’
/usr/include/qt/QtCore/qmetatype.h:1790:42:   required from ‘int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<VideoNode>*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<VideoNode>*, true>::DefinedType]’
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/VideoNode.h:164:1:   required from here
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:310:43: error: ‘void QBasicAtomicInteger<T>::store(T) [with T = int]’ is deprecated: Use storeRelaxed [-Werror=deprecated-declarations]
  310 |         new_stringdata[i].ref.atomic.store(-1); // Don't attempt to free
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/qt/QtCore/qatomic.h:46,

  104 |     QT_DEPRECATED_VERSION_X_5_14("Use storeRelaxed") void store(T newValue) noexcept { storeRelaxed(newValue); }
      |                                                           ^~~~~
In file included from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/BaseVideoNodeTile.h:5,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/build/libradiance_autogen/UVLADIE3JM/moc_BaseVideoNodeTile.cpp:10,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/build/libradiance_autogen/mocs_compilation.cpp:3:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:310:43: error: ‘void QBasicAtomicInteger<T>::store(T) [with T = int]’ is deprecated: Use storeRelaxed [-Werror=deprecated-declarations]
  310 |         new_stringdata[i].ref.atomic.store(-1); // Don't attempt to free
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/qt/QtCore/qatomic.h:46,
                 from /usr/include/qt/QtCore/qglobal.h:1296,
                 from /usr/include/qt/QtCore/qnamespace.h:43,
                 from /usr/include/qt/QtCore/qobjectdefs.h:48,
                 from /usr/include/qt/QtCore/qobject.h:46,
                 from /usr/include/qt/QtCore/QObject:1,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/Audio.h:3,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/build/libradiance_autogen/UVLADIE3JM/moc_Audio.cpp:10,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/build/libradiance_autogen/mocs_compilation.cpp:2:
/usr/include/qt/QtCore/qbasicatomic.h:104:59: note: declared here
  104 |     QT_DEPRECATED_VERSION_X_5_14("Use storeRelaxed") void store(T newValue) noexcept { storeRelaxed(newValue); }
      |                                                           ^~~~~
In file included from /home/manjaro/Documents/radiance/src/radiance-0.6.1/src/BaseVideoNodeTile.h:5,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/build/libradiance_autogen/UVLADIE3JM/moc_BaseVideoNodeTile.cpp:10,
                 from /home/manjaro/Documents/radiance/src/radiance-0.6.1/build/libradiance_autogen/mocs_compilation.cpp:3:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h: In instantiation of ‘static const QMetaObject* const* QmlSharedPointer<T, B>::gen_relatedMetaObjects() [with T = ScreenOutputNode; B = QmlSharedPointer<OutputNode, QmlSharedPointer<VideoNode> >]’:
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:356:51:   required from ‘const QMetaObject QmlSharedPointer<ScreenOutputNode, QmlSharedPointer<OutputNode, QmlSharedPointer<VideoNode> > >::staticMetaObject’
/usr/include/qt/QtCore/qmetatype.h:1484:59:   required from ‘static const QMetaObject* QtPrivate::MetaObjectForType<T*, typename std::enable_if<QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value>::type>::value() [with T = QmlSharedPointer<ScreenOutputNode, QmlSharedPointer<OutputNode, QmlSharedPointer<VideoNode> > >]’
/usr/include/qt/QtCore/qmetatype.h:1765:74:   required from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<ScreenOutputNode, QmlSharedPointer<OutputNode, QmlSharedPointer<VideoNode> > >*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<ScreenOutputNode, QmlSharedPointer<OutputNode, QmlSharedPointer<VideoNode> > >*, true>::DefinedType]’
/usr/include/qt/QtCore/qmetatype.h:1790:42:   required from ‘int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QmlSharedPointer<ScreenOutputNode, QmlSharedPointer<OutputNode, QmlSharedPointer<VideoNode> > >*; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QmlSharedPointer<ScreenOutputNode, QmlSharedPointer<OutputNode, QmlSharedPointer<VideoNode> > >*, true>::DefinedType]’
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/ScreenOutputNode.h:82:1:   required from here
/home/manjaro/Documents/radiance/src/radiance-0.6.1/src/QmlSharedPointer.h:342:34: error: cannot convert ‘const QMetaObject::SuperData* const’ to ‘const QMetaObject* const*’ in return
  342 |     return T::staticMetaObject.d.relatedMetaObjects;
      |               ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  const QMetaObject::SuperData* const
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/libradiance.dir/build.make:63: CMakeFiles/libradiance.dir/libradiance_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:82: CMakeFiles/libradiance.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
@ervanalb ervanalb linked a pull request Feb 16, 2020 that will close this issue
@ervanalb ervanalb self-assigned this Feb 16, 2020
@zbanks zbanks linked a pull request Feb 16, 2020 that will close this issue
@Reio22
Copy link
Author

Reio22 commented Jul 5, 2020

If you have the time, could you please fix this?

@Reio22
Copy link
Author

Reio22 commented Aug 24, 2020

Manually applying the pull request as patch to the repo does not work unfortunately:


[ 30%] Building CXX object CMakeFiles/libradiance.dir/src/Library.cpp.o
/home/reio/Radiance/radiance/src/Library.cpp: In member function ‘virtual Qt::ItemFlags Library::flags(const QModelIndex&) const’:
/home/reio/Radiance/radiance/src/Library.cpp:222:16: error: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::ItemFlag; QFlags<T>::Zero = int QFlags<Qt::ItemFlag>::Private::*]’ is deprecated: Use default constructor instead [-Werror=deprecated-declarations]
  222 |         return 0;
      |                ^
In file included from /usr/include/qt/QtCore/qglobal.h:1302,
                 from /usr/include/qt/QtCore/qatomic.h:41,
                 from /usr/include/qt/QtCore/qvariant.h:43,
                 from /usr/include/qt/QtCore/qabstractitemmodel.h:43,
                 from /usr/include/qt/QtCore/QAbstractItemModel:1,
                 from /home/reio/Radiance/radiance/src/Library.h:3,
                 from /home/reio/Radiance/radiance/src/Library.cpp:1:
/usr/include/qt/QtCore/qflags.h:123:80: note: declared here
  123 | D_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
      |                                                                ^~~~~~

cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/libradiance.dir/build.make:238: CMakeFiles/libradiance.dir/src/Library.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:156: CMakeFiles/libradiance.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

@Marte2007
Copy link

Got the same error, and after applying the PR I managed to build the package by setting
CMAKE_CXX_FLAGS=-Wno-error=deprecated-declarations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants