Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829114 - sci-libs/tensorflow-2.7.0-r1: linker failure, undefined references
Summary: sci-libs/tensorflow-2.7.0-r1: linker failure, undefined references
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-13 19:32 UTC by Soren Harward
Modified: 2022-02-26 17:29 UTC (History)
2 users (show)

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


Attachments
build.log (gzipped) (tensorflow-2.7.0-r1.build.log.gz,391.66 KB, application/gzip)
2021-12-13 19:33 UTC, Soren Harward
Details
emerge info (emerge_info_tensorflow.log.gz,3.48 KB, application/gzip)
2021-12-14 00:08 UTC, Soren Harward
Details

Note You need to log in before you can comment on or make changes to this bug.
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