Once the blocking issue (Bazel in toolchain) is complete we can work towards building TensorFlow and its dependencies that way.
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/aedbd796a6ab267a8b1e28c17674bc87809f7648 commit aedbd796a6ab267a8b1e28c17674bc87809f7648 Author: Michael Martis <martis@chromium.org> Date: Tue Jun 12 18:48:31 2018 sci-libs: Pull tensorflow ebuild from upstream Pick the ebuild from Gentoo portage as of commit c87e038a646e968a95d07b5df51ab02409921951. BUG= chromium:836100 TEST=None (code not used yet) Change-Id: I3cd355806cdf6b7ca0923604b4b38bc164edc3aa Reviewed-on: https://chromium-review.googlesource.com/1074571 Commit-Ready: Michael Martis <martis@chromium.org> Tested-by: Michael Martis <martis@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> [add] https://crrev.com/aedbd796a6ab267a8b1e28c17674bc87809f7648/sci-libs/tensorflow/Manifest [add] https://crrev.com/aedbd796a6ab267a8b1e28c17674bc87809f7648/sci-libs/tensorflow/files/0001-pip_package-modularize-build-script-to-allow-distros.patch [add] https://crrev.com/aedbd796a6ab267a8b1e28c17674bc87809f7648/sci-libs/tensorflow/tensorflow-1.8.0.ebuild [add] https://crrev.com/aedbd796a6ab267a8b1e28c17674bc87809f7648/sci-libs/tensorflow/metadata.xml
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/327546c2395fdccd24f3c3fc157c09eceaf077d3 commit 327546c2395fdccd24f3c3fc157c09eceaf077d3 Author: Michael Martis <martis@chromium.org> Date: Wed Jun 13 16:19:33 2018 chromeos-base/tensorflow: Remove Chrome-OS-specific package We are in the process of migrating to the existing upstream TensorFlow package: https://packages.gentoo.org/packages/sci-libs/tensorflow BUG= chromium:836100 TEST=None (package not yet used) Change-Id: I1d8d246be71224dd193c2f5c15253c2578839dba Reviewed-on: https://chromium-review.googlesource.com/1077108 Commit-Ready: Michael Martis <martis@chromium.org> Tested-by: Michael Martis <martis@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> [delete] https://crrev.com/d7a807d61971143a1519ddaf7bce3a42fc0e84af/chromeos-base/tensorflow/tensorflow-1.5.0.ebuild [delete] https://crrev.com/d7a807d61971143a1519ddaf7bce3a42fc0e84af/chromeos-base/tensorflow/files/tensorflow-1.5.0-nsync-makefile-clang.patch [delete] https://crrev.com/d7a807d61971143a1519ddaf7bce3a42fc0e84af/chromeos-base/tensorflow/Manifest [delete] https://crrev.com/d7a807d61971143a1519ddaf7bce3a42fc0e84af/chromeos-base/tensorflow/files/tensorflow-1.5.0-tf-makefile-clang.patch [delete] https://crrev.com/d7a807d61971143a1519ddaf7bce3a42fc0e84af/chromeos-base/tensorflow/tensorflow-1.5.0-r2.ebuild [delete] https://crrev.com/d7a807d61971143a1519ddaf7bce3a42fc0e84af/chromeos-base/tensorflow/files/tensorflow-1.5.0-tf-lite-protos.patch
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/c132aabed64b03a99922d3926b8acdba9015e2b8 commit c132aabed64b03a99922d3926b8acdba9015e2b8 Author: Michael Martis <martis@chromium.org> Date: Tue Jun 26 09:55:43 2018 sci-libs/tensorflow: removed old ebuild prior to uprev. BUG= chromium:836100 TEST=None Change-Id: I9f78d3f93939c2538f2f7c06df5521b9856323de Reviewed-on: https://chromium-review.googlesource.com/1107020 Commit-Ready: Michael Martis <martis@chromium.org> Tested-by: Michael Martis <martis@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> [delete] https://crrev.com/9288b5614300e35d82a110c522a88fc113f0f02d/sci-libs/tensorflow/Manifest [delete] https://crrev.com/9288b5614300e35d82a110c522a88fc113f0f02d/sci-libs/tensorflow/files/0001-pip_package-modularize-build-script-to-allow-distros.patch [delete] https://crrev.com/9288b5614300e35d82a110c522a88fc113f0f02d/sci-libs/tensorflow/tensorflow-1.8.0.ebuild
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/4e11ac7df254c22d523cb3de43490a412f706e10 commit 4e11ac7df254c22d523cb3de43490a412f706e10 Author: Michael Martis <martis@chromium.org> Date: Tue Jun 26 19:52:04 2018 sci-libs/tensorflow: pull 1.9.0_rc1 ebuild from upstream. Pick the ebuild from Gentoo portage as of commit 782f1c18ce7a21f9d78097e48d7ff12d4c17e62a. Only minor modifications: - Updated KEYWORD to allow for all architectures. - Removed some DEPENDS (that were only notional, since Bazel currently handles all dependencies monolithically). - Removed the empty PATCHES set (which was causing errors for me locally). - Added two compile flags that allow building with Clang. BUG= chromium:836100 TEST=sudo emerge tensorflow CQ-DEPEND=CL:1107018 Change-Id: Ib5ee6aca8812c056e159d314331cd97ee6705160 Reviewed-on: https://chromium-review.googlesource.com/1107021 Commit-Ready: Michael Martis <martis@chromium.org> Tested-by: Michael Martis <martis@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> [add] https://crrev.com/4e11ac7df254c22d523cb3de43490a412f706e10/sci-libs/tensorflow/Manifest [add] https://crrev.com/4e11ac7df254c22d523cb3de43490a412f706e10/sci-libs/tensorflow/tensorflow-1.9.0_rc1.ebuild
Per discussions: TensorFlow Lite rather than TensorFlow is now the first thing to target build-wise.
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/86690e62ffdae2e28dfd245857669d0ba2801dd9 commit 86690e62ffdae2e28dfd245857669d0ba2801dd9 Author: Michael Martis <martis@chromium.org> Date: Tue Jul 17 09:26:26 2018 sci-libs/tensorflow: fixed cross-compilation. - Separated compiler flags into build ("host") and board flags. - Added generation of CROSSTOOL targets using Portage build variables. BUG= chromium:836100 TEST=`USE="-python" emerge-chell tensorflow` Change-Id: I5309303e45fbc5813b0c36b119dea17d67c145a1 Reviewed-on: https://chromium-review.googlesource.com/1113712 Commit-Ready: Michael Martis <martis@chromium.org> Tested-by: Michael Martis <martis@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Ben Chan <benchan@chromium.org> [modify] https://crrev.com/86690e62ffdae2e28dfd245857669d0ba2801dd9/sci-libs/tensorflow/tensorflow-1.9.0_rc1.ebuild [add] https://crrev.com/86690e62ffdae2e28dfd245857669d0ba2801dd9/sci-libs/tensorflow/files/tensorflow-1.9.0_rc1-CROSSTOOL.tpl [add] https://crrev.com/86690e62ffdae2e28dfd245857669d0ba2801dd9/sci-libs/tensorflow/files/tensorflow-1.9.0_rc1-BUILD.tpl [add] https://crrev.com/86690e62ffdae2e28dfd245857669d0ba2801dd9/sci-libs/tensorflow/tensorflow-1.9.0_rc1-r1.ebuild
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/c31f5e880c696484583241347ac6a168a9cb7541 commit c31f5e880c696484583241347ac6a168a9cb7541 Author: Michael Martis <martis@chromium.org> Date: Wed Jul 18 11:08:08 2018 sci-libs/tensorflow: added a TF lite target. TF lite is a much smaller-footprint variant of TensorFlow. Using this variant will save on disk space and reduce the number of dependencies we need to support. TF lite is now always built as part of this package. Builds that disable the "minimal" use-flag will also build full TensorFlow. BUG= chromium:836100 TEST=`USE="minimal" emerge-chell tensorflow` Change-Id: I811c017930a4047810ffdc0ecda6a19cdded2be1 Reviewed-on: https://chromium-review.googlesource.com/1132273 Commit-Ready: Michael Martis <martis@chromium.org> Tested-by: Michael Martis <martis@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> [rename] https://crrev.com/c31f5e880c696484583241347ac6a168a9cb7541/sci-libs/tensorflow/tensorflow-1.9.0_rc1-r2.ebuild [modify] https://crrev.com/c31f5e880c696484583241347ac6a168a9cb7541/sci-libs/tensorflow/tensorflow-1.9.0_rc1.ebuild [add] https://crrev.com/c31f5e880c696484583241347ac6a168a9cb7541/sci-libs/tensorflow/files/tensorflow-1.9.0_rc1-lite-lib.patch [modify] https://crrev.com/c31f5e880c696484583241347ac6a168a9cb7541/sci-libs/tensorflow/metadata.xml
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/1d221ecd488ed1c6716534afe2f6864927bc79d4 commit 1d221ecd488ed1c6716534afe2f6864927bc79d4 Author: Michael Martis <martis@chromium.org> Date: Wed Aug 01 07:05:40 2018 sci-libs/tensorflow: reduced TF lite library size. Reduced the size of the TF lite shared library by hiding symbols we don't want to export. BUG= 836100 TEST=`USE="minimal" emerge-chell tensorflow` Change-Id: I1c2a6f4aabc33797cf6a7cfe8bb8ca10b930799d Reviewed-on: https://chromium-review.googlesource.com/1155269 Commit-Ready: Michael Martis <martis@chromium.org> Tested-by: Michael Martis <martis@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> [modify] https://crrev.com/1d221ecd488ed1c6716534afe2f6864927bc79d4/sci-libs/tensorflow/files/tensorflow-1.9.0_rc1-lite-lib.patch
Comment 1 by bugdroid1@chromium.org
, Jun 12 2018