Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833984 - sci-libs/tensorflow-2.8.0 fails to compile due to included abseil inlined_vector.h with "expected ';' before '}' token"
Summary: sci-libs/tensorflow-2.8.0 fails to compile due to included abseil inlined_vec...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-24 11:10 UTC by Frederik Pfautsch
Modified: 2022-03-01 11:05 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info.txt,22.52 KB, text/plain)
2022-02-24 11:11 UTC, Frederik Pfautsch
Details
build.log of tensorflow (build.log.bz2,114.42 KB, application/x-bzip)
2022-02-24 11:12 UTC, Frederik Pfautsch
Details

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