ecmwf / ecbuild

A CMake-based build system, consisting of a collection of CMake macros and functions that ease the managing of software build systems
https://ecbuild.readthedocs.io
Apache License 2.0
26 stars 25 forks source link

3.8.2: test suite fails in 4 units #58

Closed kloczek closed 8 months ago

kloczek commented 8 months ago

What happened?

Test suite fails in 4 units

What are the steps to reproduce the bug?

cmake setup ```console -- Cache values CMAKE_BUILD_TYPE:STRING=RelWithDebInfo CMAKE_INSTALL_PREFIX:PATH=/usr ECBUILD_2_COMPAT:BOOL=OFF ECBUILD_2_COMPAT_DEPRECATE:BOOL=ON ENABLE_PKGCONFIG:BOOL=ON ENABLE_TESTS:BOOL=ON MEMORYCHECK_COMMAND_OPTIONS:STRING=--trace-children=yes --leak-check=full --error-exitcode=1 SPHINX_EXECUTABLE:FILEPATH=SPHINX_EXECUTABLE-NOTFOUND SPHINX_HTML:BOOL=OFF SPHINX_MAN:BOOL=OFF SPHINX_QTHELP:BOOL=OFF SPHINX_SINGLEHTML:BOOL=OFF ```

Version

3.8.2

Platform (OS and architecture)

Linux/x86_64

Relevant log output

ctest fails with ``` + cd ecbuild-3.8.2 + /usr/bin/ctest --test-dir x86_64-redhat-linux-gnu --output-on-failure --force-new-ctest-process -j48 Internal ctest changing into directory: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu Test project /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu Start 1: ECBUILD-359 Start 2: ECBUILD-401 Start 3: ECBUILD-407 Start 4: ECBUILD-415 Start 5: ECBUILD-433 Start 6: ECBUILD-495 Start 7: ECBUILD-509 Start 8: ECBUILD-511 Start 9: ECBUILD-399-ld-origin Start 10: ECBUILD-399-buildfail Start 11: bundle-subdir-std Start 12: bundle-subdir-ecbfind Start 13: bundle-subproj Start 14: bundle-override-features Start 15: test_ecbuild_regex_escape Start 16: test_ecbuild_remove_fortran_flags Start 17: test_ecbuild_find_package Start 18: test_ecbuild_add_option Start 19: test_ecbuild_add_flags Start 20: find-ecbuild-module Start 21: find-ecbuild-direnv Start 22: find-ecbuild-direnv-full Start 23: find-ecbuild-dircmd Start 24: project_import 1/24 Test #4: ECBUILD-415 ......................... Passed 0.03 sec 2/24 Test #15: test_ecbuild_regex_escape ........... Passed 0.02 sec 3/24 Test #16: test_ecbuild_remove_fortran_flags ... Passed 0.02 sec 4/24 Test #17: test_ecbuild_find_package ...........***Failed 0.30 sec /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/tests/ecbuild_find_package/../../bin:/usr/bin:/usr/sbin:/usr/local/sbin /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/tests/ecbuild_find_package cleaning /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu/tests/ecbuild_find_package /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu/tests/ecbuild_find_package/projectA/build Found CMake version 3.28.3 cmake -DCMAKE_MODULE_PATH=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -DCMAKE_INSTALL_PREFIX=../install -Wno-deprecated /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/tests/ecbuild_find_package/projectA CMake Warning (dev) at CMakeLists.txt:3 (find_package): Policy CMP0074 is not set: find_package uses _ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable ecbuild_ROOT is set to: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2 For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it. -- Found ecbuild: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake (found version "3.8.2") -- The CXX compiler identification is unknown CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_project.cmake:62 (_project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Call Stack (most recent call first): CMakeLists.txt:4 (project) -- Configuring incomplete, errors occurred! 5/24 Test #2: ECBUILD-401 .........................***Failed 0.34 sec Found CMake version 3.28.3 cmake -DCMAKE_MODULE_PATH=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -DCMAKE_INSTALL_PREFIX=../install -DINSTALL_LIB_DIR=lib /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/regressions/ECBUILD_401/projectA CMake Warning (dev) at CMakeLists.txt:3 (find_package): Policy CMP0074 is not set: find_package uses _ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable ecbuild_ROOT is set to: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2 For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it. -- The CXX compiler identification is unknown CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_project.cmake:62 (_project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Call Stack (most recent call first): CMakeLists.txt:5 (project) -- Configuring incomplete, errors occurred! 6/24 Test #19: test_ecbuild_add_flags ..............***Failed 0.48 sec -- Found ecbuild: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake (found suitable version "3.8.2", minimum required is "3.6") -- DEBUG - ecbuild project(TestFlags) -- The C compiler identification is GNU 14.0.1 -- The CXX compiler identification is unknown -- 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 CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_project.cmake:62 (_project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Call Stack (most recent call first): CMakeLists.txt:5 (project) -- Configuring incomplete, errors occurred! 7/24 Test #1: ECBUILD-359 .........................***Failed 0.51 sec Found CMake version 3.28.3 cmake -DCMAKE_MODULE_PATH=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -DCMAKE_INSTALL_PREFIX=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu/regressions/ECBUILD_359/bundle/install /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/examples/cpp-bundle CMake Warning (dev) at CMakeLists.txt:11 (find_package): Policy CMP0074 is not set: find_package uses _ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable ecbuild_ROOT is set to: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2 For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it. -- Found ecbuild: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake (found version "3.8.2") -- The C compiler identification is GNU 14.0.1 -- The CXX compiler identification is unknown -- 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 CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_project.cmake:62 (_project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Call Stack (most recent call first): CMakeLists.txt:12 (project) -- Configuring incomplete, errors occurred! 8/24 Test #23: find-ecbuild-dircmd ................. Passed 1.70 sec 9/24 Test #6: ECBUILD-495 ......................... Passed 1.74 sec 10/24 Test #21: find-ecbuild-direnv ................. Passed 1.72 sec 11/24 Test #22: find-ecbuild-direnv-full ............ Passed 1.72 sec 12/24 Test #20: find-ecbuild-module ................. Passed 1.73 sec 13/24 Test #14: bundle-override-features ............ Passed 1.77 sec 14/24 Test #3: ECBUILD-407 ......................... Passed 1.81 sec 15/24 Test #13: bundle-subproj ...................... Passed 1.86 sec 16/24 Test #5: ECBUILD-433 ......................... Passed 2.10 sec 17/24 Test #7: ECBUILD-509 ......................... Passed 2.10 sec 18/24 Test #10: ECBUILD-399-buildfail ............... Passed 2.15 sec 19/24 Test #9: ECBUILD-399-ld-origin ............... Passed 2.22 sec 20/24 Test #11: bundle-subdir-std ................... Passed 3.48 sec 21/24 Test #12: bundle-subdir-ecbfind ............... Passed 3.53 sec 22/24 Test #8: ECBUILD-511 ......................... Passed 4.27 sec 23/24 Test #24: project_import ...................... Passed 5.96 sec 24/24 Test #18: test_ecbuild_add_option ............. Passed 27.92 sec 83% tests passed, 4 tests failed out of 24 Label Time Summary: ecbuild = 69.49 sec*proc (24 tests) script = 69.49 sec*proc (24 tests) Total Test time (real) = 27.95 sec The following tests FAILED: 1 - ECBUILD-359 (Failed) 2 - ECBUILD-401 (Failed) 17 - test_ecbuild_find_package (Failed) 19 - test_ecbuild_add_flags (Failed) Errors while running CTest ```

Accompanying data

No response

Organisation

No response

kloczek commented 8 months ago

After add above 4 units to exclude list more units

popped out ```console + cd ecbuild-3.8.2 + /usr/bin/ctest --test-dir x86_64-redhat-linux-gnu --output-on-failure --force-new-ctest-process -j48 ' ' -E '^(ECBUILD-359|ECBUILD-401|test_ecbuild_find_package|test_ecbuild_add_flags)' Internal ctest changing into directory: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu Test project /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu Start 1: ECBUILD-407 Start 2: ECBUILD-415 Start 3: ECBUILD-433 Start 4: ECBUILD-495 Start 5: ECBUILD-509 Start 6: ECBUILD-511 Start 7: ECBUILD-399-ld-origin Start 8: ECBUILD-399-buildfail Start 9: bundle-subdir-std Start 10: bundle-subdir-ecbfind Start 11: bundle-subproj Start 12: bundle-override-features Start 13: test_ecbuild_regex_escape Start 14: test_ecbuild_remove_fortran_flags Start 15: test_ecbuild_add_option Start 16: find-ecbuild-module Start 17: find-ecbuild-direnv Start 18: find-ecbuild-direnv-full Start 19: find-ecbuild-dircmd Start 20: project_import 1/20 Test #2: ECBUILD-415 ......................... Passed 0.03 sec 2/20 Test #13: test_ecbuild_regex_escape ........... Passed 0.02 sec 3/20 Test #14: test_ecbuild_remove_fortran_flags ... Passed 0.02 sec 4/20 Test #3: ECBUILD-433 .........................***Failed 1.60 sec Found CMake version 3.28.3 cmake -DCMAKE_MODULE_PATH=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/regressions/ECBUILD_433/proj CMake Warning (dev) at CMakeLists.txt:3 (find_package): Policy CMP0074 is not set: find_package uses _ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable ecbuild_ROOT is set to: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2 For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is GNU 14.0.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 -- ecbuild 3.8.2 /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -- cmake 3.28.3 /usr/bin/cmake -- --------------------------------------------------------- -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Performing Test myproj_C_FLAG_TEST_1 -- Performing Test myproj_C_FLAG_TEST_1 - Success -- Added C flag [-pipe] -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Check size of off_t -- Check size of off_t - done -- --------------------------------------------------------- -- --------------------------------------------------------- -- [myproj] (0.1.0) -- Feature TESTS enabled -- Feature PKGCONFIG enabled CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_log.cmake:190 (message): CRITICAL - Failed to find Perl (REQUIRED) Call Stack (most recent call first): /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_find_perl.cmake:54 (ecbuild_critical) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_persistent.cmake:42 (ecbuild_find_perl) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:277 (ecbuild_add_persistent) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:657 (ecbuild_add_library_impl) CMakeLists.txt:7 (ecbuild_add_library) -- Configuring incomplete, errors occurred! 5/20 Test #20: project_import ......................***Failed 1.58 sec -- The C compiler identification is GNU 14.0.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 -- ecbuild 3.8.2 /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -- cmake 3.28.3 /usr/bin/cmake -- --------------------------------------------------------- -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Performing Test projectA_C_FLAG_TEST_1 -- Performing Test projectA_C_FLAG_TEST_1 - Success -- Added C flag [-pipe] -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Check size of off_t -- Check size of off_t - done -- --------------------------------------------------------- -- --------------------------------------------------------- -- [projectA] (0.0) -- Feature TESTS enabled -- Feature PKGCONFIG enabled CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_log.cmake:190 (message): CRITICAL - Failed to find Perl (REQUIRED) Call Stack (most recent call first): /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_find_perl.cmake:54 (ecbuild_critical) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_persistent.cmake:42 (ecbuild_find_perl) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:277 (ecbuild_add_persistent) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:657 (ecbuild_add_library_impl) CMakeLists.txt:10 (ecbuild_add_library) -- Configuring incomplete, errors occurred! 6/20 Test #17: find-ecbuild-direnv ................. Passed 1.58 sec 7/20 Test #16: find-ecbuild-module ................. Passed 1.59 sec 8/20 Test #5: ECBUILD-509 .........................***Failed 1.61 sec Found CMake version 3.28.3 cmake -DCMAKE_MODULE_PATH=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/regressions/ECBUILD_509/proj CMake Warning (dev) at CMakeLists.txt:3 (find_package): Policy CMP0074 is not set: find_package uses _ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable ecbuild_ROOT is set to: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2 For compatibility, CMake is ignoring the variable. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is GNU 14.0.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 -- ecbuild 3.8.2 /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -- cmake 3.28.3 /usr/bin/cmake -- --------------------------------------------------------- -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Performing Test myproj_C_FLAG_TEST_1 -- Performing Test myproj_C_FLAG_TEST_1 - Success -- Added C flag [-pipe] -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Check size of off_t -- Check size of off_t - done -- --------------------------------------------------------- -- --------------------------------------------------------- -- [myproj] (0.1.0) -- Feature TESTS enabled -- Feature PKGCONFIG enabled CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_log.cmake:190 (message): CRITICAL - Failed to find Perl (REQUIRED) Call Stack (most recent call first): /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_find_perl.cmake:54 (ecbuild_critical) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_persistent.cmake:42 (ecbuild_find_perl) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:277 (ecbuild_add_persistent) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:657 (ecbuild_add_library_impl) CMakeLists.txt:7 (ecbuild_add_library) -- Configuring incomplete, errors occurred! 9/20 Test #7: ECBUILD-399-ld-origin ...............***Failed 1.61 sec Found CMake version 3.28.3 cmake -DCMAKE_MODULE_PATH=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/regressions/ECBUILD_399/ld-origin -- The C compiler identification is GNU 14.0.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 -- ecbuild 3.8.2 /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -- cmake 3.28.3 /usr/bin/cmake -- --------------------------------------------------------- -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Performing Test test_ld_origin_C_FLAG_TEST_1 -- Performing Test test_ld_origin_C_FLAG_TEST_1 - Success -- Added C flag [-pipe] -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Check size of off_t -- Check size of off_t - done -- --------------------------------------------------------- -- --------------------------------------------------------- -- [test_ld_origin] (1.0) -- Feature TESTS enabled -- Feature PKGCONFIG enabled CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_log.cmake:190 (message): CRITICAL - Failed to find Perl (REQUIRED) Call Stack (most recent call first): /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_find_perl.cmake:54 (ecbuild_critical) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_persistent.cmake:42 (ecbuild_find_perl) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:277 (ecbuild_add_persistent) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:657 (ecbuild_add_library_impl) CMakeLists.txt:14 (ecbuild_add_library) -- Configuring incomplete, errors occurred! 10/20 Test #19: find-ecbuild-dircmd ................. Passed 1.60 sec 11/20 Test #12: bundle-override-features ............ Passed 1.62 sec 12/20 Test #18: find-ecbuild-direnv-full ............ Passed 1.62 sec 13/20 Test #6: ECBUILD-511 .........................***Failed 1.64 sec Found CMake version 3.28.3 cmake -DCMAKE_MODULE_PATH=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -DCMAKE_INSTALL_PREFIX=../install -DINSTALL_LIB_DIR=lib /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/regressions/ECBUILD_511/bundleAB -- Found ecbuild: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake (found suitable version "3.8.2", minimum required is "3.4") -- The C compiler identification is GNU 14.0.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 -- ecbuild 3.8.2 /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -- cmake 3.28.3 /usr/bin/cmake -- --------------------------------------------------------- -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Performing Test bundleAB_C_FLAG_TEST_1 -- Performing Test bundleAB_C_FLAG_TEST_1 - Success -- Added C flag [-pipe] -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Check size of off_t -- Check size of off_t - done -- --------------------------------------------------------- -- --------------------------------------------------------- -- [bundleAB] (0.1.0) -- Feature TESTS enabled -- Feature PKGCONFIG enabled -- --------------------------------------------------------- -- Adding bundle project projectA -- --------------------------------------------------------- -- [projectA] (0.1.0) -- Feature TESTS enabled -- Feature PKGCONFIG enabled CMake Error at /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_log.cmake:190 (message): CRITICAL - Failed to find Perl (REQUIRED) Call Stack (most recent call first): /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_find_perl.cmake:54 (ecbuild_critical) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_persistent.cmake:42 (ecbuild_find_perl) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:277 (ecbuild_add_persistent) /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake/ecbuild_add_library.cmake:657 (ecbuild_add_library_impl) projectA/CMakeLists.txt:7 (ecbuild_add_library) -- Configuring incomplete, errors occurred! 14/20 Test #4: ECBUILD-495 ......................... Passed 1.66 sec 15/20 Test #1: ECBUILD-407 ......................... Passed 1.69 sec 16/20 Test #11: bundle-subproj ...................... Passed 1.79 sec 17/20 Test #8: ECBUILD-399-buildfail ............... Passed 2.05 sec 18/20 Test #9: bundle-subdir-std ................... Passed 3.59 sec 19/20 Test #10: bundle-subdir-ecbfind ............... Passed 3.60 sec 20/20 Test #15: test_ecbuild_add_option ............. Passed 27.34 sec 75% tests passed, 5 tests failed out of 20 Label Time Summary: ecbuild = 57.84 sec*proc (20 tests) script = 57.84 sec*proc (20 tests) Total Test time (real) = 27.36 sec The following tests FAILED: 3 - ECBUILD-433 (Failed) 5 - ECBUILD-509 (Failed) 6 - ECBUILD-511 (Failed) 7 - ECBUILD-399-ld-origin (Failed) 20 - project_import (Failed) Errors while running CTest ```

So looks like there are some dependencies between units.

wdeconinck commented 8 months ago

Hi @kloczek That is very strange and we never seen that before. First tests fail to find CXX compiler and second try PERL? Does it work if you don't add "-j48" to the ctest command?

kloczek commented 8 months ago

Need to test that .. nevertheless If any units needs to be excluded from parallelization it should be adjusted in ctest settings https://www.scivision.dev/cmake-resource-lock-ctest/

kloczek commented 8 months ago

OK after add to build env C++ compiler and perl test suite is OK. Nevertheless still ;looks like there are some dependencies between units usually if some software is needed even by test suite in build automation should be couple of checks for those build/test dependencies (to not be surprised afer successful build on test suite execution that still something is missing. Maybe it is not hard bug/issue but some kind of issue it is 😋 As I have solution I'm leaving you decision what to do with this ticket (improve something or just close). Thx.

wdeconinck commented 8 months ago

What do you mean with "OK after add to build env C++ compiler and perl test suite is OK" ? Could you perhaps explain the steps you have done to make it work?

kloczek commented 8 months ago

It means that after add those two missing to build env even with -j48 test suite do not fails.

wdeconinck commented 8 months ago

Thanks for your feedback. I will close this for now.