[cmake-developers] Moc-test errors
Kornel Benko
kornel at lyx.org
Tue Jun 4 09:32:46 EDT 2019
Am Dienstag, 4. Juni 2019, 15:16:43 CEST schrieb Sebastian Holtermann:
> Hello Kornel.
>
> > Recent tries to test cmake yield to errors for following tests:
> > 582 - Qt5Autogen.MocIncludeRelaxed (Failed)
> > 583 - Qt5Autogen.MocIncludeStrict (Failed)
> > 584 - Qt5Autogen.MocSkipSource (Failed)
> >
> > Compiled master branch of http://cmake.org/cmake.git
> >
> > As en example, here the log-snippet for Qt5Autogen.MocIncludeRelaxed:
> >
> > [ 75%] Linking CXX executable mocIncludeRelaxed
> > CMakeFiles/mocIncludeRelaxed.dir/usr/src/cmake/cmake/Tests/QtAutogen/MocInclude/SObjCExtra.cpp.o: In function `SObjCExtra::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
> > SObjCExtra.cpp:(.text+0x134): multiple definition of `SObjCExtra::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)'
> > CMakeFiles/mocIncludeRelaxed.dir/mocIncludeRelaxed_autogen/mocs_compilation.cpp.o:mocs_compilation.cpp:(.text+0xa3a): first defined here
> > CMakeFiles/mocIncludeRelaxed.dir/usr/src/cmake/cmake/Tests/QtAutogen/MocInclude/SObjCExtra.cpp.o:(.data.rel.ro+0x0): multiple definition of `SObjCExtra::staticMetaObject'
> > CMakeFiles/mocIncludeRelaxed.dir/mocIncludeRelaxed_autogen/mocs_compilation.cpp.o:(.data.rel.ro+0x2c0): first defined here
> > CMakeFiles/mocIncludeRelaxed.dir/usr/src/cmake/cmake/Tests/QtAutogen/MocInclude/SObjCExtra.cpp.o: In function `SObjCExtra::metaObject() const':
> > SObjCExtra.cpp:(.text+0x14a): multiple definition of `SObjCExtra::metaObject() const'
> > CMakeFiles/mocIncludeRelaxed.dir/mocIncludeRelaxed_autogen/mocs_compilation.cpp.o:mocs_compilation.cpp:(.text+0xa50): first defined here
> > CMakeFiles/mocIncludeRelaxed.dir/usr/src/cmake/cmake/Tests/QtAutogen/MocInclude/SObjCExtra.cpp.o: In function `SObjCExtra::qt_metacast(char const*)':
> > SObjCExtra.cpp:(.text+0x192): multiple definition of `SObjCExtra::qt_metacast(char const*)'
> > CMakeFiles/mocIncludeRelaxed.dir/mocIncludeRelaxed_autogen/mocs_compilation.cpp.o:mocs_compilation.cpp:(.text+0xa98): first defined here
> > CMakeFiles/mocIncludeRelaxed.dir/usr/src/cmake/cmake/Tests/QtAutogen/MocInclude/SObjCExtra.cpp.o: In function `SObjCExtra::qt_metacall(QMetaObject::Call, int, void**)':
> > SObjCExtra.cpp:(.text+0x1e2): multiple definition of `SObjCExtra::qt_metacall(QMetaObject::Call, int, void**)'
> > CMakeFiles/mocIncludeRelaxed.dir/mocIncludeRelaxed_autogen/mocs_compilation.cpp.o:mocs_compilation.cpp:(.text+0xae8): first defined here
> > collect2: error: ld returned 1 exit status
>
> We changed the format of AutogenInfo.cmake lately.
> Possibly old versions of AutogenInfo.cmake files were left from
> previous CMake builds and tests.
>
> Please try
> - `make rebuild_cache` and run the tests again or
> - do a clean build of the master branch and test again.
>
> -Sebastian
Sure, rebuild_cache was the first I tried. The test-errors remain even in the master tree of today.
Performing now on a clean build ...
#ctest -R Qt5Autogen.Moc
Test project /BUILD/BUILDMint18/BuildCmakeGit
Guessing configuration NoConfig
Start 553: Qt5Autogen.MocOnly
1/8 Test #553: Qt5Autogen.MocOnly ............... Passed 2.04 sec
Start 554: Qt5Autogen.MocOptions
2/8 Test #554: Qt5Autogen.MocOptions ............ Passed 1.40 sec
Start 576: Qt5Autogen.MocCMP0071
3/8 Test #576: Qt5Autogen.MocCMP0071 ............ Passed 2.48 sec
Start 577: Qt5Autogen.MocIncludeRelaxed
4/8 Test #577: Qt5Autogen.MocIncludeRelaxed .....***Failed 4.37 sec
Start 578: Qt5Autogen.MocIncludeStrict
5/8 Test #578: Qt5Autogen.MocIncludeStrict ......***Failed 4.24 sec
Start 579: Qt5Autogen.MocSkipSource
6/8 Test #579: Qt5Autogen.MocSkipSource .........***Failed 2.99 sec
Start 580: Qt5Autogen.MocMacroName
7/8 Test #580: Qt5Autogen.MocMacroName .......... Passed 1.95 sec
Start 581: Qt5Autogen.MocOsMacros
8/8 Test #581: Qt5Autogen.MocOsMacros ........... Passed 0.56 sec
63% tests passed, 3 tests failed out of 8
Total Test time (real) = 20.09 sec
The following tests FAILED:
577 - Qt5Autogen.MocIncludeRelaxed (Failed)
578 - Qt5Autogen.MocIncludeStrict (Failed)
579 - Qt5Autogen.MocSkipSource (Failed)
Errors while running CTest
So, no change here.
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20190604/92ca05e3/attachment.sig>
More information about the cmake-developers
mailing list