Trying to emerge rust-1.47.0-r1. Compilation fails with the error /var/tmp/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src/src/llvm-project/llvm/lib/Analysis/TFUtils.cpp:20:10: fatal error: tensorflow/c/c_api. h: No such file or directory 20 | #include "tensorflow/c/c_api.h" | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. Reproducible: Always
Created attachment 668156 [details] build.log
Created attachment 668159 [details] emerge info
it's llvm-11 bug. There are some patches available, I'll see If I can add some to rust.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4fb6fc0f73b4b4145236b56355c35070c3b529a commit b4fb6fc0f73b4b4145236b56355c35070c3b529a Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-10-28 01:39:19 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-10-28 01:39:41 +0000 dev-lang/rust: fix build with tensorflow installed Closes: https://bugs.gentoo.org/750875 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> .../rust/files/1.47.0-llvm-tensorflow-fix.patch | 55 ++++++++++++++++++++++ dev-lang/rust/rust-1.47.0-r1.ebuild | 1 + 2 files changed, 56 insertions(+)