View Issue Details

IDProjectCategoryView StatusLast Update
0004145AssemblyBugpublic2021-02-06 06:29
Reporterefferre79 Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
Target Version0.20 
Summary0004145: build failure with assembly module enabled
Descriptionwhen building freecad I get the following error related to the Assembly module:

[ 95%] Building CXX object src/Mod/TechDraw/Gui/CMakeFiles/TechDrawGui.dir/ViewProviderSymbol.cpp.o
cd /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/Gui && /usr/bin/ccache /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H
 -DHAVE_LIMITS_H -DMOD_TECHDRAW_HANDLE_FACES=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB
 -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DTechDrawGui_EXPORTS -D_OCC64 -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-
9999_build -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/src -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src -I/var/tmp
/portage/media-gfx/freecad-9999/work/freecad-9999_build/src/Mod/TechDraw/Gui -I/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/TechDraw/G
ui -I/usr/include/coin -I/usr/include/python2.7 -I/usr/lib64/opencascade-7.3.0/ros/lin/inc -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtXmlPattern
s -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtXml -isystem /
usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtOpenGL -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include
/qt5/QtSvg -isystem /usr/include/qt5/QtUiTools -DNDEBUG -Wall -Wextra -Wno-write-strings -march=core2 -O2 -pipe -ggdb -fPIC -fPIC -std=gnu++11 -o CMake
Files/TechDrawGui.dir/ViewProviderSymbol.cpp.o -c /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/TechDraw/Gui/ViewProviderSymbol.cpp
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp: In member function ‘void AssemblyGui::ViewProvid
erConstraintInternal::updateVis(const TopoDS_Shape&)’:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:85:23: error: no matching function for call to ‘A
ssemblyGui::ViewProviderConstraintInternal::updateVisual(const TopoDS_Shape&)’
     updateVisual(shape);
                       ^
In file included from /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Part/Gui/ViewProvider.h:28,
                 from /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.h:27,
                 from /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:24:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Part/Gui/ViewProviderExt.h:150:10: note: candidate: ‘void PartGui::ViewProviderPartExt::u
pdateVisual()’
     void updateVisual();
          ^~~~~~~~~~~~
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Part/Gui/ViewProviderExt.h:150:10: note: candidate expects 0 arguments, 1 provided
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp: In member function ‘virtual void AssemblyGui::Vi
ewProviderConstraint::setDisplayMode(const char*)’:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:110:57: warning: unused parameter ‘ModeName’ [-Wu
nused-parameter]
 void ViewProviderConstraint::setDisplayMode(const char* ModeName)
                                             ~~~~~~~~~~~~^~~~~~~~
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp: In member function ‘void AssemblyGui::ViewProvid
erConstraint::draw()’:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:255:20: error: no matching function for call to ‘AssemblyGui::ViewProviderConstraint::updateVisual(TopoDS_Shape&)’
     updateVisual(s1);
                    ^
In file included from /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Part/Gui/ViewProvider.h:28,
                 from /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.h:27,
                 from /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:24:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Part/Gui/ViewProviderExt.h:150:10: note: candidate: ‘void PartGui::ViewProviderPartExt::updateVisual()’
     void updateVisual();
          ^~~~~~~~~~~~
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Part/Gui/ViewProviderExt.h:150:10: note: candidate expects 0 arguments, 1 provided
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp: In member function ‘virtual void AssemblyGui::ViewProviderConstraint::onSelectionChanged(const Gui::SelectionChanges&)’:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:336:78: warning: unused parameter ‘msg’ [-Wunused-parameter]
 void ViewProviderConstraint::onSelectionChanged(const Gui::SelectionChanges& msg)
                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp: In member function ‘virtual TopoDS_Shape AssemblyGui::ViewProviderConstraint::getConstraintShape(int)’:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:353:61: warning: unused parameter ‘link’ [-Wunused-parameter]
 TopoDS_Shape ViewProviderConstraint::getConstraintShape(int link)
                                                         ~~~~^~~~
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp: In member function ‘virtual bool AssemblyGui::ViewProviderConstraint::setEdit(int)’:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:416:42: warning: unused parameter ‘ModNum’ [-Wunused-parameter]
 bool ViewProviderConstraint::setEdit(int ModNum)
                                      ~~~~^~~~~~
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp: In member function ‘virtual void AssemblyGui::ViewProviderConstraint::unsetEdit(int)’:
/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/Mod/Assembly/Gui/ViewProviderConstraint.cpp:440:44: warning: unused parameter ‘ModNum’ [-Wunused-parameter]
 void ViewProviderConstraint::unsetEdit(int ModNum)
                                        ~~~~^~~~~~
make[2]: *** [src/Mod/Assembly/Gui/CMakeFiles/AssemblyGui.dir/build.make:182: src/Mod/Assembly/Gui/CMakeFiles/AssemblyGui.dir/ViewProviderConstraint.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build'
make[1]: *** [CMakeFiles/Makefile2:4735: src/Mod/Assembly/Gui/CMakeFiles/AssemblyGui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


If the assembly module is deprecated probably it's better to remove it from the tree to avoid such kind of problems or by making it impossible to enable during configuration time.
Steps To Reproducecompile freecad below linux by enabling Assembly module with the cmake option -DBUILD_ASSEMBLY=ON
Additional InformationI am using latest version from github repository

OS: Gentoo/Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16776 (Git)
Build type: Release
Branch: (HEAD detached at refs/git-r3/HEAD)
Hash: b547373f35c3fd2a12fca5035af575c835062056
Python version: 2.7.15
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)


Tags#pending-forum
FreeCAD Information

Activities

Kunda1

2019-09-26 17:03

administrator   ~0013687

Please post this ticket to the forums. Especially because it's a build issue and we don't know what dependency version your distro is using. Also, please follow our tracker guidelines (large yellow banner at the top of the page) Thank you.

efferre79

2019-09-30 09:56

reporter   ~0013698

probably the build failure is related to this commit in master (6da72b9859f6d21119831d44a8d132c8e2dfb544), it seems that not all lines of code in freecad have been updated accordingly

here is the forum thread

Kunda1

2020-01-11 13:07

administrator   ~0014051

workaround ? https://forum.freecadweb.org/viewtopic.php?f=4&t=39716&p=359686#p356015

yorik

2022-03-03 13:55

administrator   ~0016827

This ticket has been migrated to GitHub as issue 5993.

Issue History

Date Modified Username Field Change
2019-09-25 16:37 efferre79 New Issue
2019-09-26 17:01 Kunda1 Tag Attached: #post-to-forum
2019-09-26 17:03 Kunda1 Note Added: 0013687
2019-09-26 17:03 Kunda1 Status new => feedback
2019-09-30 09:56 efferre79 Note Added: 0013698
2019-09-30 09:56 efferre79 Status feedback => new
2020-01-11 13:01 Kunda1 Tag Detached: #post-to-forum
2020-01-11 13:01 Kunda1 Tag Attached: #pending-forum
2020-01-11 13:07 Kunda1 Note Added: 0014051
2020-01-11 13:08 Kunda1 Status new => confirmed
2021-02-06 06:29 abdullah Target Version => 0.20