Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750875 - dev-lang/rust-1.47.0-r1 compilation fails with fatal error: tensorflow/c/c_api. h: No such file or directory
Summary: dev-lang/rust-1.47.0-r1 compilation fails with fatal error: tensorflow/c/c_ap...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-23 16:38 UTC by Jean-Francois Ostiguy
Modified: 2020-10-28 01:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,500.86 KB, text/x-log)
2020-10-23 16:39 UTC, Jean-Francois Ostiguy
Details
emerge info (emerge--info.txt,6.82 KB, text/plain)
2020-10-23 16:40 UTC, Jean-Francois Ostiguy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Ostiguy 2020-10-23 16:38:09 UTC
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
Comment 1 Jean-Francois Ostiguy 2020-10-23 16:39:01 UTC
Created attachment 668156 [details]
build.log
Comment 2 Jean-Francois Ostiguy 2020-10-23 16:40:51 UTC
Created attachment 668159 [details]
emerge info
Comment 3 Georgy Yakovlev archtester gentoo-dev 2020-10-23 18:43:15 UTC
it's llvm-11 bug.

There are some patches available, I'll see If I can add some to rust.
Comment 4 Larry the Git Cow gentoo-dev 2020-10-28 01:41:59 UTC
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(+)