Re: [cmake-developers] Moc-test errors

2019-06-06 Thread Kornel Benko
Am Donnerstag, 6. Juni 2019, 18:01:09 CEST schrieb Sebastian Holtermann:
> 
> > BTW, with todays compilation (master branch) also some qt4-moc-tests are 
> > failing.
> > This starts to be itching ...
> > 
> > 
> > # ctest -R Autogen.Moc
> > ...
> > The following tests FAILED:
> >  577 - Qt5Autogen.MocIncludeRelaxed (Failed)
> >  578 - Qt5Autogen.MocIncludeStrict (Failed)
> >  579 - Qt5Autogen.MocSkipSource (Failed)
> >  615 - Qt4Autogen.MocIncludeRelaxed (Failed)
> >  616 - Qt4Autogen.MocIncludeStrict (Failed)
> >  617 - Qt4Autogen.MocSkipSource (Failed)
> > Errors while running CTest
> > 
> > Kornel
> 
> I was able to reproduce the issue.  It appears when the CMake sources 
> are in a path that contains symbolic links.
> Please see issue https://gitlab.kitware.com/cmake/cmake/issues/19346
> 
> -Sebastian
> 

Right, the sources are addressed with /usr/src/cmake/cmake, but /usr/src/cmake 
is symbolic link
to /usr2/src/cmake.

Thanks for the pointer.

Kornel

signature.asc
Description: This is a digitally signed message part.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers


Re: [cmake-developers] Moc-test errors

2019-06-06 Thread Sebastian Holtermann




BTW, with todays compilation (master branch) also some qt4-moc-tests are 
failing.
This starts to be itching ...


# ctest -R Autogen.Moc
...
The following tests FAILED:
 577 - Qt5Autogen.MocIncludeRelaxed (Failed)
 578 - Qt5Autogen.MocIncludeStrict (Failed)
 579 - Qt5Autogen.MocSkipSource (Failed)
 615 - Qt4Autogen.MocIncludeRelaxed (Failed)
 616 - Qt4Autogen.MocIncludeStrict (Failed)
 617 - Qt4Autogen.MocSkipSource (Failed)
Errors while running CTest

Kornel


I was able to reproduce the issue.  It appears when the CMake sources 
are in a path that contains symbolic links.

Please see issue https://gitlab.kitware.com/cmake/cmake/issues/19346

-Sebastian
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers


Re: [cmake-developers] Moc-test errors

2019-06-06 Thread Sebastian Holtermann

The following tests FAILED:
577 - Qt5Autogen.MocIncludeRelaxed (Failed)
578 - Qt5Autogen.MocIncludeStrict (Failed)
579 - Qt5Autogen.MocSkipSource (Failed)
Errors while running CTest



Okay, it looks like SKIP_AUTOMOC doesn't work properly.
Can you please post the output of

- `ctest -R Qt5Autogen.MocSkip -VV`
- `cat
Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocA_autogen.dir/AutogenInfo.cmake`
- `cat
Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocB_autogen.dir/AutogenInfo.cmake`


OK, attached.



BTW, with todays compilation (master branch) also some qt4-moc-tests are 
failing.
This starts to be itching ...


# ctest -R Autogen.Moc
...
The following tests FAILED:
 577 - Qt5Autogen.MocIncludeRelaxed (Failed)
 578 - Qt5Autogen.MocIncludeStrict (Failed)
 579 - Qt5Autogen.MocSkipSource (Failed)
 615 - Qt4Autogen.MocIncludeRelaxed (Failed)
 616 - Qt4Autogen.MocIncludeStrict (Failed)
 617 - Qt4Autogen.MocSkipSource (Failed)
Errors while running CTest


Thanks for the files.

For some reason the file processing flags are wrong.
E.g. in AutogenInfo-1.cmake
  set(AM_HEADERS_FLAGS "mU;MU;MU")
should be
  set(AM_HEADERS_FLAGS "mU;mU;mu")
A lower case letter means no moc/uic processing.

It seems to be something wrong with SKIP_AUTOMOC/GEN flags of headers 
that were found from their source files.


Are there symbolic directory links involved in either the CMake source 
directory or the CMake build directory?


-Sebastian
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers


Re: [cmake-developers] Moc-test errors

2019-06-06 Thread Kornel Benko
Am Donnerstag, 6. Juni 2019, 14:02:33 CEST schrieb Kornel Benko:
> Am Dienstag, 4. Juni 2019, 16:05:25 CEST schrieb Sebastian Holtermann:
> > > The following tests FAILED:
> > > 577 - Qt5Autogen.MocIncludeRelaxed (Failed)
> > > 578 - Qt5Autogen.MocIncludeStrict (Failed)
> > > 579 - Qt5Autogen.MocSkipSource (Failed)
> > > Errors while running CTest
> > >
> > 
> > Okay, it looks like SKIP_AUTOMOC doesn't work properly.
> > Can you please post the output of
> > 
> > - `ctest -R Qt5Autogen.MocSkip -VV`
> > - `cat 
> > Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocA_autogen.dir/AutogenInfo.cmake`
> > - `cat 
> > Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocB_autogen.dir/AutogenInfo.cmake`
> 
> OK, attached.
> 

BTW, with todays compilation (master branch) also some qt4-moc-tests are 
failing.
This starts to be itching ...


# ctest -R Autogen.Moc
...
The following tests FAILED:
577 - Qt5Autogen.MocIncludeRelaxed (Failed)
578 - Qt5Autogen.MocIncludeStrict (Failed)
579 - Qt5Autogen.MocSkipSource (Failed)
615 - Qt4Autogen.MocIncludeRelaxed (Failed)
616 - Qt4Autogen.MocIncludeStrict (Failed)
617 - Qt4Autogen.MocSkipSource (Failed)
Errors while running CTest

Kornel


signature.asc
Description: This is a digitally signed message part.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers


Re: [cmake-developers] Moc-test errors

2019-06-06 Thread Kornel Benko
Am Dienstag, 4. Juni 2019, 16:05:25 CEST schrieb Sebastian Holtermann:
> > The following tests FAILED:
> > 577 - Qt5Autogen.MocIncludeRelaxed (Failed)
> > 578 - Qt5Autogen.MocIncludeStrict (Failed)
> > 579 - Qt5Autogen.MocSkipSource (Failed)
> > Errors while running CTest
> >
> 
> Okay, it looks like SKIP_AUTOMOC doesn't work properly.
> Can you please post the output of
> 
> - `ctest -R Qt5Autogen.MocSkip -VV`
> - `cat 
> Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocA_autogen.dir/AutogenInfo.cmake`
> - `cat 
> Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocB_autogen.dir/AutogenInfo.cmake`

OK, attached.

Kornel
UpdateCTestConfiguration  from 
:/BUILD/BUILDMint18/BuildCmakeGit/DartConfiguration.tcl
Parse Config file:/BUILD/BUILDMint18/BuildCmakeGit/DartConfiguration.tcl
 Add coverage exclude regular expressions.
 Add coverage exclude: XCode
 Add coverage exclude: /Source/(cm|kw)sys/
 Add coverage exclude: /CMakeFiles/CMakeTmp/
 Add coverage exclude: [A-Za-z]./[Qq]t/qt-.+-opensource-src
SetCTestConfiguration:CMakeCommand:/usr/bin/cmake
UpdateCTestConfiguration  from 
:/BUILD/BUILDMint18/BuildCmakeGit/DartConfiguration.tcl
Parse Config file:/BUILD/BUILDMint18/BuildCmakeGit/DartConfiguration.tcl
Test project /BUILD/BUILDMint18/BuildCmakeGit
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 579
Start 579: Qt5Autogen.MocSkipSource

579: Test command: /BUILD/BUILDMint18/BuildCmakeGit/bin/ctest 
"--build-and-test" "/usr/src/cmake/cmake/Tests/QtAutogen/MocSkipSource" 
"/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource" 
"--build-generator" "Unix Makefiles" "--build-project" "MocSkipSource" 
"--build-exe-dir" 
"/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource" 
"--force-new-ctest-process" "--build-options" 
"-DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make" "-DQT_TEST_VERSION=5" 
"-DCMAKE_BUILD_TYPE=" "-DCMAKE_AUTOGEN_VERBOSE=1" 
"-DQT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin/qmake-qt4"
579: Test timeout computed to be: 1500
579: Internal cmake changing into directory: 
/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource
579:  CMake output ==
579: Configuring done
579: Generating done
579: Build files have been written to: 
/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource
579:  End CMake output ==
579: Change Dir: /BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource
579: 
579: Run Clean Command:/usr/bin/make clean
579: 
579: Run Build Command(s):/usr/bin/make && [  2%] Generating moc_qItemD.cpp
579: [  5%] Generating moc_qItemA.cpp
579: [  7%] Generating moc_qItemB.cpp
579: [ 10%] Generating moc_qItemC.cpp
579: [ 12%] Automatic MOC and UIC for target skipMocB
579: AutoGen: Refreshing parse cache because it doesn't exist.
579: AutoGen: Parsing 
"/usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/qItemA.hpp"
579: AutoGen: Parsing 
"/usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/qItemD.hpp"
579: AutoGen: Parsing 
"/usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/qItemC.hpp"
579: AutoGen: Parsing 
"/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource/moc_qItemA.cpp"
579: AutoGen: Parsing 
"/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource/moc_qItemC.cpp"
579: AutoGen: Parsing 
"/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource/moc_qItemB.cpp"
579: AutoGen: Parsing 
"/usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/qItemA.cpp"
579: AutoGen: Parsing 
"/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource/moc_qItemD.cpp"
579: AutoGen: Parsing 
"/usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/qItemC.cpp"
579: AutoGen: Parsing 
"/usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/skipMoc.cpp"
579: AutoGen: Parsing 
"/usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/qItemD.cpp"
579: AutoMoc: Generating 
"/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource/skipMocB_autogen/include/qItemC.moc",
 because it doesn't exist, from 
"/usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/qItemC.cpp"
579: /usr/lib/x86_64-linux-gnu/qt5/bin/moc -I/usr/include/x86_64-linux-gnu/qt5 
-I/usr/include/x86_64-linux-gnu/qt5/QtCore 
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/usr/include/c++/5 
-I/usr/include/x86_64-linux-gnu/c++/5 -I/usr/include/c++/5/backward 
-I/usr/lib/gcc/x86_64-linux-gnu/5/include -I/usr/local/include 
-I/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -I/usr/include/x86_64-linux-gnu 
-I/usr/include -DQT_CORE_LIB -DQT_NO_DEBUG -o 
/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource/skipMocB_autogen/include/qItemC.moc
 /usr2/src/cmake/cmake/Tests/QtAutogen/MocSkipSource/qItemC.cpp
579: AutoMoc: Generating 
"/BUILD/BUILDMint18/BuildCmakeGit/Tests/Qt5Autogen/MocSkipSource/skipMocB_autogen/EWIEGA46WW/moc_qItemD.cpp",
 because it doesn't exist, from