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

BUG: Fix debug and coverage arguments with dev.py #15968

Merged
merged 3 commits into from Apr 12, 2022
Merged

Conversation

Smit-create
Copy link
Member

@Smit-create Smit-create commented Apr 10, 2022

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Smit-create. This looks correct, and at least the build works for me. Installing lcov now to test that part. Did you get a html report out with --lcov-html?

The rest of the if args.debug or args.gcov: block looks like it needs removing as well. https://mesonbuild.com/Builtin-options.html#core-options says that the default buildtype is debug, so this block can simply be removed.

There's also this part:

    if args.debug and args.bench:
        print("*** Benchmarks should not be run against debug version; "
              "remove -g flag ***")

That's a bit harder to know what to do with. If the default build is debug, we should make it easier to run benchmarks in release modes. Let's leave that for a separate issue/PR.

@rgommers rgommers added the maintenance Items related to regular maintenance tasks label Apr 10, 2022
@rgommers
Copy link
Member

I'm getting a lot of warnings, ending in:

geninfo: WARNING: some exclusion markers may be ignored
geninfo: WARNING: could not open /home/rgommers/code/scipy/scipy/sparse/csgraph/_traversal.cpython-310-x86_64-linux-gnu.so.p/_traversal.c
geninfo: WARNING: some exclusion markers may be ignored
geninfo: WARNING: could not open /home/rgommers/code/scipy/scipy/sparse/_csparsetools.cpython-310-x86_64-linux-gnu.so.p/_csparsetools.c
geninfo: WARNING: some exclusion markers may be ignored
Generating lcov HTML output...
genhtml: WARNING: negative counts found in tracefile /home/rgommers/code/scipy/build/lcov.out
genhtml: ERROR: cannot read /home/rgommers/code/scipy/_lib/_fpumode.c
genhtml failed!

@Smit-create
Copy link
Member Author

I'm getting a lot of warnings, ending in:

I also get the same warnings. Using python runtests.py --lcov-html is failing too with many such warnings for me.

@rgommers
Copy link
Member

Okay, how about this:

  • You add the args.debug fix I suggested to this PR
  • We then merge this, since it's an improvement
  • Separate, you look into how to get gcov and lcov-html to actually work. Something simple may be wrong here, and it used to work once upon a time.

@Smit-create Smit-create changed the title BUG: Fix gcov with dev.py BUG: Fix debug argument with dev.py Apr 11, 2022
@rgommers rgommers changed the title BUG: Fix debug argument with dev.py BUG: Fix debug and coverage arguments with dev.py Apr 11, 2022
@Smit-create
Copy link
Member Author

Using python runtests.py --lcov-html is failing too with many such warnings for me.

Some of these warnings look like:

geninfo: WARNING: /home/pc/Smitlunagariya/scipy/build/temp.linux-x86_64-3.10/scipy/interpolate/src/_fitpackmodule.gcno: Overlong record at end of file!
geninfo: WARNING: cannot find an entry for __fitpack.h##18350a1cd763f8c00cdda54abc712d55.gcov in .gcno file, skipping file!
geninfo: WARNING: cannot find an entry for __multiarray_api.h##f5877d835142285458de2973122a6506.gcov in .gcno file, skipping file!
geninfo: WARNING: cannot find an entry for _fitpackmodule.c##0069da34f212e4ba6a39a797207c071c.gcov in .gcno file, skipping file!
geninfo: WARNING: cannot find an entry for ndarraytypes.h##8b8b9fad941d415b08a73d5fd909717f.gcov in .gcno file, skipping file!
geninfo: WARNING: cannot find an entry for object.h##4d6ce8ad5ef5f4d125b18c0382a8112e.gcov in .gcno file, skipping file!
geninfo: WARNING: cannot find an entry for string3.h##f5632556f1e10ac4360f8614efefb3b2.gcov in .gcno file, skipping file!

@rgommers
Copy link
Member

@Smit-create cannot find an entry for will be because those headers are from Python or NumPy. To make that work, you will want to use a debug build of Python (see, e.g., the Python 3.8-dbg CI job which uses the python3.8-dbg Python from Ubuntu), then build NumPy (the default build from source will include debug symbols), and then build SciPy. Can you try that?

@rgommers
Copy link
Member

Once that works, it would also be nice to document how to do a debug build in the "advanced Meson build topics" docs section.

@rgommers
Copy link
Member

rgommers commented Apr 12, 2022

@Smit-create sorry I wasn't quite aware yet two hours ago, and mixed up two different things in my comment above. For debug builds, it would indeed be nice to document it as I suggested, and you do want the Python/NumPy debug builds for that as well. For code coverage with gcov there's more issues and it doesn't need a Python debug build, just SciPy itself built without optimizations (see gh-10215 for comments). --gcov used to work fine (and may still do now) with the commands used as in gh-8379. EDIT: except replace the Run codecov part with lcov-html, because codecov is for uploading results to codecov.io

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After fixing the missing dash, this actually seems to work:

$ python dev.py --gcov -j4
$ cd build  # note: this is needed in order for source files to be found
$ find . -name '*.gcno' -type f -exec gcov -pb {} +
...
File 'scipy/sparse/csgraph/_traversal.cpython-310-x86_64-linux-gnu.so.p/_traversal.c'
Lines executed:56.60% of 3666
Branches executed:59.37% of 2845
Taken at least once:30.44% of 2845
Calls executed:36.26% of 717
Creating 'scipy#sparse#csgraph#_traversal.cpython-310-x86_64-linux-gnu.so.p#_traversal.c.gcov'

File 'scipy/sparse/_csparsetools.cpython-310-x86_64-linux-gnu.so.p/_csparsetools.c'
Lines executed:38.32% of 13913
Branches executed:45.93% of 11394
Taken at least once:23.95% of 11394
Calls executed:34.53% of 3803
Creating 'scipy#sparse#_csparsetools.cpython-310-x86_64-linux-gnu.so.p#_csparsetools.c.gcov'

The --lcov-html part still has an issue with paths. Some careful checking should be able to fix that - it does work in runtests.py, the only difference is the out of place build with Meson. Can you look at that in a follow-up @Smit-create? That will close gh-15896.

dev.py Outdated
@@ -432,6 +432,8 @@ def setup_build(args, env):
return
if args.werror:
cmd += ["--werror"]
if args.gcov:
cmd += ['Db_coverage=true']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Smit-create it looks like you didn't actually test this, because it's missing a dash (it should be -Db_coverage=true to avoid seeing:

meson: error: unrecognized arguments: Db_coverage=true
Meson build setup failed! ({0} elapsed)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! sorry. I just missed that in some hurry.

@rgommers rgommers merged commit e73cefa into scipy:main Apr 12, 2022
@rgommers rgommers added this to the 1.9.0 milestone Apr 12, 2022
@Smit-create
Copy link
Member Author

The --lcov-html part still has an issue with paths. Some careful checking should be able to fix that

Yeah, gcov is working fine with the above two commands, lcov isn't that happy at present:
geninfo: WARNING: no .gcda files found in build/testenv/lib/python3.10/site-packages/ - skipping!

@Smit-create Smit-create deleted the gcov branch April 12, 2022 11:06
@rgommers
Copy link
Member

Yes that's just due to paths. Note that build/testenv/ doesn't exist!

@Smit-create
Copy link
Member Author

Yeah, I was trying to generate the report using runtests.py

@tupui
Copy link
Member

tupui commented Apr 12, 2022

You did not get any warning about not having gcovr? After pip install gcovr I don't have this anymore.

@sayantikabanik
Copy link
Contributor

If I understood correctly, runtests.py: --gcov, --lcov-html are working.

python runtests.py --gcov leaves behind a massive trail of errors. Adding a partial traceback below. Did I miss anything?

Traceback

______________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_entropy.py _______________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_entropy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
________________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_fit.py _________________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_fit.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
_____________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_hypotests.py ______________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_hypotests.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
_______________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_kdeoth.py _______________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_kdeoth.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
_____________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_morestats.py ______________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_morestats.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
____________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_mstats_basic.py ____________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_mstats_basic.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
___________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_mstats_extras.py ____________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_mstats_extras.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
____________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_multivariate.py ____________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_multivariate.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
________________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_qmc.py _________________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_qmc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
________________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_rank.py ________________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_rank.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
___________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_relative_risk.py ____________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_relative_risk.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
_____________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_resampling.py _____________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_resampling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
______________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_sampling.py ______________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_sampling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
_______________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_stats.py ________________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_stats.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
_________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_tukeylambda_stats.py __________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_tukeylambda_stats.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
_____________________________________ ERROR collecting build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_variation.py ______________________________________
ImportError while importing test module '/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/stats/tests/test_variation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../../../miniforge3/envs/scipy-dev/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
scipy/stats/__init__.py:467: in <module>
    from ._stats_py import *
scipy/stats/_stats_py.py:38: in <module>
    from scipy.spatial.distance import cdist
scipy/spatial/__init__.py:105: in <module>
    from ._kdtree import *
scipy/spatial/_kdtree.py:5: in <module>
    from ._ckdtree import cKDTree, cKDTreeNode
_ckdtree.pyx:10: in init scipy.spatial._ckdtree
    ???
scipy/sparse/__init__.py:283: in <module>
    from . import csgraph
scipy/sparse/csgraph/__init__.py:182: in <module>
    from ._laplacian import laplacian
scipy/sparse/csgraph/_laplacian.py:7: in <module>
    from scipy.sparse.linalg import LinearOperator
scipy/sparse/linalg/__init__.py:120: in <module>
    from ._isolve import *
scipy/sparse/linalg/_isolve/__init__.py:4: in <module>
    from .iterative import *
scipy/sparse/linalg/_isolve/iterative.py:8: in <module>
    from . import _iterative
E   ImportError: dlopen(/Users/sayantikabanik/scipy/build/testenv/lib/python3.10/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_llvm_gcda_emit_arcs'
========================================================================= short test summary info ==========================================================================
ERROR scipy/cluster/tests/test_disjoint_set.py
ERROR scipy/cluster/tests/test_hierarchy.py
ERROR scipy/cluster/tests/test_vq.py
ERROR scipy/fft/_pocketfft/tests/test_basic.py
ERROR scipy/fft/_pocketfft/tests/test_real_transforms.py
ERROR scipy/fft/tests/test_backend.py
ERROR scipy/fft/tests/test_fft_function.py
ERROR scipy/fft/tests/test_fftlog.py
ERROR scipy/fft/tests/test_helper.py
ERROR scipy/fft/tests/test_multithreading.py
ERROR scipy/fft/tests/test_numpy.py
ERROR scipy/fft/tests/test_real_transforms.py
ERROR scipy/fftpack/tests/test_basic.py
ERROR scipy/fftpack/tests/test_helper.py
ERROR scipy/fftpack/tests/test_import.py
ERROR scipy/fftpack/tests/test_pseudo_diffs.py
ERROR scipy/fftpack/tests/test_real_transforms.py
ERROR scipy/integrate/_ivp/tests/test_ivp.py
ERROR scipy/integrate/_ivp/tests/test_rk.py
ERROR scipy/integrate/tests/test__quad_vec.py
ERROR scipy/integrate/tests/test_banded_ode_solvers.py
ERROR scipy/integrate/tests/test_bvp.py
ERROR scipy/integrate/tests/test_integrate.py
ERROR scipy/integrate/tests/test_odeint_jac.py
ERROR scipy/integrate/tests/test_quadpack.py
ERROR scipy/integrate/tests/test_quadrature.py
ERROR scipy/interpolate/tests/test_bsplines.py
ERROR scipy/interpolate/tests/test_fitpack.py
ERROR scipy/interpolate/tests/test_fitpack2.py
ERROR scipy/interpolate/tests/test_gil.py
ERROR scipy/interpolate/tests/test_interpnd.py
ERROR scipy/interpolate/tests/test_interpolate.py
ERROR scipy/interpolate/tests/test_ndgriddata.py
ERROR scipy/interpolate/tests/test_pade.py
ERROR scipy/interpolate/tests/test_polyint.py
ERROR scipy/interpolate/tests/test_rbf.py
ERROR scipy/interpolate/tests/test_rbfinterp.py
ERROR scipy/interpolate/tests/test_regression.py
ERROR scipy/io/_harwell_boeing/tests/test_fortran_format.py
ERROR scipy/io/_harwell_boeing/tests/test_hb.py
ERROR scipy/io/arff/tests/test_arffread.py
ERROR scipy/io/matlab/tests/test_byteordercodes.py
ERROR scipy/io/matlab/tests/test_mio.py
ERROR scipy/io/matlab/tests/test_mio5_utils.py
ERROR scipy/io/matlab/tests/test_mio_funcs.py
ERROR scipy/io/matlab/tests/test_mio_utils.py
ERROR scipy/io/matlab/tests/test_miobase.py
ERROR scipy/io/matlab/tests/test_pathological.py
ERROR scipy/io/matlab/tests/test_streams.py
ERROR scipy/io/tests/test_fortran.py
ERROR scipy/io/tests/test_idl.py
ERROR scipy/io/tests/test_mmio.py
ERROR scipy/io/tests/test_netcdf.py
ERROR scipy/io/tests/test_paths.py
ERROR scipy/io/tests/test_wavfile.py
ERROR scipy/linalg/tests/test_basic.py
ERROR scipy/linalg/tests/test_blas.py
ERROR scipy/linalg/tests/test_cython_blas.py
ERROR scipy/linalg/tests/test_cython_lapack.py
ERROR scipy/linalg/tests/test_cythonized_array_utils.py
ERROR scipy/linalg/tests/test_decomp.py
ERROR scipy/linalg/tests/test_decomp_cholesky.py
ERROR scipy/linalg/tests/test_decomp_cossin.py
ERROR scipy/linalg/tests/test_decomp_ldl.py
ERROR scipy/linalg/tests/test_decomp_polar.py
ERROR scipy/linalg/tests/test_decomp_update.py
ERROR scipy/linalg/tests/test_fblas.py
ERROR scipy/linalg/tests/test_interpolative.py
ERROR scipy/linalg/tests/test_lapack.py
ERROR scipy/linalg/tests/test_matfuncs.py
ERROR scipy/linalg/tests/test_matmul_toeplitz.py
ERROR scipy/linalg/tests/test_misc.py
ERROR scipy/linalg/tests/test_procrustes.py
ERROR scipy/linalg/tests/test_sketches.py
ERROR scipy/linalg/tests/test_solve_toeplitz.py
ERROR scipy/linalg/tests/test_solvers.py
ERROR scipy/linalg/tests/test_special_matrices.py
ERROR scipy/ndimage/tests/test_c_api.py
ERROR scipy/ndimage/tests/test_datatypes.py
ERROR scipy/ndimage/tests/test_filters.py
ERROR scipy/ndimage/tests/test_fourier.py
ERROR scipy/ndimage/tests/test_interpolation.py
ERROR scipy/ndimage/tests/test_measurements.py
ERROR scipy/ndimage/tests/test_morphology.py
ERROR scipy/ndimage/tests/test_splines.py
ERROR scipy/odr/tests/test_odr.py
ERROR scipy/optimize/_trustregion_constr/tests/test_canonical_constraint.py
ERROR scipy/optimize/_trustregion_constr/tests/test_projections.py
ERROR scipy/optimize/_trustregion_constr/tests/test_qp_subproblem.py
ERROR scipy/optimize/_trustregion_constr/tests/test_report.py
ERROR scipy/optimize/tests/test__basinhopping.py
ERROR scipy/optimize/tests/test__differential_evolution.py
ERROR scipy/optimize/tests/test__dual_annealing.py
ERROR scipy/optimize/tests/test__linprog_clean_inputs.py
ERROR scipy/optimize/tests/test__numdiff.py
ERROR scipy/optimize/tests/test__remove_redundancy.py
ERROR scipy/optimize/tests/test__root.py
ERROR scipy/optimize/tests/test__shgo.py
ERROR scipy/optimize/tests/test__spectral.py
ERROR scipy/optimize/tests/test_cobyla.py
ERROR scipy/optimize/tests/test_constraint_conversion.py
ERROR scipy/optimize/tests/test_constraints.py
ERROR scipy/optimize/tests/test_cython_optimize.py
ERROR scipy/optimize/tests/test_differentiable_functions.py
ERROR scipy/optimize/tests/test_hessian_update_strategy.py
ERROR scipy/optimize/tests/test_lbfgsb_hessinv.py
ERROR scipy/optimize/tests/test_lbfgsb_setulb.py
ERROR scipy/optimize/tests/test_least_squares.py
ERROR scipy/optimize/tests/test_linear_assignment.py
ERROR scipy/optimize/tests/test_linesearch.py
ERROR scipy/optimize/tests/test_linprog.py
ERROR scipy/optimize/tests/test_lsq_common.py
ERROR scipy/optimize/tests/test_lsq_linear.py
ERROR scipy/optimize/tests/test_milp.py
ERROR scipy/optimize/tests/test_minimize_constrained.py
ERROR scipy/optimize/tests/test_minpack.py
ERROR scipy/optimize/tests/test_nnls.py
ERROR scipy/optimize/tests/test_nonlin.py
ERROR scipy/optimize/tests/test_optimize.py
ERROR scipy/optimize/tests/test_quadratic_assignment.py
ERROR scipy/optimize/tests/test_regression.py
ERROR scipy/optimize/tests/test_slsqp.py
ERROR scipy/optimize/tests/test_tnc.py
ERROR scipy/optimize/tests/test_trustregion.py
ERROR scipy/optimize/tests/test_trustregion_exact.py
ERROR scipy/optimize/tests/test_trustregion_krylov.py
ERROR scipy/optimize/tests/test_zeros.py
ERROR scipy/signal/tests/test_array_tools.py
ERROR scipy/signal/tests/test_bsplines.py
ERROR scipy/signal/tests/test_cont2discrete.py
ERROR scipy/signal/tests/test_czt.py
ERROR scipy/signal/tests/test_dltisys.py
ERROR scipy/signal/tests/test_filter_design.py
ERROR scipy/signal/tests/test_fir_filter_design.py
ERROR scipy/signal/tests/test_ltisys.py
ERROR scipy/signal/tests/test_max_len_seq.py
ERROR scipy/signal/tests/test_peak_finding.py
ERROR scipy/signal/tests/test_result_type.py
ERROR scipy/signal/tests/test_savitzky_golay.py
ERROR scipy/signal/tests/test_signaltools.py
ERROR scipy/signal/tests/test_spectral.py
ERROR scipy/signal/tests/test_upfirdn.py
ERROR scipy/signal/tests/test_waveforms.py
ERROR scipy/signal/tests/test_wavelets.py
ERROR scipy/signal/tests/test_windows.py
ERROR scipy/sparse/csgraph/tests/test_connected_components.py
ERROR scipy/sparse/csgraph/tests/test_conversions.py
ERROR scipy/sparse/csgraph/tests/test_flow.py
ERROR scipy/sparse/csgraph/tests/test_graph_laplacian.py
ERROR scipy/sparse/csgraph/tests/test_matching.py
ERROR scipy/sparse/csgraph/tests/test_reordering.py
ERROR scipy/sparse/csgraph/tests/test_shortest_path.py
ERROR scipy/sparse/csgraph/tests/test_spanning_tree.py
ERROR scipy/sparse/csgraph/tests/test_traversal.py
ERROR scipy/sparse/linalg/_dsolve/tests/test_linsolve.py
ERROR scipy/sparse/linalg/_eigen/arpack/tests/test_arpack.py
ERROR scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py
ERROR scipy/sparse/linalg/_eigen/tests/test_svds.py
ERROR scipy/sparse/linalg/_isolve/tests/test_gcrotmk.py
ERROR scipy/sparse/linalg/_isolve/tests/test_iterative.py
ERROR scipy/sparse/linalg/_isolve/tests/test_lgmres.py
ERROR scipy/sparse/linalg/_isolve/tests/test_lsmr.py
ERROR scipy/sparse/linalg/_isolve/tests/test_lsqr.py
ERROR scipy/sparse/linalg/_isolve/tests/test_minres.py
ERROR scipy/sparse/linalg/_isolve/tests/test_utils.py
ERROR scipy/sparse/linalg/tests/test_expm_multiply.py
ERROR scipy/sparse/linalg/tests/test_interface.py
ERROR scipy/sparse/linalg/tests/test_matfuncs.py
ERROR scipy/sparse/linalg/tests/test_norm.py
ERROR scipy/sparse/linalg/tests/test_onenormest.py
ERROR scipy/sparse/linalg/tests/test_propack.py
ERROR scipy/sparse/linalg/tests/test_pydata_sparse.py
ERROR scipy/sparse/tests/test_array_api.py
ERROR scipy/sparse/tests/test_base.py
ERROR scipy/sparse/tests/test_construct.py
ERROR scipy/sparse/tests/test_csc.py
ERROR scipy/sparse/tests/test_csr.py
ERROR scipy/sparse/tests/test_extract.py
ERROR scipy/sparse/tests/test_matrix_io.py
ERROR scipy/sparse/tests/test_sparsetools.py
ERROR scipy/sparse/tests/test_spfuncs.py
ERROR scipy/sparse/tests/test_sputils.py
ERROR scipy/spatial/tests/test__plotutils.py
ERROR scipy/spatial/tests/test__procrustes.py
ERROR scipy/spatial/tests/test_distance.py
ERROR scipy/spatial/tests/test_hausdorff.py
ERROR scipy/spatial/tests/test_kdtree.py
ERROR scipy/spatial/tests/test_qhull.py
ERROR scipy/spatial/tests/test_slerp.py
ERROR scipy/spatial/tests/test_spherical_voronoi.py
ERROR scipy/spatial/transform/tests/test_rotation.py
ERROR scipy/spatial/transform/tests/test_rotation_groups.py
ERROR scipy/spatial/transform/tests/test_rotation_spline.py
ERROR scipy/special/tests/test_basic.py
ERROR scipy/special/tests/test_bdtr.py
ERROR scipy/special/tests/test_boxcox.py
ERROR scipy/special/tests/test_cdflib.py
ERROR scipy/special/tests/test_cdft_asymptotic.py
ERROR scipy/special/tests/test_cosine_distr.py
ERROR scipy/special/tests/test_cython_special.py
ERROR scipy/special/tests/test_data.py
ERROR scipy/special/tests/test_digamma.py
ERROR scipy/special/tests/test_ellip_harm.py
ERROR scipy/special/tests/test_erfinv.py
ERROR scipy/special/tests/test_exponential_integrals.py
ERROR scipy/special/tests/test_faddeeva.py
ERROR scipy/special/tests/test_gamma.py
ERROR scipy/special/tests/test_gammainc.py
ERROR scipy/special/tests/test_hyp2f1.py
ERROR scipy/special/tests/test_hypergeometric.py
ERROR scipy/special/tests/test_kolmogorov.py
ERROR scipy/special/tests/test_lambertw.py
ERROR scipy/special/tests/test_log_softmax.py
ERROR scipy/special/tests/test_loggamma.py
ERROR scipy/special/tests/test_logit.py
ERROR scipy/special/tests/test_logsumexp.py
ERROR scipy/special/tests/test_mpmath.py
ERROR scipy/special/tests/test_nan_inputs.py
ERROR scipy/special/tests/test_ndtr.py
ERROR scipy/special/tests/test_ndtri_exp.py
ERROR scipy/special/tests/test_orthogonal.py
ERROR scipy/special/tests/test_orthogonal_eval.py
ERROR scipy/special/tests/test_owens_t.py
ERROR scipy/special/tests/test_pcf.py
ERROR scipy/special/tests/test_pdtr.py
ERROR scipy/special/tests/test_precompute_expn_asy.py
ERROR scipy/special/tests/test_precompute_gammainc.py
ERROR scipy/special/tests/test_precompute_utils.py
ERROR scipy/special/tests/test_round.py
ERROR scipy/special/tests/test_sf_error.py
ERROR scipy/special/tests/test_sici.py
ERROR scipy/special/tests/test_spence.py
ERROR scipy/special/tests/test_spfun_stats.py
ERROR scipy/special/tests/test_sph_harm.py
ERROR scipy/special/tests/test_spherical_bessel.py
ERROR scipy/special/tests/test_trig.py
ERROR scipy/special/tests/test_wright_bessel.py
ERROR scipy/special/tests/test_wrightomega.py
ERROR scipy/special/tests/test_zeta.py
ERROR scipy/stats/_page_trend_test.py
ERROR scipy/stats/tests/test_axis_nan_policy.py
ERROR scipy/stats/tests/test_binned_statistic.py
ERROR scipy/stats/tests/test_contingency.py
ERROR scipy/stats/tests/test_continuous_basic.py
ERROR scipy/stats/tests/test_crosstab.py
ERROR scipy/stats/tests/test_discrete_basic.py
ERROR scipy/stats/tests/test_discrete_distns.py
ERROR scipy/stats/tests/test_distributions.py
ERROR scipy/stats/tests/test_entropy.py
ERROR scipy/stats/tests/test_fit.py
ERROR scipy/stats/tests/test_hypotests.py
ERROR scipy/stats/tests/test_kdeoth.py
ERROR scipy/stats/tests/test_morestats.py
ERROR scipy/stats/tests/test_mstats_basic.py
ERROR scipy/stats/tests/test_mstats_extras.py
ERROR scipy/stats/tests/test_multivariate.py
ERROR scipy/stats/tests/test_qmc.py
ERROR scipy/stats/tests/test_rank.py
ERROR scipy/stats/tests/test_relative_risk.py
ERROR scipy/stats/tests/test_resampling.py
ERROR scipy/stats/tests/test_sampling.py
ERROR scipy/stats/tests/test_stats.py
ERROR scipy/stats/tests/test_tukeylambda_stats.py
ERROR scipy/stats/tests/test_variation.py


python runtests.py --lcov-html now generates HTML under build/lcov though doesn't look great.

Screenshot 2022-04-13 at 10 24 14 AM

@rgommers
Copy link
Member

@sayantikabanik it's working with GCC + gcov. I have no idea what to expect when you mix Clang with gcov, which you are doing here (the missing symbol is '_llvm_gcda_emit_arcs'). Maybe you're missing a component, maybe there's an issue in the build somewhere, or maybe this isn't supposed to work at all.

@Smit-create
Copy link
Member Author

I was trying to generate the report using runtests.py. I used the following steps to make sure gcov works fine.

python runtests.py --gcov
find build -name '*.gcno' -type f -exec gcov -pb {} +

This works by printing out:

...
File 'scipy/interpolate/src/_fitpackmodule.c'
Lines executed:0.00% of 822
Branches executed:0.00% of 552
Taken at least once:0.00% of 552
Calls executed:0.00% of 232
Creating 'scipy#interpolate#src#_fitpackmodule.c.gcov'

File 'scipy/interpolate/interpnd.c'
Lines executed:0.00% of 9102
Branches executed:0.00% of 5399
Taken at least once:0.00% of 5399
Calls executed:0.00% of 1584
Creating 'scipy#interpolate#interpnd.c.gcov'

What should I do to generate the HTML report after this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants