Summary: | sci-libs/onnx-1.14.0 fails to build with dev-libs/protobuf-23.3-r2: policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | he.ousia <he.ousia> |
Component: | Current packages | Assignee: | Tupone Alfredo <tupone> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | admnd, arfrever.fta, chaneybenjamini, cjk, douzzer, stefantalpalaru |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/onnx/onnx/issues/4992 https://github.com/onnx/onnx/pull/5119 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 912819 | ||
Attachments: | full build log |
Description
he.ousia
2023-08-22 13:37:28 UTC
Please include the full build.log. Created attachment 868495 [details]
full build log
same here. Upstream bug: https://github.com/onnx/onnx/issues/4992 A patched sci-libs/onnx-1.14.1 is available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay As discussed in the upstream bug report, simply changing the C++ standard in CMakeLists.txt works: https://github.com/onnx/onnx/pull/5119/files That PR reached the "main" branch, but was not cherry-picked in the branch where they do releases from: https://github.com/onnx/onnx/commits/rel-1.14.1 same here, and even sci-libs/onnx-1.13.1 crashes the same way. Maybe the configured "-std=gnu++11" is not sufficient for C++14. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ecf45d471c13e219317798836096f4c34fe64a1 commit 1ecf45d471c13e219317798836096f4c34fe64a1 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2023-09-01 10:32:00 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2023-09-01 10:33:29 +0000 sci-libs/onnx: use cxx 144 Closes: https://bugs.gentoo.org/912837 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> sci-libs/onnx/files/onnx-1.14.0-cxx_14.patch | 11 +++++++++++ sci-libs/onnx/{onnx-1.13.1.ebuild => onnx-1.13.1-r1.ebuild} | 2 ++ sci-libs/onnx/{onnx-1.14.0.ebuild => onnx-1.14.0-r1.ebuild} | 2 ++ 3 files changed, 15 insertions(+) |