Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

sci-libs/onnxruntime compilation failed

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
JustCauseWhyNot
Apprentice
Apprentice
Posts: 202
Joined: Tue Dec 07, 2021 12:12 am

sci-libs/onnxruntime compilation failed

  • Quote

Post by JustCauseWhyNot » Thu Feb 06, 2025 7:50 pm

build.log, emerge -p =media-libs/opencv-4.10.0, and emerge.info. I've got no idea why it's failing to compile. Here's the ebuild I'm using.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31977
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Fri Feb 07, 2025 6:15 am

Code: Select all

/var/tmp/portage/sci-libs/onnxruntime-1.19.2/work/onnxruntime-1.19.2/onnxruntime/core/graph/graph.cc:1255:58: error: ‘class google::protobuf::RepeatedPtrField<onnx::SparseTensorProto>’ has no member named ‘ReleaseCleared’
 1255 |       delete graph_proto_->mutable_sparse_initializer()->ReleaseCleared();
      |                                                          ^~~~~~~~~~~~~~
/var/tmp/portage/sci-libs/onnxruntime-1.19.2/work/onnxruntime-1.19.2/onnxruntime/core/graph/graph.cc: In member function ‘void onnxruntime::Graph::CleanAllInitializedTensors()’:
/var/tmp/portage/sci-libs/onnxruntime-1.19.2/work/onnxruntime-1.19.2/onnxruntime/core/graph/graph.cc:3607:49: error: ‘class google::protobuf::RepeatedPtrField<onnx::TensorProto>’ has no member named ‘ReleaseCleared’
 3607 |     delete graph_proto_->mutable_initializer()->ReleaseCleared();
      |                                                 ^~~~~~~~~~~~~~
See [Build] breakage with protobuf-27.2, due to API change.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
JustCauseWhyNot
Apprentice
Apprentice
Posts: 202
Joined: Tue Dec 07, 2021 12:12 am

  • Quote

Post by JustCauseWhyNot » Sat Feb 08, 2025 2:57 am

Thank you
Top
JustCauseWhyNot
Apprentice
Apprentice
Posts: 202
Joined: Tue Dec 07, 2021 12:12 am

  • Quote

Post by JustCauseWhyNot » Sat Feb 08, 2025 5:36 am

It's still failing with the same error even after downgrading to 26.1-r2. build.log
Top
JustCauseWhyNot
Apprentice
Apprentice
Posts: 202
Joined: Tue Dec 07, 2021 12:12 am

  • Quote

Post by JustCauseWhyNot » Sat Feb 08, 2025 6:08 am

It's now not failing with the release api error, but another a new one now that I downgraded to protobuf-25.6 build.log. It's something to do with eigen, but I've got the latest installed with all the useflags enabled, and it's still failing.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31977
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sat Feb 08, 2025 10:21 am

See [Build] Eigen 3.4 build failure with ONNXRuntime 1.9.2.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
JustCauseWhyNot
Apprentice
Apprentice
Posts: 202
Joined: Tue Dec 07, 2021 12:12 am

  • Quote

Post by JustCauseWhyNot » Sun Feb 09, 2025 2:17 am

So it seems that the issue is the use_preinstalled_eigen camke argument is deprecated. I'm reading in this issue that it seems like cmakes find_package function can replace use_preinstalled_eigen, but I'm not really sure what that requires me to do.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy