Skip to content

ctypes.util.find_library fails with gcc 9 #86142

Closed

Description

@pablogsal
BPO 41976
Nosy @pablogsal, @miss-islington
PRs
  • bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 #22598
  • [3.9] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598) #22599
  • [3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598) #22600
  • [3.7] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598) #22601
  • 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 = 'https://github.com/pablogsal'
    closed_at = <Date 2020-10-08.19:04:10.144>
    created_at = <Date 2020-10-08.17:17:51.322>
    labels = ['ctypes', '3.7', '3.8', '3.9', '3.10']
    title = 'ctypes.util.find_library fails with gcc 9'
    updated_at = <Date 2020-10-08.19:04:10.144>
    user = 'https://github.com/pablogsal'

    bugs.python.org fields:

    activity = <Date 2020-10-08.19:04:10.144>
    actor = 'pablogsal'
    assignee = 'pablogsal'
    closed = True
    closed_date = <Date 2020-10-08.19:04:10.144>
    closer = 'pablogsal'
    components = ['ctypes']
    creation = <Date 2020-10-08.17:17:51.322>
    creator = 'pablogsal'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41976
    keywords = ['patch']
    message_count = 5.0
    messages = ['378258', '378264', '378270', '378271', '378274']
    nosy_count = 2.0
    nosy_names = ['pablogsal', 'miss-islington']
    pr_nums = ['22598', '22599', '22600', '22601']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41976'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']

    Activity

    1. pablogsal commented on Oct 8, 2020

      @pablogsal
      MemberAuthor

      Running ctypes.util.find_library with gcc-9, if ldconfig is not available, it falls back to check the output of gcc -Wl,-t -lc to locate the library and then runs objdump on the file it's found to parse out the SONAME. With the gcc-9 the output of that gcc command is slightly perturbed so that /lib64/libc.so is listed before /libc64/libc.so.6. The former is a linker script not and ELF file so objdump fails.

    2. self-assigned this
      on Oct 8, 2020
    3. pablogsal commented on Oct 8, 2020

      @pablogsal
      MemberAuthor

      New changeset 27ac19c by Pablo Galindo in branch 'master':
      bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598)
      27ac19c

    4. pablogsal commented on Oct 8, 2020

      @pablogsal
      MemberAuthor

      New changeset 6ceb523 by Pablo Galindo in branch '3.8':
      [3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22600)
      6ceb523

    5. pablogsal commented on Oct 8, 2020

      @pablogsal
      MemberAuthor

      New changeset 9b5a023 by Pablo Galindo in branch '3.7':
      [3.7] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22601)
      9b5a023

    6. miss-islington commented on Oct 8, 2020

      @miss-islington
      Contributor

      New changeset a4ac5fa by Miss Skeleton (bot) in branch '3.9':
      bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598)
      a4ac5fa

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions