diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/0001-configure.ac-define-a-path-for-profile-data.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/0001-configure.ac-define-a-path-for-profile-data.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-configure.ac-define-a-path-for-profile-data.patch b/meta/recipes-devtools/python/python3/0001-configure.ac-define-a-path-for-profile-data.patch new file mode 100644 index 0000000000..ee3d645521 --- /dev/null +++ b/meta/recipes-devtools/python/python3/0001-configure.ac-define-a-path-for-profile-data.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 5e94e315119117898ce1a2798641848f61d796b1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Thu, 9 Jul 2020 07:58:44 +0000 | ||
4 | Subject: [PATCH] configure.ac: define a path for profile data | ||
5 | |||
6 | There comes below error when use ccache 3.7.10 to compile python3 | ||
7 | and check [1] for more details. | ||
8 | | Python-3.8.3/Modules/_contextvarsmodule.c:43:1: error: source locations for function 'PyInit__contextvars' have changed, the profile data may be out of date [-Werror=coverage-mismatch] | ||
9 | |||
10 | That's because the logic for profile directory changes a little in | ||
11 | [2] after ccache upgrades to 3.7.10. | ||
12 | |||
13 | So define a profile directory path accordingly to fix the above error. | ||
14 | |||
15 | [1] https://github.com/ccache/ccache/issues/615 | ||
16 | [2] https://github.com/ccache/ccache/commit/91a2954eb47b4a106e2be6cf611917b895108e35 | ||
17 | |||
18 | Upstream-Status: Submitted [https://github.com/python/cpython/pull/21408] | ||
19 | |||
20 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
21 | --- | ||
22 | configure.ac | 4 ++-- | ||
23 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
24 | |||
25 | diff --git a/configure.ac b/configure.ac | ||
26 | index 08fe397..bb15bda 100644 | ||
27 | --- a/configure.ac | ||
28 | +++ b/configure.ac | ||
29 | @@ -1332,8 +1332,8 @@ case $cc_basename in | ||
30 | fi | ||
31 | ;; | ||
32 | *) | ||
33 | - PGO_PROF_GEN_FLAG="-fprofile-generate" | ||
34 | - PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | ||
35 | + PGO_PROF_GEN_FLAG="-fprofile-generate=$(pwd)" | ||
36 | + PGO_PROF_USE_FLAG="-fprofile-use=$(pwd) -fprofile-correction" | ||
37 | LLVM_PROF_MERGER="true" | ||
38 | LLVM_PROF_FILE="" | ||
39 | ;; | ||
40 | -- | ||
41 | 2.26.2 | ||
42 | |||