Build failure at 32%

Having trouble installing or compiling FreeCAD? Get help here.
Post Reply
foxx00
Posts: 1
Joined: Mon Aug 31, 2020 11:52 pm

Build failure at 32%

Post by foxx00 » Tue Sep 01, 2020 12:14 am

Code: Select all

[ 32%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartSpline.cpp.o
[ 32%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeatureChamfer.cpp.o
[ 32%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeatureCompound.cpp.o
[ 32%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeatureExtrusion.cpp.o
In file included from /usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce/TopTools_SequenceOfShape.hxx:112:0,
                 from /usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce/BRepOffsetAPI_ThruSections.hxx:13,
                 from /home/foxx00/Downloads/git/FreeCAD/src/Mod/Part/App/FeatureExtrusion.cpp:34:
/usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce/TCollection_Sequence.lxx: In copy constructor ‘TopTools_SequenceOfShape::TopTools_SequenceOfShape(const TopTools_SequenceOfShape&)’:
/usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce/TCollection_Sequence.lxx:31:8: warning: base class ‘class TCollection_BaseSequence’ should be explicitly initialized in the copy constructor [-Wextra]
 inline TCollection_Sequence::TCollection_Sequence(const TCollection_Sequence& theOther)
        ^
[ 32%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeatureFace.cpp.o
[ 32%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeatureFillet.cpp.o
/home/foxx00/Downloads/git/FreeCAD/src/Mod/Part/App/FeatureFillet.cpp: In member function ‘virtual App::DocumentObjectExecReturn* Part::Fillet::execute()’:
/home/foxx00/Downloads/git/FreeCAD/src/Mod/Part/App/FeatureFillet.cpp:80:31: error: ‘Precision’ has not been declared
         double minTol = 2.0 * Precision::Confusion();
                               ^
/home/foxx00/Downloads/git/FreeCAD/src/Mod/Part/App/FeatureFillet.cpp:81:31: error: ‘Precision’ has not been declared
         double maxTol = 4.0 * Precision::Confusion();
                               ^
/home/foxx00/Downloads/git/FreeCAD/src/Mod/Part/App/FeatureFillet.cpp:82:27: error: ‘Precision’ has not been declared
         bool rc = ts->fix(Precision::Confusion(), minTol, maxTol);
                           ^
src/Mod/Part/App/CMakeFiles/Part.dir/build.make:922: recipe for target 'src/Mod/Part/App/CMakeFiles/Part.dir/FeatureFillet.cpp.o' failed
make[2]: *** [src/Mod/Part/App/CMakeFiles/Part.dir/FeatureFillet.cpp.o] Error 1
CMakeFiles/Makefile2:1958: recipe for target 'src/Mod/Part/App/CMakeFiles/Part.dir/all' failed
make[1]: *** [src/Mod/Part/App/CMakeFiles/Part.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Thanks for the suggestions all :)
Last edited by foxx00 on Tue Sep 29, 2020 10:38 pm, edited 2 times in total.
chrisb
Posts: 28855
Joined: Tue Mar 17, 2015 9:14 am

Re: Build failure at 32%

Post by chrisb » Tue Sep 01, 2020 4:00 am

Hi and welcome.
Please edit your post and put the output in codetags (button </>) for improved readability. It would probably be helpful if you add at least which OS you use.
A Sketcher Lecture with in-depth information is available in English, auf deutsch, en français, en español.
wmayer
Site Admin
Posts: 16627
Joined: Thu Feb 19, 2009 10:32 am

Re: Build failure at 32%

Post by wmayer » Tue Sep 01, 2020 5:48 am

/home/foxx00/Downloads/git/FreeCAD/src/Mod/Part/App/FeatureFillet.cpp:80:31: error: ‘Precision’ has not been declared
double minTol = 2.0 * Precision::Confusion();
In FeatureFillet.cpp you have to add this line in the top area of the file:

Code: Select all

#include <Precision.hxx>
It might be not the only file that fails because of that.

According to the directory /home/foxx00/Downloads/git/ you may have cloned the repository via git. So, it's easy to create a patch or even a PR later to merge the changes upstream.
vocx
Posts: 5206
Joined: Thu Oct 18, 2018 9:18 pm

Re: Build failure at 32%

Post by vocx » Tue Sep 01, 2020 4:32 pm

foxx00 wrote:
Tue Sep 01, 2020 12:14 am
In file included from /usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce/TopTools_SequenceOfShape.hxx:112:0,
from /usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce/BRepOffsetAPI_ThruSections.hxx:13,
from /home/foxx00/Downloads/git/FreeCAD/src/Mod/Part/App/FeatureExtrusion.cpp:34:
You are using the community version (OCE) of OpenCASCADE, instead of the official version (OCCT).

Use the official version as the community edition hasn't been updated in years.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply

Who is online

Users browsing this forum: cliff314159 and 4 guests