public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/29070] New: GDB fails to configure with Framework Python on macOS
@ 2022-04-17 6:17 spam_hole at shaw dot ca
2022-04-18 13:36 ` [Bug python/29070] " tromey at sourceware dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: spam_hole at shaw dot ca @ 2022-04-17 6:17 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29070
Bug ID: 29070
Summary: GDB fails to configure with Framework Python on macOS
Product: gdb
Version: 11.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: spam_hole at shaw dot ca
Target Milestone: ---
Created attachment 14067
--> https://sourceware.org/bugzilla/attachment.cgi?id=14067&action=edit
Patch which fixes framework builds on macOS
Configuring GDB with a framework build of Python on macOS (e.g. any of the
official Python.org installers) fails to use Python. For example, configuring
with
"--with-python=/Library/Frameworks/Python.framework/Versions/3.8/bin/python3"
fails due to the following error in config.log:
configure:11020: checking whether to use python
configure:11022: result:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
configure:11220: checking for python
configure:11238: gcc -o conftest -g -O2
-I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
-I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
conftest.c
-L/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/config-3.8-darwin
-lpython3.8 -ldl -framework CoreFoundation -Wl,-stack_size,1000000 -framework
CoreFoundation Python.framework/Versions/3.8/Python -lncurses -lm >&5
clang: error: no such file or directory: 'Python.framework/Versions/3.8/Python'
configure:11238: $? = 1
configure: failed program was:
...
configure:11248: result: no
configure:11338: error: no usable python found at
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
This occurs with the default Python too, but the error is ignored:
configure:11020: checking whether to use python
configure:11022: result: auto
configure:11071: checking for python
configure:11102: result:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
configure:11220: checking for python
configure:11238: gcc -o conftest -g -O2
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
conftest.c
-L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
-lpython2.7 -ldl -framework CoreFoundation -u _PyMac_Error
Python.framework/Versions/2.7/Python -lncurses -lm >&5
clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'
configure:11238: $? = 1
configure: failed program was:
...
configure:11248: result: no
configure:11334: WARNING: python is missing or unusable; some features may be
unavailable.
This is related to bug #19378
(https://sourceware.org/bugzilla/show_bug.cgi?id=19378) but is not a duplicate.
The attached patch fixes this issue. It is adapted from the patch for Python
issue #16848 (https://bugs.python.org/issue16848):
https://hg.python.org/cpython/rev/bab708624dc4/. All it does is ignore
LINKFORSHARED if PYTHONFRAMEWORK is set, which will be the case on macOS,
following the same logic that is in newer python-config.py scripts (dating back
to recent 2.7 releases). With this patch, pointing --with-python at a framework
build of Python works fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug python/29070] GDB fails to configure with Framework Python on macOS
2022-04-17 6:17 [Bug python/29070] New: GDB fails to configure with Framework Python on macOS spam_hole at shaw dot ca
@ 2022-04-18 13:36 ` tromey at sourceware dot org
2022-06-07 15:33 ` [Bug build/29070] " tromey at sourceware dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2022-04-18 13:36 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29070
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Hi. Thank you for the patch.
gdb patches aren't normally reviewed in bugzilla.
Instead please see the contribution checklist:
https://sourceware.org/gdb/wiki/ContributionChecklist
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug build/29070] GDB fails to configure with Framework Python on macOS
2022-04-17 6:17 [Bug python/29070] New: GDB fails to configure with Framework Python on macOS spam_hole at shaw dot ca
2022-04-18 13:36 ` [Bug python/29070] " tromey at sourceware dot org
@ 2022-06-07 15:33 ` tromey at sourceware dot org
2023-03-26 1:55 ` chrisj at rtems dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2022-06-07 15:33 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29070
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|python |build
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Maybe a dup of bug #19378.
That one also has a patch, though a different one.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug build/29070] GDB fails to configure with Framework Python on macOS
2022-04-17 6:17 [Bug python/29070] New: GDB fails to configure with Framework Python on macOS spam_hole at shaw dot ca
2022-04-18 13:36 ` [Bug python/29070] " tromey at sourceware dot org
2022-06-07 15:33 ` [Bug build/29070] " tromey at sourceware dot org
@ 2023-03-26 1:55 ` chrisj at rtems dot org
2023-03-26 3:29 ` chrisj at rtems dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: chrisj at rtems dot org @ 2023-03-26 1:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29070
Chris Johns <chrisj at rtems dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chrisj at rtems dot org
--- Comment #3 from Chris Johns <chrisj at rtems dot org> ---
I have used this patch to build GDB for RTEMS on Ventura with the latest Python
downloaded from python.org. I can confirm this bug if a patch like this is not
used.
The other referenced ticket (bug #19378) removes the use of `LINKFORSHARED`. I
created a patch similar to this as it leave the check. I was not sure where it
those flags may be used.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug build/29070] GDB fails to configure with Framework Python on macOS
2022-04-17 6:17 [Bug python/29070] New: GDB fails to configure with Framework Python on macOS spam_hole at shaw dot ca
` (2 preceding siblings ...)
2023-03-26 1:55 ` chrisj at rtems dot org
@ 2023-03-26 3:29 ` chrisj at rtems dot org
2023-08-28 13:52 ` tromey at sourceware dot org
2023-08-28 13:53 ` tromey at sourceware dot org
5 siblings, 0 replies; 7+ messages in thread
From: chrisj at rtems dot org @ 2023-03-26 3:29 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29070
--- Comment #4 from Chris Johns <chrisj at rtems dot org> ---
Created attachment 14783
--> https://sourceware.org/bugzilla/attachment.cgi?id=14783&action=edit
Patch updated to gdb-13.1
This is the original patch update to apply against gdb-13.1
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug build/29070] GDB fails to configure with Framework Python on macOS
2022-04-17 6:17 [Bug python/29070] New: GDB fails to configure with Framework Python on macOS spam_hole at shaw dot ca
` (3 preceding siblings ...)
2023-03-26 3:29 ` chrisj at rtems dot org
@ 2023-08-28 13:52 ` tromey at sourceware dot org
2023-08-28 13:53 ` tromey at sourceware dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2023-08-28 13:52 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29070
--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
Thank you for updating the patch.
Reviews aren't done in bugzilla, please follow the contribution
instructions:
https://sourceware.org/gdb/wiki/ContributionChecklist
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug build/29070] GDB fails to configure with Framework Python on macOS
2022-04-17 6:17 [Bug python/29070] New: GDB fails to configure with Framework Python on macOS spam_hole at shaw dot ca
` (4 preceding siblings ...)
2023-08-28 13:52 ` tromey at sourceware dot org
@ 2023-08-28 13:53 ` tromey at sourceware dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2023-08-28 13:53 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29070
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |congeec at live dot com
--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
*** Bug 19378 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-28 13:53 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-17 6:17 [Bug python/29070] New: GDB fails to configure with Framework Python on macOS spam_hole at shaw dot ca
2022-04-18 13:36 ` [Bug python/29070] " tromey at sourceware dot org
2022-06-07 15:33 ` [Bug build/29070] " tromey at sourceware dot org
2023-03-26 1:55 ` chrisj at rtems dot org
2023-03-26 3:29 ` chrisj at rtems dot org
2023-08-28 13:52 ` tromey at sourceware dot org
2023-08-28 13:53 ` tromey at sourceware dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).