CMake Error: G++ must be 7.3 or later, the used version is 6.3.0
Following these instructions to build FreeCad on Docker: https://wiki.freecadweb.org/Compile_on_Docker
The GNU build tools need to be upgraded to 7.3 or later to build FreeCad now.
root@e3ae4c7838e5:~# /root/build_script.sh
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at cMake/FreeCAD_Helpers/CompilerChecksAndSetups.cmake:39 (message):
FreeCAD 0.20 and later requires C++17. G++ must be 7.3 or later, the used
version is 6.3.0
Call Stack (most recent call first):
CMakeLists.txt:38 (CompilerChecksAndSetups)