CMake

CustomCommand

command_line: D:\a\nightly-builds\nightly-builds\build\bin\ctest.exe "--build-and-test" "D:/a/nightly-builds/nightly-builds/Tests/CustomCommand" "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" "--build-two-config" "--build-generator" "Ninja" "--build-makeprogram" "C:/ProgramData/chocolatey/bin/ninja.exe" "--build-project" "CustomCommand" "--build-exe-dir" "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin" "--build-options" "--test-command" "CustomCommand"

working_directory: "./Tests"

Processors: 1

Execution Time: 25.4

Completion Status: Completed

Environment: #CTEST_RESOURCE_GROUP_COUNT=

Exit Value: 1

Exit Code: Failed

stdout:

Internal cmake changing into directory: D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand
======== CMake output     ======
The C compiler identification is MSVC 19.43.34808.0
The CXX compiler identification is MSVC 19.43.34808.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Configuring done (8.7s)
Generating done (1.3s)
Build files have been written to: D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand
Configuring done (1.2s)
Generating done (1.0s)
Build files have been written to: D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand
======== End CMake output ======
Change Dir: 'D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand'

Run Clean Command: C:/ProgramData/chocolatey/bin/ninja.exe clean
[1/1] Cleaning all built files...
Cleaning... 0 files.

Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe
[1/75] Building CXX object CMakeFiles\tcat.dir\tcat.cxx.obj
[2/75] Building CXX object CMakeFiles\generator.dir\generator.cxx.obj
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\generator.cxx(9): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[3/75] Building CXX object CMakeFiles\wrapper.dir\wrapper.cxx.obj
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\wrapper.cxx(10): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\wrapper.cxx(14): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[4/75] Generating doc1.txt
[5/75] Generating generated.h
[6/75] Generating doc1.dvi
[7/75] Building C object CMakeFiles\check_command_line.dir\check_command_line.c.obj
[8/75] Building CXX object GeneratedHeader\CMakeFiles\GeneratedHeader.dir\main.cpp.obj
[9/75] Building CXX object GeneratorInExtraDir\CMakeFiles\generator_extern.dir\__\generator.cxx.obj
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\generator.cxx(9): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[10/75] Linking CXX static library bin\GeneratedHeader.lib
[11/75] Linking CXX executable bin\generator.exe
[12/75] Linking CXX executable bin\wrapper.exe
[13/75] Linking CXX executable bin\tcat.exe
[14/75] Building C object PerConfig\CMakeFiles\pcStatic.dir\pcStatic.c.obj
[15/75] Building CXX object GeneratorInExtraDir\CMakeFiles\dummy_generator.dir\__\generator.cxx.obj
D:\a\nightly-builds\nightly-builds\Tests\CustomCommand\generator.cxx(9): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[16/75] Building C object PerConfig\CMakeFiles\pcShared.dir\pcShared.c.obj
[17/75] C:\Windows\system32\cmd.exe /C "cd /D D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand && "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type custom --target-name TARGET_NAME --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" --output "CMakeFiles\pre_check_command_line" --role -- D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E rm -f D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/check_mark.txt"
[18/75] Generating foo/bar
[19/75] Linking C static library bin\pcStatic-dbg.lib
[20/75] Linking C executable bin\check_command_line.exe
[21/75] Building C object PerConfig\CMakeFiles\perconfig.dir\perconfig.c.obj
[22/75] Linking CXX executable bin\the_external_generator.exe
[23/75] Generating doc1.h
 Copying doc1.dvi to doc1temp.h.
 Copying doc1temp.h to doc1.h.
 Removing doc1temp.h.
[24/75] Linking CXX executable bin\dummy_generator.exe
[25/75] Building C object CMakeFiles\mac_fw.dir\mac_fw.c.obj
[26/75] Linking C shared library bin\pcShared-dbg.dll
[27/75] Generating generated_extern.cxx
[28/75] Checking custom command line escapes (single'quote)
Command line escapes work!
[29/75] Generating foo/foo.cxx
[30/75] Generating foo/bar/bar.cxx
[31/75] Running top-level TDocument commands
 Copying doc1.h to doc2.h.
[32/75] Building CXX object CMakeFiles\CustomCommandUsingTargetTest.dir\main.cxx.obj
[33/75] Building CXX object CMakeFiles\NormDepends.dir\foo\bar\bar.cxx.obj
[34/75] Building CXX object CMakeFiles\CustomCommandUsingTargetTest.dir\generated_extern.cxx.obj
[35/75] Building CXX object CMakeFiles\NormOutput.dir\foo\foo.cxx.obj
[36/75] Building CXX object CMakeFiles\empty_command.dir\empty_command.cxx.obj
[37/75] Generating depended_upon_path.txt
[38/75] Linking C executable bin\perconfig-dbg.exe
[39/75] Checking custom target command line escapes ($dollar-signs$)
Checking custom target command escapes
Command line escapes work!
[40/75] Linking CXX static library bin\NormOutput.lib
[41/75] Linking C shared library bin\mac_fw.dll
[42/75] Generating perconfig.out
-- configuration=Debug
-- perconfig_file_dir=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin
-- perconfig_file_name=perconfig-dbg.exe
-- perconfig_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/perconfig-dbg.exe
-- pcStatic_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/pcStatic-dbg.lib
-- pcStatic_linker_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/pcStatic-dbg.lib
-- pcShared_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/pcShared-dbg.dll
-- pcShared_linker_file=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/pcShared-dbg.lib
-- pcShared_soname_file=
[43/75] Checking custom target POST_BUILD command line escapes ($dollar-signs$)
POST_BUILD command with $dollar-signs$
[44/75] Linking CXX static library bin\NormDepends.lib
[45/75] Running TDocument pre-build commands; Running TDocument post-build commands
 Writing doc1pre.txt.
 Copying doc1pre.txt to doc2post.txt.
[46/75] Generating SameName1.txt
[47/75] C:\Windows\system32\cmd.exe /C "cd /D D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand && "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type custom --target-name TARGET_NAME --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" --output "CMakeFiles\perconfig_target" --role -- D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E echo perconfig=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/perconfig-dbg.exe config=Debug"
perconfig=D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand/bin/perconfig-dbg.exe config=Debug
[48/75] Linking CXX executable bin\CustomCommandUsingTargetTest.exe
[49/75] Generating foo.pre
[50/75] Generating subdir/SameName
[51/75] Generating subdir/subdir.h
[52/75] Generating wrapped.c, wrapped_help.c
[53/75] Linking CXX executable bin\empty_command.exe
[54/75] Generating foo.c
[54/75] C:\Windows\system32\cmd.exe /C "cd /D D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand && "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type custom --target-name TARGET_NAME --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" --output "CMakeFiles\UseConsoleTarget" --role -- D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E echo "Custom console target.""
Custom console target.
[56/75] Generating foo.h
 Copying foo.h.in to foo.h.
[58/75] Generating expand_custom_command.phony
[59/75] Generating foo/bar/bar2.cxx
[62/75] Running TDocument post-build dependent custom command
 Copying doc2pre.txt to doc3post.txt.
[63/75] Generating depends_on_in_source_path.txt
[65/75] Generating depends_on_in_rel_source_path.txt
[66/75] Generating mac_fw.txt
[67/75] Building C object CMakeFiles\CustomCommand.dir\foo.c.obj
[68/75] Building C object CMakeFiles\CustomCommand.dir\wrapped.c.obj
[69/75] Building C object CMakeFiles\CustomCommand.dir\gen_redirect.c.obj
FAILED: CMakeFiles/CustomCommand.dir/gen_redirect.c.obj 
"D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type compile --target-name CustomCommand --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/CustomCommand" --config Debug --output CMakeFiles\CustomCommand.dir\gen_redirect.c.obj --source D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand\gen_redirect.c --language C --  C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\x64\cl.exe  /nologo  -ID:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\CustomCommand.dir\gen_redirect.c.obj /FdCMakeFiles\CustomCommand.dir\ /FS -c D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand\gen_redirect.c
D:\a\nightly-builds\nightly-builds\build\Tests\CustomCommand\gen_redirect.c(1): fatal error C1020: unexpected #endif
[70/75] Building C object CMakeFiles\CustomCommand.dir\wrapped_help.c.obj
[71/75] Building C object CMakeFiles\CustomCommand.dir\generated.c.obj
[72/75] Building CXX object CMakeFiles\UseConsole.dir\foo\bar\bar2.cxx.obj
[73/75] Generating hash#in#name.txt
ninja: build stopped: subcommand failed.

Status: failed
Loading...