Hi Ashish,

have you checked to use the 64Bit generator for CMake, something like „Visual 
Studio 15 2017 Win64“?

Best,
Tobias

Von: Ashish Singh [mailto:asinghmli...@gmail.com]
Gesendet: Mittwoch, 5. Juni 2019 18:44
An: Nolden, Marco <m.nol...@dkfz-heidelberg.de>
Cc: mitk-users@lists.sourceforge.net
Betreff: Re: [mitk-users] MITK superbuild error with version 2018.04.2

Thanks Marco and Stefan.

I am not sure if it is due to low memory. I have 16GBs for RAM. Also, I have 
tried rebuilding after removing /MP flag from ITK, but still the same result. 
Btw, the ITK build by itself succeeds. It succeeds even with the /MP flag.
If I go to "D:/MITK-superbuild/MITK-build/" and open the MITK.sln file in 
visual studio and build it, this fails with a bunch of errors starting with the 
itk related errors as in my previous email.

I am trying to update my compiler to the latest one, as Marco suggested and 
will try the build again.

Thanks,
Ashish

On Tue, Jun 4, 2019 at 8:59 AM Nolden, Marco 
<m.nol...@dkfz-heidelberg.de<mailto:m.nol...@dkfz-heidelberg.de>> wrote:

Hi,



could you also check if there is an update for the compiler? Looking at the 
15.8.x release notes it seems that several internal compiler errors got fixed.



Best,

Marco



________________________________
Von: Dinkelacker, Stefan 
<s.dinkelac...@dkfz-heidelberg.de<mailto:s.dinkelac...@dkfz-heidelberg.de>>
Gesendet: Dienstag, 4. Juni 2019 09:40
An: Ashish Singh; 
mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
Betreff: Re: [mitk-users] MITK superbuild error with version 2018.04.2

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<mailto:asinghmli...@gmail.com>]
Sent: Monday, June 3, 2019 10:03 PM
To: mitk-users@lists.sourceforge.net<mailto: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