This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ctypes.util.find_library fails with gcc 9
Type: Stage: resolved
Components: ctypes Versions: Python 3.10, Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pablogsal Nosy List: miss-islington, pablogsal
Priority: normal Keywords: patch

Created on 2020-10-08 17:17 by pablogsal, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 22598 merged pablogsal, 2020-10-08 17:23
PR 22599 merged miss-islington, 2020-10-08 18:31
PR 22600 merged pablogsal, 2020-10-08 18:33
PR 22601 merged pablogsal, 2020-10-08 18:33
Messages (5)
msg378258 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2020-10-08 17:17
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.
msg378264 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2020-10-08 18:31
New changeset 27ac19cca2c639caaf6fedf3632fe6beb265f24f by Pablo Galindo in branch 'master':
bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598)
https://github.com/python/cpython/commit/27ac19cca2c639caaf6fedf3632fe6beb265f24f
msg378270 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2020-10-08 18:50
New changeset 6ceb5232aeb1943dacbbdb87e7dddfaa716678bc 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)
https://github.com/python/cpython/commit/6ceb5232aeb1943dacbbdb87e7dddfaa716678bc
msg378271 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2020-10-08 18:50
New changeset 9b5a023a5dc3127da15253f7acad71019395ebe1 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)
https://github.com/python/cpython/commit/9b5a023a5dc3127da15253f7acad71019395ebe1
msg378274 - (view) Author: miss-islington (miss-islington) Date: 2020-10-08 18:55
New changeset a4ac5fadf55a9743c6812dea8d31ca4f05f33829 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)
https://github.com/python/cpython/commit/a4ac5fadf55a9743c6812dea8d31ca4f05f33829
History
Date User Action Args
2022-04-11 14:59:36adminsetgithub: 86142
2020-10-08 19:04:10pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-10-08 18:55:32miss-islingtonsetmessages: + msg378274
2020-10-08 18:50:41pablogsalsetmessages: + msg378271
2020-10-08 18:50:37pablogsalsetmessages: + msg378270
2020-10-08 18:33:49pablogsalsetpull_requests: + pull_request21589
2020-10-08 18:33:11pablogsalsetpull_requests: + pull_request21588
2020-10-08 18:31:37miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request21587
2020-10-08 18:31:25pablogsalsetmessages: + msg378264
2020-10-08 17:23:43pablogsalsetkeywords: + patch
stage: patch review
pull_requests: + pull_request21586
2020-10-08 17:17:51pablogsalcreate