View Issue Details

IDProjectCategoryView StatusLast Update
0004765FreeCADBugpublic2021-12-22 00:40
ReporterQuellaZhang Assigned Tochennes  
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Summary0004765: [MSVC][Build][Permissive-][std:c++latest] FreeCAD failed to build on MSVC
DescriptionHi All,

The MSVC team recently added FreeCAD as part of RWC testing to detect compiler regressions. And we found some errors when building FreeCAD with '/permissive-' and '/std:c++latest' option. Can you help to fix these issues? Thanks.

I noticed that some of these errors are come from Boost library, and these issue have been fixed on Boost latest version. After I fixed Boost errors, more errors were exposed by the project itself.
Steps To Reproduce
  1. open VS2019 x64 tools command
  2. git clone https://github.com/FreeCAD/FreeCAD.git F:\gitP\FreeCAD\FreeCAD
  3. download https://github.com/apeltauer/FreeCAD/releases/tag/LibPack_12.5.2 F:\gitP\FreeCAD\tools\FreeCADLibs_12.5.2_x64_VC17
  4. mkdir F:\gitP\FreeCAD\FreeCAD\build_amd64 && cd F:\gitP\FreeCAD\FreeCAD\build_amd64
  5. set _CL_= /permissive- or set _CL_= /std:c++latest
  6. set PATH=F:\gitP\FreeCAD\tools\FreeCADLibs_12.5.2_x64_VC17\bin;%PATH%
  7. set PATH=F:\gitP\FreeCAD\tools\FreeCADLibs_12.5.2_x64_VC17\bin\Scripts;%PATH%
  8. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DFREECAD_LIBPACK_DIR=F:\gitP\FreeCAD\tools\FreeCADLibs_12.5.2_x64_VC17 -DBUILD_FEM_NETGEN=OFF -DFREECAD_RELEASE_PDB=OFF -DFREECAD_RELEASE_SEH=OFF -DCMAKE_BUILD_TYPE=Release ..
  9. msbuild /m /p:Platform=x64 /p:Configuration=Release FreeCAD.sln /t:Rebuild
TagsNo tags attached.
FreeCAD InformationWe using latest source code 217db02 from FreeCAD master branch.

Activities

QuellaZhang

2021-10-15 09:42

reporter  

FreeCAD_build_log.7z (116,569 bytes)

chennes

2021-11-01 16:50

administrator   ~0016005

Thank you for the report -- we'll look into these issues.

chennes

2021-11-04 02:42

administrator   ~0016013

https://github.com/FreeCAD/FreeCAD/commit/833868bd1394862f6fab079fa74685f09675129a fixes one of the issues.

chennes

2021-11-06 15:57

administrator   ~0016016

https://github.com/FreeCAD/FreeCAD/commit/6d2aa6acc9f58d8f8cf0d4744d9a0ed86ac18ed5 fixes another.

uwestoehr

2021-12-20 10:02

manager   ~0016115

https://github.com/FreeCAD/FreeCAD/commit/6ad156b6b77 fixes another one

uwestoehr

2021-12-22 00:40

manager   ~0016126

and another one: https://github.com/FreeCAD/FreeCAD/commit/5fba9cec

yorik

2022-03-03 13:55

administrator   ~0017103

This ticket has been migrated to GitHub as issue 6272.

Issue History

Date Modified Username Field Change
2021-10-15 09:42 QuellaZhang New Issue
2021-10-15 09:42 QuellaZhang File Added: FreeCAD_build_log.7z
2021-11-01 16:50 chennes Note Added: 0016005
2021-11-04 02:40 chennes Assigned To => chennes
2021-11-04 02:40 chennes Status new => acknowledged
2021-11-04 02:42 chennes Note Added: 0016013
2021-11-06 15:57 chennes Note Added: 0016016
2021-12-20 10:02 uwestoehr Note Added: 0016115
2021-12-22 00:40 uwestoehr Note Added: 0016126