Hi,

internal compiler errors indicate crashes of the compiler itself. As many 
people built MITK with a very similar setting as yours my first guess would be 
low memory. The Microsoft compiler tends to be very demanding for heavily 
templated C++ code.

A solution could be to get rid of the /MP flag that tells the compiler to use 
as many cores as possible instead of a single core to reduce the CPU and memory 
load. /MP also allows to specify the number of parallel compilations so for 
example /MP2 uses two cores max (and therefore less memory).

As probably only ITK gives you trouble you can set the build directory in CMake 
to something like “D:/MITK-superbuild/ep/src/ITK-build” which allows you to 
reconfigure just the ITK build. In the advanced variables you should find 
CMAKE_CXX_FLAGS which includes /MP in its value.

Best,
Stefan

From: Ashish Singh [mailto:asinghmli...@gmail.com]
Sent: Monday, June 3, 2019 10:03 PM
To: mitk-users@lists.sourceforge.net
Subject: [mitk-users] MITK superbuild error with version 2018.04.2

Hi,

I am trying to build MITK 2018.04.2 on Windows and getting the following errors 
during MITK superbuild from visual studio.


Severity Code Description Project File Line Suppression State
Error C1001 An internal error has occurred in the compiler. 
[C:\myinstalls\MITKGit\build\MITK-build\Modules\DICOMReader\MitkDICOMReader.vcxproj]
 MITK-build 
c:\myinstalls\mitkgit\build\ep\include\itk-4.13\itkresampleimagefilter.hxx 292
Error C1001 An internal error has occurred in the compiler. 
[C:\myinstalls\MITKGit\build\MITK-build\Modules\DICOMReader\MitkDICOMReader.vcxproj]
 MITK-build 
c:\myinstalls\mitkgit\build\ep\include\itk-4.13\itkresampleimagefilter.hxx 292
Error C1001 An internal error has occurred in the compiler. 
[C:\myinstalls\MITKGit\build\MITK-build\Modules\DICOMReader\MitkDICOMReader.vcxproj]
 MITK-build 
c:\myinstalls\mitkgit\build\ep\include\itk-4.13\itkresampleimagefilter.hxx 292
Error C1001 An internal error has occurred in the compiler. 
[C:\myinstalls\MITKGit\build\MITK-build\Modules\DICOMReader\MitkDICOMReader.vcxproj]
 MITK-build 
c:\myinstalls\mitkgit\build\ep\include\itk-4.13\itkresampleimagefilter.hxx 292
Error C1001 An internal error has occurred in the compiler. 
[C:\myinstalls\MITKGit\build\MITK-build\Modules\DICOMReader\MitkDICOMReader.vcxproj]
 MITK-build 
c:\myinstalls\mitkgit\build\ep\include\itk-4.13\itkresampleimagefilter.hxx 292
Error C1001 An internal error has occurred in the compiler. 
[C:\myinstalls\MITKGit\build\MITK-build\Modules\DICOMReader\MitkDICOMReader.vcxproj]
 MITK-build 
c:\myinstalls\mitkgit\build\ep\include\itk-4.13\itkresampleimagefilter.hxx 292
Error C1001 An internal error has occurred in the compiler. 
[C:\myinstalls\MITKGit\build\MITK-build\Modules\DICOMReader\MitkDICOMReader.vcxproj]
 MITK-build 
c:\myinstalls\mitkgit\build\ep\include\itk-4.13\itkresampleimagefilter.hxx 292
Error C1001 An internal error has occurred in the compiler. 
[C:\myinstalls\MITKGit\build\MITK-build\Modules\DICOMReader\MitkDICOMReader.vcxproj]
 MITK-build 
c:\myinstalls\mitkgit\build\ep\include\itk-4.13\itkresampleimagefilter.hxx 292

My build environment is as follows:

Windows 10 Enterprise 64 bit
Visual Studio Community 2018 version 15.8.2
CMake - 3.12.2

Can anyone please help fix the issues? They all seem to be coming from the same 
itk file.

Thanks,
Ashish
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to