diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2021-07-16 19:54:02 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-30 22:49:15 +0100 |
commit | 708aacbb0b47f1014ebf8aa63569c90fbbd88c07 (patch) | |
tree | a969d2a12bee93f3dacfe94b5bac0eb85ffd594f /documentation | |
parent | 926fae24e1aa96454fce62b71ff2e8c95041b383 (diff) | |
download | poky-708aacbb0b47f1014ebf8aa63569c90fbbd88c07.tar.gz |
test-manual: document LTO related reproducibility bug
(From yocto-docs rev: 33b6f7cec780f77ed9cd0518f72ec8c0e3c08e68)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reviewed-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/test-manual/reproducible-builds.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/documentation/test-manual/reproducible-builds.rst b/documentation/test-manual/reproducible-builds.rst index e13583c0bf..c66c82f86a 100644 --- a/documentation/test-manual/reproducible-builds.rst +++ b/documentation/test-manual/reproducible-builds.rst | |||
@@ -68,6 +68,17 @@ things we do within the build system to ensure reproducibility include: | |||
68 | - Filtering the tools available from the host's ``PATH`` to only a specific set | 68 | - Filtering the tools available from the host's ``PATH`` to only a specific set |
69 | of tools, set using the :term:`HOSTTOOLS` variable. | 69 | of tools, set using the :term:`HOSTTOOLS` variable. |
70 | 70 | ||
71 | .. note:: | ||
72 | |||
73 | Because of an open bug in GCC, using ``DISTRO_FEATURES_append = " lto"`` or | ||
74 | adding ``-flto`` (Link Time Optimization) to ``CFLAGS`` makes the resulting | ||
75 | binary non-reproducible, in that it depends on the full absolute build path | ||
76 | to ``recipe-sysroot-native``, so installing the Yocto Project in a different | ||
77 | directory results in a different binary. | ||
78 | |||
79 | This issue is addressed by | ||
80 | :yocto_bugs:`bug 14481 - Programs built with -flto are not reproducible</show_bug.cgi?id=14481>`. | ||
81 | |||
71 | ========================================= | 82 | ========================================= |
72 | Can we prove the project is reproducible? | 83 | Can we prove the project is reproducible? |
73 | ========================================= | 84 | ========================================= |