Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947934 - =sci-libs/ondselsolver-1.0.1_p20241024 fans to build with gcc:15: OndselSolver/FullMatrix.h:576:31: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body
Summary: =sci-libs/ondselsolver-1.0.1_p20241024 fans to build with gcc:15: OndselSolve...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL: https://github.com/Ondsel-Development...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-01-12 07:48 UTC by tdr
Modified: 2025-01-17 12:54 UTC (History)
3 users (show)

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


Attachments
build failure log (ondselsolver-1.0.1_p20241024.build.log,8.47 KB, text/plain)
2025-01-12 07:53 UTC, tdr
Details
simple patch (ondselsolver-1.0.1_p20241024-cstdint-includes.patch,890 bytes, application/mbox)
2025-01-12 08:37 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2025-01-12 07:48:07 UTC
occurrences of missing #include <cstdint> cause build failures with gcc:15

Missing in these two files causes the build failure:

    OndselSolver/FullMatrix.h
    OndselSolver/NewtonRaphson.h



Reproducible: Always

Steps to Reproduce:
set gcc:15 as active compiler
emerge -1 =sci-libs/ondselsolver-1.0.1_p20241024
Actual Results:  
FAILED: OndselSolver/CMakeFiles/OndselSolver.dir/Abs.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DOndselSolver_EXPORTS -DTEST_DATA_PATH=\"/var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/testapp\"   -march=native -O3 -flto=56 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -std=gnu++17 -fPIC -MD -MT OndselSolver/CMakeFiles/OndselSolver.dir/Abs.cpp.o -MF OndselSolver/CMakeFiles/OndselSolver.dir/Abs.cpp.o.d -o OndselSolver/CMakeFiles/OndselSolver.dir/Abs.cpp.o -c /var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/Abs.cpp
In file included from /var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/Item.h:15,
                 from /var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/System.h:23,
                 from /var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/Symbolic.h:17,
                 from /var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/Function.h:11,
                 from /var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/FunctionX.h:11,
                 from /var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/Abs.h:11,
                 from /var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/Abs.cpp:9:
/var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/FullMatrix.h: In member function ‘std::shared_ptr<MbD::EulerParameters<T> > MbD::FullMatrix<T>::asEulerParameters()’:
(first occurrence)

/var/tmp/portage/sci-libs/ondselsolver-1.0.1_p20241024/work/OndselSolver-9e44ac50b84dbce0e04907999ff0f33e69f583bc/OndselSolver/FullMatrix.h:576:31: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body]
  576 |                 size_t maxE = SIZE_MAX;


build failure on sci-libs/ondselsolver-1.0.1_p20241024 breaks dep graph required for:
    USE="assembly" emerge -1 =media-gfx/freecad-1.0.0-r3
Comment 1 tdr 2025-01-12 07:53:29 UTC
Created attachment 916355 [details]
build failure log
Comment 2 tdr 2025-01-12 08:37:18 UTC
Created attachment 916357 [details]
simple patch

upstream adds the includes to multiple other headers, too:
https://github.com/Ondsel-Development/OndselSolver/commit/07785b7576a0655660badd845f06ed286208da1a

this set of 2 allows it to build

freecad built successfully against OndselSolver patched using this too
Comment 3 Larry the Git Cow gentoo-dev 2025-01-14 08:58:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0e9736af21b54b778c8cfb8d1ceba7bf8fb4a0b

commit b0e9736af21b54b778c8cfb8d1ceba7bf8fb4a0b
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-01-12 22:05:38 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2025-01-14 08:54:46 +0000

    sci-libs/ondselsolver: add 1.0.1_p20241127
    
    Fix broken mangling so all tests pass.
    
    Closes: https://bugs.gentoo.org/947934
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40110
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 sci-libs/ondselsolver/Manifest                     |   1 +
 .../ondselsolver-1.0.1-include-cstdint-gcc15.patch |  70 +++++++++
 ...lsolver-1.0.1-properly-demangle-typenames.patch | 173 +++++++++++++++++++++
 .../ondselsolver-1.0.1_p20241127.ebuild            |  35 +++++
 4 files changed, 279 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2025-01-17 12:54:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=646bd49f2b2032d023c70e03708d37c033c23c6c

commit 646bd49f2b2032d023c70e03708d37c033c23c6c
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-01-16 16:07:48 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2025-01-17 12:51:20 +0000

    sci-libs/ondselsolver: 1.0.1_p20241127 use gcc-15.patch
    
    Bug: https://bugs.gentoo.org/947934
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 sci-libs/ondselsolver/ondselsolver-1.0.1_p20241024.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)