[Insight-developers] source code change impacting Intel compiler

Simon Warfield warfield at crl.med.harvard.edu
Mon Apr 10 10:29:24 EDT 2006


A recent change has been incompatible with the Intel compiler but works 
with GCC.
The symptom is the following error message:
http://www.itk.org/Testing/Sites/smyslov.bwh.harvard.edu/Linux-x86_64-release-icc-9.0/20060410-0100-Nightly/BuildError.html
>
> File: *Utilities/gdcm/src/gdcmVR.cxx* Line: *118*CVS 
> <http://www.itk.org/cgi-bin/viewcvs.cgi/Utilities/gdcm/src/gdcmVR.cxx?cvsroot=Insight&annotate=HEAD#118> 
>
> Building CXX object Utilities/gdcm/src/CMakeFiles/itkgdcm.dir/gdcmVR.o
> */.../Insight/Utilities/gdcm/src/gdcmVR.cxx(118): internal error: assertion failed: pop_object_lifetime: useful lifetime is unbound (shared/edgcpfe/il.c, line 14286)
> *
>     static const int vrSize = sizeof(std::string("AE"));
>                               ^
>
> compilation aborted for /.../Insight/Utilities/gdcm/src/gdcmVR.cxx (code 4)
> Linking CXX static library ../../../bin/libitkgdcm.a

Apparently the compiler is objecting to reporting the size of the 
temporary object, perhaps because it can't work out when the objects 
destructor will be called.

I wonder if an alternative means of setting vrSize would work.

--
Simon


More information about the Insight-developers mailing list