[fixed] Build error for 95f647b9edbdef3f816c2f27d75a8aea94050191

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
ArunGiridhar
Posts: 38
Joined: Sun Mar 29, 2015 10:02 pm

[fixed] Build error for 95f647b9edbdef3f816c2f27d75a8aea94050191

Post by ArunGiridhar »

Build failure

Code: Select all

.../FreeCAD/src/Mod/Points/App/PointsAlgos.cpp:1654:21: error: no member named 'math' in namespace 'boost'
        if (!boost::math::isnan(p.x) &&
             ~~~~~~~^
.../FreeCAD/src/Mod/Points/App/PointsAlgos.cpp:1655:21: error: no member named 'math' in namespace 'boost'
            !boost::math::isnan(p.y) &&
             ~~~~~~~^
.../FreeCAD/src/Mod/Points/App/PointsAlgos.cpp:1656:21: error: no member named 'math' in namespace 'boost'
            !boost::math::isnan(p.z))
             ~~~~~~~^
.../FreeCAD/src/Mod/Points/App/PointsAlgos.cpp:1740:20: error: no member named 'math' in namespace 'boost'
        if (boost::math::isnan(data(r,0)))
            ~~~~~~~^
.../FreeCAD/src/Mod/Points/App/PointsAlgos.cpp:1742:20: error: no member named 'math' in namespace 'boost'
        if (boost::math::isnan(data(r,1)))
            ~~~~~~~^
.../FreeCAD/src/Mod/Points/App/PointsAlgos.cpp:1744:20: error: no member named 'math' in namespace 'boost'
        if (boost::math::isnan(data(r,2)))
            ~~~~~~~^
.../FreeCAD/src/Mod/Points/App/PointsAlgos.cpp:1927:24: error: no member named 'math' in namespace 'boost'
            if (boost::math::isnan(value))
                ~~~~~~~^
The problem is this commit removed several Boost headers:

Code: Select all

commit 95f647b9edbdef3f816c2f27d75a8aea94050191
Author: Uwe <donovaly@users.noreply.github.com>
Date:   Tue Nov 29 04:44:35 2022 +0100

    [Points] remove unused includes (#7900)
    
    - also some sorting
PMac
Posts: 135
Joined: Sat Sep 02, 2017 10:44 pm

Re: Build error for 95f647b9edbdef3f816c2f27d75a8aea94050191

Post by PMac »

Can confirm am seeing same build errors re boost::math during latest pull/build this morning on LinuxMint.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Build error for 95f647b9edbdef3f816c2f27d75a8aea94050191

Post by adrianinsaval »

@uwestoehr
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Build error for 95f647b9edbdef3f816c2f27d75a8aea94050191

Post by Kunda1 »

JFYI, Using the commit tag links to the commit directly git commit 95f647b9edbdef3f816c2f27d75a8aea94050191 and then we know who we made need to ping
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Build error for 95f647b9edbdef3f816c2f27d75a8aea94050191

Post by uwestoehr »

ArunGiridhar wrote: Tue Nov 29, 2022 1:27 pm Build failure

Code: Select all

.../FreeCAD/src/Mod/Points/App/PointsAlgos.cpp:1654:21: error: no member named 'math' in namespace 'boost'
        if (!boost::math::isnan(p.x) &&
             ~~~~~~~^
This is already fixed in master, please update your master and recompile.

(Strange that neither I nor the CI had a problem.)
Post Reply