Skip to content

Compiled code coverage with --gcov doesn't work with Meson #15896

@rgommers

Description

@rgommers

For how this is supposed to work, see the PR description of gh-3021. It works with python runtests.py --gcov, but doesn't work with dev.py:

$ python dev.py --gcov
Removing previous GCOV .gcda files...
The Meson build system
Version: 0.62.0
Source dir: /home/rgommers/code/scipy
Build dir: /home/rgommers/code/scipy/build
Build type: native build
Project name: SciPy
Project version: 1.9.0.dev0

meson.build:1:0: ERROR: Executables created by c compiler /home/rgommers/anaconda3/envs/scipy-dev/bin/x86_64-conda-linux-gnu-cc --coverage are not runnable.

A full log can be found at /home/rgommers/code/scipy/build/meson-logs/meson-log.txt

I made no attempt to figure out why yet.

Full log:

$ cat build/meson-logs/meson-log.txt 
Build started at 2022-03-29T22:07:44.629711
Main binary: /home/rgommers/anaconda3/envs/scipy-dev/bin/python3.10
Build Options: -Dprefix=/home/rgommers/code/scipy/build-install
Python system: Linux
The Meson build system
Version: 0.62.0
Source dir: /home/rgommers/code/scipy
Build dir: /home/rgommers/code/scipy/build
Build type: native build
Project name: SciPy
Project version: 1.9.0.dev0
Sanity testing C compiler: /home/rgommers/anaconda3/envs/scipy-dev/bin/x86_64-conda-linux-gnu-cc --coverage
Is cross compiler: False.
Sanity check compiler command line: /home/rgommers/anaconda3/envs/scipy-dev/bin/x86_64-conda-linux-gnu-cc --coverage sanitycheckc.c -o sanitycheckc.exe -Wno-unused-function -Wno-conversion -Wno-misleading-indentation -Wno-incompatible-pointer-types -D_FILE_OFFSET_BITS=64 -pthread -B /home/rgommers/anaconda3/envs/scipy-dev/compiler_compat -shared -Wl,-rpath,/home/rgommers/anaconda3/envs/scipy-dev/lib -Wl,-rpath-link,/home/rgommers/anaconda3/envs/scipy-dev/lib -L/home/rgommers/anaconda3/envs/scipy-dev/lib -Wl,-rpath,/home/rgommers/anaconda3/envs/scipy-dev/lib -Wl,-rpath-link,/home/rgommers/anaconda3/envs/scipy-dev/lib -L/home/rgommers/anaconda3/envs/scipy-dev/lib --coverage
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/rgommers/code/scipy/build/meson-private/sanitycheckc.exe

meson.build:1:0: ERROR: Executables created by c compiler /home/rgommers/anaconda3/envs/scipy-dev/bin/x86_64-conda-linux-gnu-cc --coverage are not runnable.

@Smit-create is this something you could look at?

Metadata

Metadata

Assignees

No one assigned

    Labels

    MesonItems related to the introduction of Meson as the new build system for SciPy

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions