Internal compiler error on Windows 10 with IOMotionFX enabled
I get an internal compiler error on Windows 10 when compiling with the default VTK flags set. Setting IOMotionFX
to NO
results in a successful compile.
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x64\cl.exe /nologo /TP -DIOMotionFX_EXPORTS -DVTK_IN_VTK -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -IIO\MotionFX -IC:\Dev\Soft\vtk\source\IO\MotionFX -ICommon\ExecutionModel -IC:\Dev\Soft\vtk\source\Common\ExecutionModel -ICommon\Core -IC:\Dev\Soft\vtk\source\Common\Core -ICommon\DataModel -IC:\Dev\Soft\vtk\source\Common\DataModel -ICommon\Math -IC:\Dev\Soft\vtk\source\Common\Math -ICommon\Transforms -IC:\Dev\Soft\vtk\source\Common\Transforms -ICommon\Misc -IC:\Dev\Soft\vtk\source\Common\Misc -IIO\Geometry -IC:\Dev\Soft\vtk\source\IO\Geometry -IIO\Core -IC:\Dev\Soft\vtk\source\IO\Core -IIO\Legacy -IC:\Dev\Soft\vtk\source\IO\Legacy -IUtilities\KWIML -IC:\Dev\Soft\vtk\source\Utilities\KWIML -IUtilities\KWSys -IC:\Dev\Soft\vtk\source\Utilities\KWSys -IThirdParty\pegtl -IC:\Dev\Soft\vtk\source\ThirdParty\pegtl /DWIN32 /D_WINDOWS /W4 /GR /EHsc /LIBPATH:C:/Python38-x64/libs /bigobj /MD /O2 /Ob2 /DNDEBUG /showIncludes /FoIO\MotionFX\CMakeFiles\IOMotionFX.dir\vtkMotionFXCFGReader.cxx.obj /FdIO\MotionFX\CMakeFiles\IOMotionFX.dir\ /FS -c C:\Dev\Soft\vtk\source\IO\MotionFX\vtkMotionFXCFGReader.cxx
cl : Command line warning D9002 : ignoring unknown option '/LIBPATH:C:/Python38-x64/libs'
C:\Dev\Soft\vtk\source\ThirdParty\pegtl\vtkpegtl/include/tao/pegtl/contrib/tracer.hpp(212): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\p0gettok.c', line 7529)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
c:\dev\soft\vtk\source\thirdparty\pegtl\vtkpegtl\include\tao\pegtl/parse.hpp(31): note: see reference to class template instantiation 'tao::pegtl::trace<tao::pegtl::normal>::control<Rule>' being compiled
with
[
Rule=MotionFX::CFG::Grammar
]
C:\Dev\Soft\vtk\source\IO\MotionFX\vtkMotionFXCFGReader.cxx(1064): note: see reference to function template instantiation 'bool tao::pegtl::parse<MotionFX::CFG::Grammar,tao::pegtl::nothing,tao::pegtl::tracer,true,1,tao::pegtl::read_input<false,tao::pegtl::ascii::eol::lf_crlf>&,>(Input)' being compiled
with
[
Input=tao::pegtl::read_input<false,tao::pegtl::ascii::eol::lf_crlf> &
]