Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 829114

Summary: sci-libs/tensorflow-2.7.0-r1: linker failure, undefined references
Product: Gentoo Linux Reporter: Soren Harward <stharward>
Component: Current packagesAssignee: Jason Zaman <perfinion>
Status: RESOLVED FIXED    
Severity: normal CC: dan, jstein
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=829716
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log (gzipped)
emerge info

Description Soren Harward 2021-12-13 19:32:45 UTC
Got a huge number of linker failures when trying to merge 2.7.0-r1:

/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/libunique_op_gpu.pic.lo(unique_op_gpu_0.cu.pic.o): in function 
`tensorflow::kernel_factory::OpKernelRegistrar::OpKernelRegistrar(tensorflow::KernelDef const*, absl::lts_20210324::string_
view, tensorflow::OpKernel* (*)(tensorflow::OpKernelConstruction*))':
tmpxft_0000b816_00000000-6_unique_op_gpu_0.cu.cudafe1.cpp:(.text._ZN10tensorflow14kernel_factory17OpKernelRegistrarC2EPKNS_9KernelDefEN4absl12lts_2021032411string_viewEPFPNS_8OpKernelEPNS_20OpKernelConstructionEE[_ZN10tensorflow14kernel_factory17OpKernelRegistrarC5EPKNS_9KernelDefEN4absl12lts_2021032411string_viewEPFPNS_8OpKernelEPNS_20OpKernelConstructionEE]+0x5b): undefined reference to `tensorflow::kernel_factory::OpKernelRegistrar::InitInternal(tensorflow::KernelDef const*, absl::lts_20210324::string_view, std::unique_ptr<tensorflow::kernel_factory::OpKernelFactory, std::default_delete<tensorflow::kernel_factory::OpKernelFactory> >)'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/libunique_op_gpu.pic.lo(unique_op_gpu_0.cu.pic.o): in function `tensorflow::Status tensorflow::errors::Internal<char const*, char const*>(char const*, char const*)':
tmpxft_0000b816_00000000-6_unique_op_gpu_0.cu.cudafe1.cpp:(.text._ZN10tensorflow6errors8InternalIJPKcS3_EEENS_6StatusEDpT_[_ZN10tensorflow6errors8InternalIJPKcS3_EEENS_6StatusEDpT_]+0xd9): undefined reference to `tensorflow::Status::Status(tensorflow::error::Code, absl::lts_20210324::string_view, std::vector<tensorflow::StackFrame, std::allocator<tensorflow::StackFrame> >&&)'

Full build log to be attached.

Reproducible: Always
Comment 1 Soren Harward 2021-12-13 19:33:27 UTC
Created attachment 758835 [details]
build.log (gzipped)
Comment 2 Jonas Stein gentoo-dev 2021-12-13 22:11:11 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. Please provide
* the paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 3 Soren Harward 2021-12-14 00:08:54 UTC
Created attachment 758841 [details]
emerge info
Comment 4 Larry the Git Cow gentoo-dev 2021-12-24 23:18:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60200340ba1bbfe5572c7687ba6b5fa632d4216f

commit 60200340ba1bbfe5572c7687ba6b5fa632d4216f
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2021-12-24 23:17:07 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2021-12-24 23:17:07 +0000

    sci-libs/tensorflow: Remove broken 2.7.0-r1
    
    2.7.0-r1 moved to C++17 but has several issues. Remove for now until it
    can be fixed.
    
    Bug: https://bugs.gentoo.org/829114
    Bug: https://bugs.gentoo.org/829588
    Bug: https://bugs.gentoo.org/829716
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Jason Zaman <perfinion@gentoo.org>

 sci-libs/tensorflow/Manifest                   |   1 -
 sci-libs/tensorflow/tensorflow-2.7.0-r1.ebuild | 412 -------------------------
 2 files changed, 413 deletions(-)
Comment 5 Jason Zaman gentoo-dev 2022-02-26 17:29:45 UTC
tf-2.8 should work now with C++17