You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python won't build with dtrace enabled on some systems. #79701
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=Noneclosed_at=<Date2020-09-07.08:42:14.232>created_at=<Date2018-12-17.11:48:50.500>labels= ['build', '3.7']
title="Python won't build with dtrace enabled on some systems."updated_at=<Date2020-09-07.08:42:14.231>user='https://github.com/kulikjak'
Python won't build on Solaris with dtrace support enabled.
Solaris is one of those systems where it is necessary to generate dtrace object files with dtrace -G. While this need is included in python configure and Makefiles, it doesn't work correctly.
First, configure tests -G support on file with not completely valid content of just BEGIN inside. Valid should have BEGIN{}. This is not a problem for systems that don't require dtrace object files as this test should fail for them anyway, however it incorrectly detects those like Solaris.
And second, Makefile is not ready for dtrace as the DTRACE_DEPS variable doesn't include all the necessary files.
New changeset 5c8f537 by Łukasz Langa (Jakub Kulík) in branch 'master': bpo-35520: Fix build with dtrace support on certain systems. (bpo-11194) 5c8f537
kulikjak commented on Apr 12, 2019
kulikjakmannequin
MannequinAuthor
More actions
Can this also be backported to 3.7? I just installed 3.8a3 (where it already is) and it works as expected.
Also we are using this patch ourselves in 3.7 and it works but I guess it would be nicer to have it in upstream as well.
kulikjak commented on Sep 7, 2020
kulikjakmannequin
MannequinAuthor
More actions
No more non-security related backports to 3.7 allowed.
Activity
kulikjak commentedon Dec 17, 2018
Python won't build on Solaris with dtrace support enabled.
Solaris is one of those systems where it is necessary to generate dtrace object files with dtrace -G. While this need is included in python configure and Makefiles, it doesn't work correctly.
First, configure tests -G support on file with not completely valid content of just BEGIN inside. Valid should have BEGIN{}. This is not a problem for systems that don't require dtrace object files as this test should fail for them anyway, however it incorrectly detects those like Solaris.
And second, Makefile is not ready for dtrace as the DTRACE_DEPS variable doesn't include all the necessary files.
ambv commentedon Jan 24, 2019
New changeset 5c8f537 by Łukasz Langa (Jakub Kulík) in branch 'master':
bpo-35520: Fix build with dtrace support on certain systems. (bpo-11194)
5c8f537
kulikjak commentedon Apr 12, 2019
Can this also be backported to 3.7? I just installed 3.8a3 (where it already is) and it works as expected.
Also we are using this patch ourselves in 3.7 and it works but I guess it would be nicer to have it in upstream as well.
kulikjak commentedon Sep 7, 2020
No more non-security related backports to 3.7 allowed.