Recent daily build failures on Xenial

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Recent daily build failures on Xenial

Post by kkremitzki »

Builds failed on Ubuntu 16.04 the last 2 days, I've set them back to manual build for now. See https://launchpadlibrarian.net/48417729 ... ING.txt.gz

Error:

Code: Select all

[ 10%] Building CXX object src/App/CMakeFiles/FreeCADApp.dir/GroupExtension.cpp.o
cd "/<<PKGBUILDDIR>>/debian/build-py2/src/App" && /usr/bin/x86_64-linux-gnu-g++   -DDOCDIR=\"/usr/share/doc/freecad-daily-doc\" -DFreeCADApp_EXPORTS -DHAVE_CONFIG_H -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -DRESOURCEDIR=\"/usr/share/freecad-daily\" -D_OCC64 -I"/<<PKGBUILDDIR>>/debian/build-py2" -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtOpenGL -isystem /usr/include/qt4/QtSvg -isystem /usr/include/qt4/QtUiTools -isystem /usr/include/qt4/QtWebKit -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtXml -isystem /usr/include/qt4/QtNetwork -isystem /usr/include/qt4/QtCore -I"/<<PKGBUILDDIR>>/debian/build-py2/src" -I"/<<PKGBUILDDIR>>/src" -I"/<<PKGBUILDDIR>>/debian/build-py2/src/App" -I/usr/include/python2.7  -Wall -Wextra -Wno-write-strings -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -fpermissive -I/usr/include/python2.7 -O2 -g -DNDEBUG -fPIC   -I/usr/include/hdf5/serial -pthread -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include -std=gnu++11 -o CMakeFiles/FreeCADApp.dir/GroupExtension.cpp.o -c "/<<PKGBUILDDIR>>/src/App/GroupExtension.cpp"
/<<PKGBUILDDIR>>/src/App/GroupExtension.cpp:40:23: error: ‘placeholders’ is not a namespace-name
 namespace bp = boost::placeholders;
                       ^
/<<PKGBUILDDIR>>/src/App/GroupExtension.cpp:40:35: error: expected namespace-name before ‘;’ token
 namespace bp = boost::placeholders;
                                   ^
/<<PKGBUILDDIR>>/src/App/GroupExtension.cpp: In member function ‘virtual void App::GroupExtension::extensionOnChanged(const App::Property*)’:
/<<PKGBUILDDIR>>/src/App/GroupExtension.cpp:366:68: error: ‘bp’ has not been declared
                             &GroupExtension::slotChildChanged,this,bp::_1, bp::_2));
                                                                    ^
/<<PKGBUILDDIR>>/src/App/GroupExtension.cpp:366:76: error: ‘bp’ has not been declared
                             &GroupExtension::slotChildChanged,this,bp::_1, bp::_2));
                                                                            ^
src/App/CMakeFiles/FreeCADApp.dir/build.make:426: recipe for target 'src/App/CMakeFiles/FreeCADApp.dir/GroupExtension.cpp.o' failed
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Recent daily build failures on Xenial

Post by vocx »

kkremitzki wrote: Sun Jun 14, 2020 11:53 pm

Code: Select all

/<<PKGBUILDDIR>>/src/App/GroupExtension.cpp:366:76: error: ‘bp’ has not been declared
                             &GroupExtension::slotChildChanged,this,bp::_1, bp::_2));
                                                                            ^
This sounds like it could be a recent fix by Werner, to support the newest Fedora, which includes fixes for Python 3.8, 3.9, and Boost 1.73. See pull request #3606, git commit 6f8ca18.
realthunder wrote: @wwmayer commit 6f8ca18 causes build failure on boost before 1.60. Maybe you can consider a work around here.
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.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Recent daily build failures on Xenial

Post by wmayer »

I have checked the boost git history: https://github.com/boostorg/bind/commit ... olders.hpp

boost 1.58 which is used for Xenial has been released in April 2015. The change to put the global placeholders into the namespace was done one month later: https://github.com/boostorg/bind/commit ... 93ce222098

I had a similar workaround in mind as suggested by realthunder but I would not put it into each affected source file or PreCompiled.h but put it directly into FCConfig.h. This way we don't have to change a lot of files and again revert these changes when Xenial runs out of support.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Recent daily build failures on Xenial

Post by wmayer »

Post Reply