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

Bug 833984

Summary: sci-libs/tensorflow-2.8.0 fails to compile due to included abseil inlined_vector.h with "expected ';' before '}' token"
Product: Gentoo Linux Reporter: Frederik Pfautsch <bugs>
Component: Current packagesAssignee: Jason Zaman <perfinion>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log of tensorflow

Description Frederik Pfautsch 2022-02-24 11:10:44 UTC
Compilation of tensorflow-2.8.0 fails with the following error message:

/usr/include/absl/container/internal/inlined_vector.h: In member function ‘void absl::lts_20211102::inlined_vector_internal::Storage<T, N, A>::Swap(absl::lts_20211102::inlined_vector_internal::Storage<T, N, A>*)’:
/usr/include/absl/container/internal/inlined_vector.h:907:97: error: expected ‘;’ before ‘}’ token
  907 |       allocated_ptr->SetAllocation(
      |                                                                                                 ^
      |                                                                                                 ;
/usr/include/absl/container/internal/inlined_vector.h:915:95: error: expected ‘;’ before ‘}’ token
  915 |     inlined_ptr->SetAllocation(
      |                                                                                               ^
      |                                                                                               ;

Reproducible: Always
Comment 1 Frederik Pfautsch 2022-02-24 11:11:48 UTC
Created attachment 765758 [details]
emerge --info
Comment 2 Frederik Pfautsch 2022-02-24 11:12:20 UTC
Created attachment 765759 [details]
build.log of tensorflow
Comment 3 Jason Zaman gentoo-dev 2022-02-28 02:35:51 UTC
What version of abseil-cpp do you have installed?
this is an issue with CUDA+abseil that is fixed in dev-cpp/abseil-cpp-20211102.0-r1 which should be pulled in automatically
Comment 4 Frederik Pfautsch 2022-03-01 11:05:46 UTC
Oh, thank you! I had abseil-cpp-20211102.0 (without r1) installed, due to r1 being unstable. After unmasking everything works.