Skip to content

configure checks fail confusingly under --with-address-sanitizer if libasan is missing #75382

Open

Description

@pmatos
mannequin
BPO 31199
Nosy @Yhg1s, @matrixise, @pmatos
PRs
  • bpo-31199: configure fails if libasan is not installed when --with-address-sanitizer is enabled #12433
  • 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 = None
    created_at = <Date 2017-08-14.08:01:57.293>
    labels = ['build']
    title = 'configure checks fail confusingly under --with-address-sanitizer if libasan is missing'
    updated_at = <Date 2019-03-19.12:31:17.603>
    user = 'https://github.com/pmatos'

    bugs.python.org fields:

    activity = <Date 2019-03-19.12:31:17.603>
    actor = 'matrixise'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Build']
    creation = <Date 2017-08-14.08:01:57.293>
    creator = 'pmatos'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31199
    keywords = ['patch']
    message_count = 3.0
    messages = ['300238', '300239', '338347']
    nosy_count = 3.0
    nosy_names = ['twouters', 'matrixise', 'pmatos']
    pr_nums = ['12433']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue31199'
    versions = []

    Linked PRs

    Activity

    1. pmatos commented on Aug 14, 2017

      pmatosmannequin
      MannequinAuthor

      On a Fedora 26 system, I run configure as:
      $ ../configure --with-assertions --with-lto --with-pydebug --with-address-sanitizer --disable-ipv6

      My pyconfig.h contains:
      /* #undef HAVE_CLOCK */

      /* Define to 1 if you have the `clock_getres' function. */
      /* #undef HAVE_CLOCK_GETRES */

      /* Define to 1 if you have the `clock_gettime' function. */
      /* #undef HAVE_CLOCK_GETTIME */

      /* Define to 1 if you have the `clock_settime' function. */
      /* #undef HAVE_CLOCK_SETTIME */

      /* Define if the C compiler supports computed gotos. */
      /* #undef HAVE_COMPUTED_GOTOS */

      When this happens, __PyTime_FromTimespec is undefined in pytime.c:747.
      ../Python/pytime.c:747:9: error: implicit declaration of function ‘_PyTime_FromTimespec’; did
      you mean ‘_PyTime_FromTimeval’? [-Werror=implicit-function-declaration]
      if (_PyTime_FromTimespec(tp, &ts, raise) < 0)
      ^~~~~~~~~~~~~~~~~~~~
      _PyTime_FromTimeval
      cc1: some warnings being treated as errors
      make[2]: *** [Makefile:1553: Python/pytime.o] Error 1

    2. added
      buildThe build process and cross-build
      on Aug 14, 2017
    3. pmatos commented on Aug 14, 2017

      pmatosmannequin
      MannequinAuthor

      OK, the problem was the missing libasan which made quite a few checks fail.

      We should check for libasan before all other checks, when compiling with --with-address-sanitizer.

    4. changed the title [-]!HAVE_CLOCK_GETTIME causes problems with _PyTime_FromTimespec[/-] [+]configure checks fail confusingly under --with-address-sanitizer if libasan is missing[/+] on Aug 14, 2017
    5. matrixise commented on Mar 19, 2019

      @matrixise
      Member

      Hi Paulo,

      Could you try with the associated PR (12433)?

      Thank you,

    6. 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

      buildThe build process and cross-build

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions