New submission from Charalampos Stratakis:

By invoking an out of tree build of python with the --with-dtrace flag enabled, 
make fails with an error.

Create a new folder at the source directory:
$ mkdir _build && cd _build
$ ../configure --with-dtrace
$ make

/usr/bin/dtrace  -o Include/pydtrace_probes.h -h -s ../Include/pydtrace.d
Traceback (most recent call last):
  File "/usr/bin/dtrace", line 440, in <module>
    sys.exit(main())
  File "/usr/bin/dtrace", line 385, in main
    providers.probe_write(s_filename, filename + suffix)
  File "/usr/bin/dtrace", line 181, in probe_write
    hdr = open(header, mode='w')
FileNotFoundError: [Errno 2] No such file or directory: 
'Include/pydtrace_probes.h'
Makefile:896: recipe for target 'Include/pydtrace_probes.h' failed
make: *** [Include/pydtrace_probes.h] Error 1

This is because the Include directory doesn't exist.

Attaching a patch to fix this.

----------
components: Build
files: create-Include-dir-to-properly-generate-pydtrace_probes.h-file.patch
keywords: patch
messages: 281627
nosy: cstratak
priority: normal
severity: normal
status: open
title: Out of tree --with--dtrace builds fail with a traceback
versions: Python 3.6, Python 3.7
Added file: 
http://bugs.python.org/file45622/create-Include-dir-to-properly-generate-pydtrace_probes.h-file.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28787>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to