GOTCHA fails parallel build when enabling tests
Thyre opened this issue · 1 comments
When trying to build GOTCHA v1.0.7 or the develop
branch, both fail to build in parallel after successfully running CMake when one enables tests.
The error message itself is quite simple:
/home/jreuter/Downloads/GOTCHA/test/unit/gotcha_unit_tests.c:18:10: fatal error: check.h: No such file or directory
18 | #include <check.h>
| ^~~~~~~~~
compilation terminated.
It looks like the ExternalProject_Add
command does not run before building the actual test, but afterwards (see log down below). Rerunning make
works fine after the first try failed, but this is not really desirable for build systems.
Reproducing the issue
I've used Arch Linux with CMake 3.30.3, but this should be reproducible with other distributions and CMake versions.
$ git clone https://github.com/LLNL/GOTCHA.git
$ cd GOTCHA
$ cmake -S . -B build -DGOTCHA_ENABLE_TESTS=ON
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Found Git: /usr/bin/git (found version "2.46.0")
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/jreuter/Downloads/GOTCHA/build
$ cmake --build build --parallel 2
Compile log:
Click to expand
[ 1%] Building C object src/CMakeFiles/gotcha_no_libc.dir/gotcha_utils.c.o
[ 2%] Building C object src/CMakeFiles/gotcha.dir/gotcha_utils.c.o
[ 2%] Building C object src/CMakeFiles/gotcha_no_libc.dir/gotcha.c.o
[ 2%] Building C object src/CMakeFiles/gotcha.dir/gotcha.c.o
[ 3%] Building C object src/CMakeFiles/gotcha_no_libc.dir/gotcha_auxv.c.o
[ 4%] Building C object src/CMakeFiles/gotcha.dir/gotcha_auxv.c.o
[ 5%] Building C object src/CMakeFiles/gotcha_no_libc.dir/libc_wrappers.c.o
[ 6%] Building C object src/CMakeFiles/gotcha.dir/libc_wrappers.c.o
[ 7%] Building C object src/CMakeFiles/gotcha_no_libc.dir/elf_ops.c.o
[ 8%] Building C object src/CMakeFiles/gotcha.dir/elf_ops.c.o
[ 9%] Building C object src/CMakeFiles/gotcha_no_libc.dir/hash.c.o
[ 10%] Building C object src/CMakeFiles/gotcha.dir/hash.c.o
[ 11%] Building C object src/CMakeFiles/gotcha_no_libc.dir/tool.c.o
[ 12%] Building C object src/CMakeFiles/gotcha.dir/tool.c.o
[ 12%] Building C object src/CMakeFiles/gotcha_no_libc.dir/library_filters.c.o
[ 12%] Building C object src/CMakeFiles/gotcha.dir/library_filters.c.o
[ 13%] Building C object src/CMakeFiles/gotcha_no_libc.dir/gotcha_dl.c.o
[ 14%] Building C object src/CMakeFiles/gotcha.dir/gotcha_dl.c.o
[ 15%] Building C object src/CMakeFiles/gotcha.dir/translations.c.o
[ 16%] Building C object src/CMakeFiles/gotcha_no_libc.dir/translations.c.o
[ 17%] Linking C shared library libgotcha.so
[ 18%] Linking C shared library libgotcha_no_libc.so
[ 18%] Built target gotcha_no_libc
[ 18%] Built target gotcha
[ 19%] Building C object test/unit/CMakeFiles/internal_unit_sample.dir/testing_lib.c.o
[ 20%] Creating directories for 'check_project'
[ 20%] Performing download step (git clone) for 'check_project'
[ 21%] Linking C shared library libinternal_unit_sample.so
[ 21%] Built target internal_unit_sample
[ 22%] Building C object test/unit/CMakeFiles/internal_unit_sample_elf.dir/testing_lib.c.o
[ 22%] Linking C shared library libinternal_unit_sample_elf.so
[ 22%] Built target internal_unit_sample_elf
[ 23%] Building C object test/dlopen/CMakeFiles/num.dir/num.c.o
[ 24%] Linking C shared library libnum.so
[ 24%] Built target num
[ 25%] Building C object test/dlopen/CMakeFiles/num2.dir/num2.c.o
[ 25%] Linking C shared library libnum2.so
[ 25%] Built target num2
[ 26%] Building C object test/stack/CMakeFiles/stacked_lib1.dir/lib1.c.o
[ 27%] Linking C shared library libstacked_lib1.so
[ 27%] Built target stacked_lib1
[ 28%] Building C object test/stack/CMakeFiles/stacked_tool1.dir/tool1.c.o
[ 28%] Linking C shared library libstacked_tool1.so
[ 28%] Built target stacked_tool1
[ 29%] Building C object test/stack/CMakeFiles/stacked_tool2.dir/tool2.c.o
[ 30%] Linking C shared library libstacked_tool2.so
[ 30%] Built target stacked_tool2
[ 31%] Building C object test/priority/CMakeFiles/priority_lib1.dir/lib1.c.o
[ 31%] Linking C shared library libpriority_lib1.so
[ 31%] Built target priority_lib1
[ 32%] Building C object test/priority/CMakeFiles/priority_tool1.dir/tool1.c.o
[ 33%] Linking C shared library libpriority_tool1.so
[ 33%] Built target priority_tool1
[ 34%] Building C object test/priority/CMakeFiles/priority_tool2.dir/tool2.c.o
[ 35%] Linking C shared library libpriority_tool2.so
[ 35%] Built target priority_tool2
[ 35%] Building C object test/priority/CMakeFiles/priority_tool3.dir/tool3.c.o
[ 36%] Linking C shared library libpriority_tool3.so
[ 36%] Built target priority_tool3
[ 37%] Building C object test/ppc_stress_multi_module/CMakeFiles/cross_tool1.dir/tool1.c.o
[ 38%] Linking C shared library libcross_tool1.so
[ 38%] Built target cross_tool1
[ 39%] Building C object test/ppc_stress_multi_module/CMakeFiles/cross_tool2.dir/tool2.c.o
[ 40%] Linking C shared library libcross_tool2.so
[ 40%] Built target cross_tool2
[ 41%] Building CXX object test/hammer/CMakeFiles/math.dir/gen.cc.o
[ 41%] Linking CXX shared library libmath.so
[ 41%] Built target math
[ 42%] Building CXX object test/hammer/CMakeFiles/wrap.dir/wrap.cc.o
[ 43%] Linking CXX shared library libwrap.so
[ 43%] Built target wrap
-- check_project download command succeeded. See also /home/jreuter/Downloads/GOTCHA/build/test/unit/src/check_project-stamp/check_project-download-*.log
[ 44%] Performing update step for 'check_project'
[ 44%] Built target externals.h
[ 45%] Building C object test/rogot/CMakeFiles/autotee2.dir/autotee.c.o
[ 46%] Linking C shared library libautotee2.so
[ 46%] Built target autotee2
[ 47%] Building C object test/filter/CMakeFiles/num3.dir/num.c.o
[ 48%] Linking C shared library libnum3.so
[ 48%] Built target num3
[ 49%] Building C object test/wrap_main/CMakeFiles/main_functions.dir/lib.c.o
[ 50%] Linking C shared library libmain_functions.so
[ 50%] Built target main_functions
[ 51%] Building C object test/symver/CMakeFiles/retX.dir/retX_old.c.o
[ 52%] Building C object test/symver/CMakeFiles/retX.dir/retX_new.c.o
[ 53%] Linking C shared library libretX.so
[ 53%] Built target retX
[ 54%] Building C object test/function_ptr/CMakeFiles/fnnum.dir/num.c.o
[ 55%] Linking C shared library libfnnum.so
[ 55%] Built target fnnum
[ 56%] Building C object test/dispatcher/CMakeFiles/impl.dir/libimpl.c.o
[ 57%] Linking C shared library libimpl.so
[ 57%] Built target impl
[ 57%] Building C object test/dispatcher/CMakeFiles/dispatcher.dir/libdispatcher.c.o
[ 58%] Linking C shared library libdispatcher.so
Already up to date.
[ 59%] No patch step for 'check_project'
[ 59%] Built target dispatcher
[ 59%] Building C object src/example/autotee/CMakeFiles/autotee.dir/autotee.c.o
[ 60%] Performing configure step for 'check_project'
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
The OLD behavior for policy CMP0076 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
[ 61%] Linking C shared library libautotee.so
-- The C compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
[ 61%] Built target autotee
[ 62%] Building C object src/example/minimal/CMakeFiles/wrap_me.dir/sampleLib.c.o
[ 63%] Linking C shared library libwrap_me.so
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Setting build type to 'Debug' as none was specified.
[ 63%] Built target wrap_me
-- Looking for include file sys/types.h
[ 64%] Building C object test/unit/CMakeFiles/unit_tests.dir/gotcha_unit_tests.c.o
/home/jreuter/Downloads/GOTCHA/test/unit/gotcha_unit_tests.c:18:10: fatal error: check.h: No such file or directory
18 | #include <check.h>
| ^~~~~~~~~
compilation terminated.
make[2]: *** [test/unit/CMakeFiles/unit_tests.dir/build.make:76: test/unit/CMakeFiles/unit_tests.dir/gotcha_unit_tests.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:698: test/unit/CMakeFiles/unit_tests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
-- Looking for include file sys/types.h - found
-- Looking for include files sys/types.h, errno.h
-- Looking for include files sys/types.h, errno.h - found
-- Looking for 3 include files sys/types.h, ..., inttypes.h
-- Looking for 3 include files sys/types.h, ..., inttypes.h - found
-- Looking for 4 include files sys/types.h, ..., limits.h
-- Looking for 4 include files sys/types.h, ..., limits.h - found
-- Looking for 5 include files sys/types.h, ..., regex.h
-- Looking for 5 include files sys/types.h, ..., regex.h - found
-- Looking for 6 include files sys/types.h, ..., signal.h
-- Looking for 6 include files sys/types.h, ..., signal.h - found
-- Looking for 7 include files sys/types.h, ..., stdarg.h
-- Looking for 7 include files sys/types.h, ..., stdarg.h - found
-- Looking for 8 include files sys/types.h, ..., stdint.h
-- Looking for 8 include files sys/types.h, ..., stdint.h - found
-- Looking for 9 include files sys/types.h, ..., stdlib.h
-- Looking for 9 include files sys/types.h, ..., stdlib.h - found
-- Looking for 10 include files sys/types.h, ..., string.h
-- Looking for 10 include files sys/types.h, ..., string.h - found
-- Looking for 11 include files sys/types.h, ..., strings.h
-- Looking for 11 include files sys/types.h, ..., strings.h - found
-- Looking for 12 include files sys/types.h, ..., sys/time.h
-- Looking for 12 include files sys/types.h, ..., sys/time.h - found
-- Looking for 13 include files sys/types.h, ..., time.h
-- Looking for 13 include files sys/types.h, ..., time.h - found
-- Looking for 14 include files sys/types.h, ..., unistd.h
-- Looking for 14 include files sys/types.h, ..., unistd.h - found
-- Looking for 15 include files sys/types.h, ..., pthread.h
-- Looking for 15 include files sys/types.h, ..., pthread.h - found
-- Looking for 16 include files sys/types.h, ..., windows.h
-- Looking for 16 include files sys/types.h, ..., windows.h - not found
-- Looking for fork
-- Looking for fork - found
-- Looking for getline
-- Looking for getline - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for _getpid
-- Looking for _getpid - not found
-- Looking for _strdup
-- Looking for _strdup - not found
-- Looking for alarm
-- Looking for alarm - found
-- Looking for regcomp
-- Looking for regcomp - found
-- Looking for regexec
-- Looking for regexec - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Performing Test HAVE_PTHREADS_FLAG
-- Performing Test HAVE_PTHREADS_FLAG - Success
-- Looking for INT64_MAX
-- Looking for INT64_MAX - found
-- Looking for INT64_MIN
-- Looking for INT64_MIN - found
-- Looking for UINT32_MAX
-- Looking for UINT32_MAX - found
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - found
-- Looking for SIZE_MAX
-- Looking for SIZE_MAX - found
-- Looking for SSIZE_MAX
-- Looking for SSIZE_MAX - found
-- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE
-- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE - Failed
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of unsigned
-- Check size of unsigned - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of unsigned __int64
-- Check size of unsigned __int64 - failed
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of intmax_t
-- Check size of intmax_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of uintmax_t
-- Check size of uintmax_t - done
-- Check size of clock_t
-- Check size of clock_t - done
-- Check size of clockid_t
-- Check size of clockid_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of pid_t
-- Check size of pid_t - done
-- Check size of timer_t
-- Check size of timer_t - done
-- Looking for floor in m
-- Looking for floor in m - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for subunit_test_start in subunit
-- Looking for subunit_test_start in subunit - not found
-- Configuring done (3.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/jreuter/Downloads/GOTCHA/build/test/unit/src/check_project-build
[ 65%] Performing build step for 'check_project'
[ 1%] Building C object lib/CMakeFiles/compat.dir/libcompat.c.o
[ 3%] Building C object src/CMakeFiles/check.dir/check.c.o
[ 4%] Building C object lib/CMakeFiles/compat.dir/fpclassify.c.o
[ 6%] Building C object src/CMakeFiles/check.dir/check_error.c.o
[ 7%] Linking C static library libcompat.a
[ 9%] Building C object src/CMakeFiles/check.dir/check_list.c.o
[ 9%] Built target compat
[ 10%] Building C object src/CMakeFiles/checkShared.dir/check.c.o
[ 12%] Building C object src/CMakeFiles/check.dir/check_log.c.o
[ 13%] Building C object src/CMakeFiles/checkShared.dir/check_error.c.o
[ 15%] Building C object src/CMakeFiles/check.dir/check_msg.c.o
[ 16%] Building C object src/CMakeFiles/checkShared.dir/check_list.c.o
[ 18%] Building C object src/CMakeFiles/check.dir/check_pack.c.o
[ 20%] Building C object src/CMakeFiles/checkShared.dir/check_log.c.o
[ 21%] Building C object src/CMakeFiles/check.dir/check_print.c.o
[ 23%] Building C object src/CMakeFiles/checkShared.dir/check_msg.c.o
[ 24%] Building C object src/CMakeFiles/check.dir/check_run.c.o
[ 26%] Building C object src/CMakeFiles/checkShared.dir/check_pack.c.o
[ 27%] Building C object src/CMakeFiles/check.dir/check_str.c.o
[ 29%] Building C object src/CMakeFiles/checkShared.dir/check_print.c.o
[ 30%] Building C object src/CMakeFiles/check.dir/__/lib/fpclassify.c.o
[ 32%] Building C object src/CMakeFiles/checkShared.dir/check_run.c.o
[ 33%] Linking C static library libcheck.a
[ 33%] Built target check
[ 35%] Building C object src/CMakeFiles/checkShared.dir/check_str.c.o
[ 36%] Building C object tests/CMakeFiles/check_check.dir/check_check_exit.c.o
[ 38%] Building C object src/CMakeFiles/checkShared.dir/__/lib/fpclassify.c.o
[ 40%] Building C object tests/CMakeFiles/check_check.dir/check_check_fixture.c.o
[ 41%] Linking C shared library libcheck.so
[ 43%] Building C object tests/CMakeFiles/check_check.dir/check_check_fork.c.o
[ 43%] Built target checkShared
[ 44%] Building C object tests/CMakeFiles/check_check.dir/check_check_limit.c.o
[ 46%] Building C object tests/CMakeFiles/check_check.dir/check_check_log.c.o
[ 47%] Building C object tests/CMakeFiles/check_check.dir/check_check_log_internal.c.o
[ 49%] Building C object tests/CMakeFiles/check_check.dir/check_check_main.c.o
[ 50%] Building C object tests/CMakeFiles/check_check.dir/check_check_master.c.o
[ 52%] Building C object tests/CMakeFiles/check_check.dir/check_check_msg.c.o
[ 53%] Building C object tests/CMakeFiles/check_check.dir/check_check_pack.c.o
[ 55%] Building C object tests/CMakeFiles/check_check_export.dir/check_check_sub.c.o
[ 56%] Building C object tests/CMakeFiles/check_check.dir/check_check_selective.c.o
[ 58%] Building C object tests/CMakeFiles/check_check.dir/check_check_sub.c.o
[ 60%] Building C object tests/CMakeFiles/check_check_export.dir/check_check_master.c.o
[ 61%] Building C object tests/CMakeFiles/check_check_export.dir/check_check_log.c.o
[ 63%] Building C object tests/CMakeFiles/check_check.dir/check_check_tags.c.o
[ 64%] Building C object tests/CMakeFiles/check_check_export.dir/check_check_fork.c.o
[ 66%] Building C object tests/CMakeFiles/check_check.dir/check_list.c.o
[ 67%] Building C object tests/CMakeFiles/check_check_export.dir/check_check_export_main.c.o
[ 69%] Linking C executable check_check_export
[ 70%] Linking C executable check_check
[ 70%] Built target check_check_export
[ 70%] Built target check_check
[ 72%] Building C object tests/CMakeFiles/ex_output.dir/ex_output.c.o
[ 73%] Building C object tests/CMakeFiles/check_nofork.dir/check_nofork.c.o
[ 75%] Linking C executable ex_output
[ 76%] Linking C executable check_nofork
[ 76%] Built target ex_output
[ 76%] Built target check_nofork
[ 78%] Building C object tests/CMakeFiles/check_nofork_teardown.dir/check_nofork_teardown.c.o
[ 80%] Building C object tests/CMakeFiles/check_set_max_msg_size.dir/check_set_max_msg_size.c.o
[ 81%] Linking C executable check_nofork_teardown
[ 83%] Linking C executable check_set_max_msg_size
[ 83%] Built target check_nofork_teardown
[ 83%] Built target check_set_max_msg_size
[ 84%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_log.c.o
[ 86%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_mem_leaks.c.o
[ 87%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_limit.c.o
[ 89%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_fixture.c.o
[ 90%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_fork.c.o
[ 92%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_exit.c.o
[ 93%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_selective.c.o
[ 95%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_sub.c.o
[ 96%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_master.c.o
[ 98%] Building C object tests/CMakeFiles/check_mem_leaks.dir/check_check_tags.c.o
[100%] Linking C executable check_mem_leaks
[100%] Built target check_mem_leaks
[ 66%] Performing install step for 'check_project'
[ 4%] Built target compat
[ 21%] Built target check
[ 38%] Built target checkShared
[ 61%] Built target check_check
[ 70%] Built target check_check_export
[ 73%] Built target ex_output
[ 76%] Built target check_nofork
[ 80%] Built target check_nofork_teardown
[ 83%] Built target check_set_max_msg_size
[100%] Built target check_mem_leaks
Install the project...
-- Install configuration: "Debug"
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/include/check_stdint.h
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/pkgconfig/check.pc
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/cmake/check/check-targets.cmake
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/cmake/check/check-targets-debug.cmake
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/cmake/check/check-config.cmake
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/cmake/check/check-config-version.cmake
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/share/man/man3/suite_create.3
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/share/man/man7/libcheck.7
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/libcheck.a
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/include/check.h
-- Up-to-date: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/include/check_stdint.h
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/libcheck.so.0.15.2
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/libcheck.so.0
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/lib/libcheck.so
-- Up-to-date: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/include/check.h
-- Up-to-date: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/include/check_stdint.h
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/bin/checkmk
-- Up-to-date: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/share/man
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/share/man/man1
-- Installing: /home/jreuter/Downloads/GOTCHA/build/test/unit/tpl/share/man/man1/checkmk.1
[ 67%] Completed 'check_project'
[ 67%] Built target check_project
make: *** [Makefile:146: all] Error 2
Yeah external projects have that issue. and cannot be added as a target. Is it because of your parallel build. Where two independent parts are running as you cannot have dependency for external projects during build only during runtime.
- name: Configure and Build
run: |
cmake . -B build -DGOTCHA_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=PROFILE -DGOTCHA_ENABLE_WARNING_ERROR=ON
cmake --build build
- name: Unit Tests
run: |
ctest --test-dir build -VV