Skip to content

"make coverage" should not leak coverage compiler flags to third party C extensions #79682

Closed

Description

@vstinner
BPO 35501
Nosy @vstinner

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2020-02-10.23:57:24.842>
created_at = <Date 2018-12-14.18:47:02.318>
labels = ['build', '3.8']
title = '"make coverage" should not leak coverage compiler flags to third party C extensions'
updated_at = <Date 2020-02-10.23:57:24.841>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2020-02-10.23:57:24.841>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2020-02-10.23:57:24.842>
closer = 'vstinner'
components = ['Build']
creation = <Date 2018-12-14.18:47:02.318>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 35501
keywords = []
message_count = 2.0
messages = ['331850', '361757']
nosy_count = 1.0
nosy_names = ['vstinner']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue35501'
versions = ['Python 3.8']

Activity

  1. vstinner commented on Dec 14, 2018

    @vstinner
    MemberAuthor

    "make coverage" modifies CFLAGS and LIBS, Makefile.pre.in:

    coverage:
    @echo "Building with support for coverage checking:"
    $(MAKE) clean profile-removal
    $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"

    CFLAGS_NODIST should be used instead here. I'm not sure about LIBS: do we need LIBS_NODIST, as we have CFLAGS_NODIST? LIBS_NODIST would be used for Python and C extensions of the stdlib, but not for third-party C extensions: not used by distutils.

    See also bpo-35257: "Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST".

  2. added
    3.8 (EOL)
    build
    on Dec 14, 2018
  3. changed the title [-]"make coverage" should use leak coverage flags to third party C extensions[/-] [+]"make coverage" should not leak coverage compiler flags to third party C extensions[/+] on Dec 18, 2018
  4. vstinner commented on Feb 10, 2020

    @vstinner
    MemberAuthor

    It's unclear to me if it's a real issue or not. Moreover, I'm not comfortable to change the Makefile. So I just close the issue.

  5. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.8 (EOL)build

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions