Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sci-libs/onnxruntime compilation failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
JustCauseWhyNot
Apprentice
Apprentice


Joined: 07 Dec 2021
Posts: 178

PostPosted: Thu Feb 06, 2025 7:50 pm    Post subject: sci-libs/onnxruntime compilation failed Reply with quote

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.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31478
Location: here

PostPosted: Fri Feb 07, 2025 6:15 am    Post subject: Reply with quote

Code:
/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.
Back to top
View user's profile Send private message
JustCauseWhyNot
Apprentice
Apprentice


Joined: 07 Dec 2021
Posts: 178

PostPosted: Sat Feb 08, 2025 2:57 am    Post subject: Reply with quote

Thank you
Back to top
View user's profile Send private message
JustCauseWhyNot
Apprentice
Apprentice


Joined: 07 Dec 2021
Posts: 178

PostPosted: Sat Feb 08, 2025 5:36 am    Post subject: Reply with quote

It's still failing with the same error even after downgrading to 26.1-r2. build.log
Back to top
View user's profile Send private message
JustCauseWhyNot
Apprentice
Apprentice


Joined: 07 Dec 2021
Posts: 178

PostPosted: Sat Feb 08, 2025 6:08 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31478
Location: here

PostPosted: Sat Feb 08, 2025 10:21 am    Post subject: Reply with quote

See [Build] Eigen 3.4 build failure with ONNXRuntime 1.9.2.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
JustCauseWhyNot
Apprentice
Apprentice


Joined: 07 Dec 2021
Posts: 178

PostPosted: Sun Feb 09, 2025 2:17 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum