https://gitcode.net/weixin_42428077/tensorflow/-/commit/f80a64ddb86c7ae7bfd3e360515dc7a348e1a48cUse LLD-16 as the linker when building.2023-08-28T16:42:27+00:00Brian Wiederbwieder@google.com
PiperOrigin-RevId: 533541073https://gitcode.net/weixin_42428077/tensorflow/-/commit/71f33cc2ae56a202e244d17c3be35c3e0e124542Add lld-16 to the build docker image.2023-08-28T16:47:48+00:00Brian Wiederbwieder@google.com
PiperOrigin-RevId: 531301837https://gitcode.net/weixin_42428077/tensorflow/-/commit/6375191a081d2ef56c946272dc16ea6bfbbccda0Merge pull request #61722 from tensorflow/r2.13-bf4a9d00b2a2023-08-28T12:55:03-07:00learning-to-play66660475+learning-to-play@users.noreply.github.com
r2.13 cherry-pick: <a href="/weixin_42428077/tensorflow/-/commit/bf4a9d00b2a48f7ecb38d0092d20b9daba7ea7dd" data-original="bf4a9d00b2a" data-link="false" data-link-reference="false" data-project="66160" data-commit="bf4a9d00b2a48f7ecb38d0092d20b9daba7ea7dd" data-reference-type="commit" data-container="body" data-placement="top" title="Add lld-16 to the build docker image." class="gfm gfm-commit has-tooltip">bf4a9d00</a> "Add lld-16 to the build docker image."https://gitcode.net/weixin_42428077/tensorflow/-/commit/1d55ad5d840f448869d3e88c95e18702dbf8b5ddUpgrade patchelf to v0.18.0 to fix certain TF shared libaries having corrupte...2023-08-28T19:55:06+00:00Nitin Srinivasansrnitin@google.comUpgrade patchelf to v0.18.0 to fix certain TF shared libaries having corrupted PT_NOTE program headers.
It seems that using Patchelf <0.12 during the [wheel building process](<a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/build_pip_package.sh#L255-L262" rel="nofollow noreferrer noopener" target="_blank">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/build_pip_package.sh#L255-L262</a>) corrupts the PT_NOTE program headers of certain shared libraries. Upgrading the patchelf version seems to fix this. We need to download the latest version from GitHub because the default Ubuntu Focal packages only provide the "0.10-2build1" version.
PiperOrigin-RevId: 560754278
https://gitcode.net/weixin_42428077/tensorflow/-/commit/2cb8ee372550c3828d76dd3406d5d614bd96ad7cMerge pull request #61721 from tensorflow/r2.13-722817e2a282023-08-28T12:55:20-07:00learning-to-play66660475+learning-to-play@users.noreply.github.com
r2.13 cherry-pick: <a href="/weixin_42428077/tensorflow/-/commit/722817e2a2860d9747b169715b645fa235edfb93" data-original="722817e2a28" data-link="false" data-link-reference="false" data-project="66160" data-commit="722817e2a2860d9747b169715b645fa235edfb93" data-reference-type="commit" data-container="body" data-placement="top" title="Use LLD-16 as the linker when building." class="gfm gfm-commit has-tooltip">722817e2</a> "Use LLD-16 as the linker when building."https://gitcode.net/weixin_42428077/tensorflow/-/commit/8543b7b049f3fa31d971d3e458556a7f362116d8Merge pull request #61729 from tensorflow/r2.13-d14bacc55032023-08-28T14:00:03-07:00learning-to-play66660475+learning-to-play@users.noreply.github.com
r2.13 cherry-pick: <a href="/weixin_42428077/tensorflow/-/commit/d14bacc55032ecc49054f39d60a2e8ac20175e23" data-original="d14bacc5503" data-link="false" data-link-reference="false" data-project="66160" data-commit="d14bacc55032ecc49054f39d60a2e8ac20175e23" data-reference-type="commit" data-container="body" data-placement="top" title="Upgrade patchelf to v0.18.0 to fix certain TF shared libaries having corrupted..." class="gfm gfm-commit has-tooltip">d14bacc5</a> "Upgrade patchelf to v0.18.0 to fix certain TF shared libaries having corrupted PT_NOTE program headers."
# Download and install patchelf v0.18.0 from GitHub. The default Ubuntu focal
# packages only provide the "0.10-2build1" version. We use patchelf to manipulate
# certain shared libraries during the wheel building process (https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/build_pip_package.sh#L255-L262).
# When we use Patchelf versions <0.12, those shared libraries end up with a
# corrupted PT_NOTE program header. This was fixed in v0.12, see https://github.com/NixOS/patchelf/commit/43a33482b501b0f5ee9da312aabfca3806570cc9.
RUN wget https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-x86_64.tar.gz &&tar-zxvf patchelf-0.18.0-x86_64.tar.gz -C /usr &&rm-rf patchelf-0.18.0-x86_64.tar.gz
# All lines past this point are reset when $CACHEBUSTER is set. We need this
# for Python specifically because we install some nightly packages which are