Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: add test package depending on a cmake subproject #599

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

TST: make cmake-subproject test package work with older Meson

b1f6a08
Select commit
Loading
Failed to load commit list.
Open

TST: add test package depending on a cmake subproject #599

TST: make cmake-subproject test package work with older Meson
b1f6a08
Select commit
Loading
Failed to load commit list.
Cirrus CI / fedora-37 failed Mar 12, 2024 in 1m 14s

Task Summary

Instruction test failed in 01:12

Details

⚠️ Not enough compute credits to prioritize tasks!
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:00 clone
❌ 01:12 test

mesonpy/__init__.py:723: in __init__
    self._configure(reconfigure=reconfigure)
mesonpy/__init__.py:788: in _configure
    self._run(self._meson + ['setup', *setup_args])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <mesonpy.Project object at 0x7f6a4393e610>
cmd = ['meson', 'setup', '/tmp/cirrus-ci-build/tests/packages/cmake-subproject', '/tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-0svrzdn1', '-Dbuildtype=release', '-Db_ndebug=if-release', ...]

    def _run(self, cmd: Sequence[str]) -> None:
        """Invoke a subprocess."""
        # Flush the line to ensure that the log line with the executed
        # command line appears before the command output. Without it,
        # the lines appear in the wrong order in pip output.
        _log('{style.INFO}+ {cmd}{style.RESET}'.format(style=style, cmd=' '.join(cmd)), flush=True)
        r = subprocess.run(cmd, cwd=self._build_dir)
        if r.returncode != 0:
>           raise SystemExit(r.returncode)
E           SystemExit: 1

mesonpy/__init__.py:768: SystemExit
---------------------------- Captured stdout setup -----------------------------
Initialized empty Git repository in /tmp/cirrus-ci-build/tests/packages/cmake-subproject/.git/
+ meson setup /tmp/cirrus-ci-build/tests/packages/cmake-subproject /tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-0svrzdn1 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-0svrzdn1/meson-python-native-file.ini
The Meson build system
Version: 1.3.2
Source dir: /tmp/cirrus-ci-build/tests/packages/cmake-subproject
Build dir: /tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-0svrzdn1
Build type: native build
Project name: cmake-subproject
Project version: 1
C compiler for the host machine: cc (gcc 12.3.1 "cc (GCC) 12.3.1 20230508 (Red Hat 12.3.1-1)")
C linker for the host machine: cc ld.bfd 2.38-27

../meson.build:5:0: ERROR: Unknown compiler(s): [['c++'], ['g++'], ['clang++'], ['nvc++'], ['pgc++'], ['icpc'], ['icpx']]
The following exception(s) were encountered:
Running `c++ --version` gave "[Errno 2] No such file or directory: 'c++'"
Running `g++ --version` gave "[Errno 2] No such file or directory: 'g++'"
Running `clang++ --version` gave "[Errno 2] No such file or directory: 'clang++'"
Running `nvc++ --version` gave "[Errno 2] No such file or directory: 'nvc++'"
Running `pgc++ --version` gave "[Errno 2] No such file or directory: 'pgc++'"
Running `icpc --version` gave "[Errno 2] No such file or directory: 'icpc'"
Running `icpx --version` gave "[Errno 2] No such file or directory: 'icpx'"

A full log can be found at /tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-0svrzdn1/meson-logs/meson-log.txt
=========================== short test summary info ============================
SKIPPED [1] tests/test_project.py:204: Requires MSVC
SKIPPED [3] tests/test_project.py:216: macOS specific test
SKIPPED [2] tests/test_project.py:233: macOS specific test
SKIPPED [1] tests/test_tags.py:47: macOS specific test
SKIPPED [1] tests/test_tags.py:59: macOS specific test
SKIPPED [1] tests/test_tags.py:69: macOS specific test
SKIPPED [2] tests/test_wheel.py:249: macOS specific test
ERROR tests/test_wheel.py::test_cmake_subproject - SystemExit: 1
=================== 97 passed, 11 skipped, 1 error in 59.81s ===================
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������