Title: Out of tree --with--dtrace builds fail with a traceback
Type: Stage:
Components: Build Versions: Python 3.7, Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: cstratak
Priority: normal Keywords: patch

Created on 2016-11-24 10:10 by cstratak, last changed 2017-02-16 14:04 by cstratak.

File name Uploaded Description Edit
create-Include-dir-to-properly-generate-pydtrace_probes.h-file.patch cstratak, 2016-11-24 10:10 review
Pull Requests
URL Status Linked Edit
PR 135 open cstratak, 2017-02-16 14:04
Messages (1)
msg281627 - (view) Author: Charalampos Stratakis (cstratak) * Date: 2016-11-24 10:10
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>
  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.
Date User Action Args
2017-02-16 14:04:38cstrataksetpull_requests: + pull_request97
2016-11-24 10:10:45cstratakcreate