[Insight-users] ITK/tcl wrapping problem. wrap_itkCastImageFilter_2DTcl.obj : fatal error LNK1143: invalid or corrupt file: no symbol for comdat section 0xffff8000

Luis Ibanez luis.ibanez at kitware.com
Mon Sep 3 09:34:03 EDT 2007


Hi Ocean Spring,


1) The Visual Studio warnings about

      "identifier was truncated to '255'
       characters in the debug information"


    are just a constant reminder of why it is
    bad to let Microsoft become a monopoly in
    the software industry.

    It is a dumb warning that should only be
    read by the developers of Visual Studio
    who had the bright idea of limiting symbols
    to only 255 characters.

    It is pretty much impossible to write any
    C++ program using STL in Debug mode, without
    getting this annoying warnings.

    You can just ignore these warnings... the same
    way that Microsoft ignores the problem.


2) When during the build process you get request
    for reloading projects, it means that CMake
    has been called as a side effect of updating
    some project. CMake generates new versions of
    some of the .dsp files, and when Visual Studio
    detects these new versions it ask you if you
    want to load them.

    In most cases you can reload the projects,
    in other cases you have to do a second build
    in order to take the new project versions into
    account.


3) Your last error sounds like a serious problem,

    How much free disk space you do you have ?



4) Why Kitware doesn't release a binary version
    of the wrapping ?

    Well, because there are too many combination.

    Some people will like it for Release, others
    for Debug,

    Some will need Python, others will need Tcl,
    others will need Java.


    That being said, if there are enough users
    supporting a request for having this binary
    distributed, then we will be happy to consider
    it.  At this point, it simply a matter of
    allocating our resources to the tasks that will
    benefit the community the most.

    E.g. We have to choose between answering emails
    in the users list, fixing bugs, and preparing
    binary versions of the wrappers.

    That being, Charl Botha has kindly made available
    a Python binaries enabled with ITK and VTK.
http://cpbotha.net/2007/08/02/python-enabled-vtk-51-and-itk-32-windows-binaries/

    You may find these binaries available.



5) Did you enabled Python, Tcl and Java *simultaneously*
    in a single build ?

    If so, that is a bad idea.

    You should instead have three independent builds
    once for each wrapping.



   Regards,


      Luis



------------------
Ocean Spring wrote:
> Hello all,
>  
> Good day. it has been a tough moment when i went through the 
> ITK+VTK+TCL/TK  building process.
>  
> My os : Windows XP
> My compiler MSDev 6.0
> Cmake 2.4 patch 7
>  
> i get the offical release of ITK 3.2.0 and CableSwig for ITK3.2.0
>  
> i unpacked ITK 3.2.0 and unpacked CableSwig into its Utilities 
> sub-folder. run CMake enable TCL options and enable share libraries.
> "Configure" and "OK" in Cmake
>  
> then load ITK.dsw and Build in Release with Debug info.
>  
> during the process some problems came out.
>  
> 1) some (actually many) warnings like below came out
>  
> ===warnings===
> C:\ITK\Wrapping\CSwig\CommonA\SwigExtras_wrapTcl.cxx(1406) : warning 
> C4786: 
> 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > const 
> *,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std:
> :basic_string<char,std::char_traits<char>,std::allocator<char> > const 
> &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > 
> const *,int>' : identifier was truncated to '255' characters in the 
> debug information
> C:\ITK\Wrapping\CSwig\CommonA\SwigExtras_wrapTcl.cxx(1406) : warning 
> C4786: 
> 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > *,std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::basic
> _string<char,std::char_traits<char>,std::allocator<char> > 
> &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > 
> *,int>' : identifier was truncated to '255' characters in the debug 
> information
> C:\ITK\Wrapping\CSwig\CommonA\SwigExtras_wrapTcl.cxx(1431) : warning 
> C4786: 
> 'std::reverse_bidirectional_iterator<std::list<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::allocator<std::basic_string<char,std::char_traits<ch
> ar>,std::allocator<char> > > 
>  >::iterator,std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > 
> &,std::basic_string<char,std::char_traits<char>,std::allocator<char> >
>  *,int>' : identifier was truncated to '255' characters in the debug 
> information
> C:\ITK\Wrapping\CSwig\CommonA\SwigExtras_wrapTcl.cxx(1431) : warning 
> C4786: 
> 'std::reverse_bidirectional_iterator<std::list<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::allocator<std::basic_string<char,std::char_traits<ch
> ar>,std::allocator<char> > > 
>  >::const_iterator,std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > 
> const &,std::basic_string<char,std::char_traits<char>,std::alloc
> ator<char> > const *,int>' : identifier was truncated to '255' 
> characters in the debug information
> itkStringStream.cxx
> Generating Code...
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(60) : 
> warning C4786: 
> 'std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >
>  >::~vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > > >' : identifier was truncated to '255' characters in the debug 
> information
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xmemory(34) : 
> warning C4786: 
> 'std::binary_function<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > const ,itk::SmartPointer<itk::MetaDataObjectBase> >,std::pair<std
> ::basic_string<char,std::char_traits<char>,std::allocator<char> > const 
> ,itk::SmartPointer<itk::MetaDataObjectBase> >,bool>' : identifier was 
> truncated to '255' characters in the debug information
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xmemory(34) : 
> warning C4786: 
> 'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > const
> ,itk::SmartPointer<itk::MetaDataObjectBase> 
>  >,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,itk::SmartPointer<itk::MetaDataObjectBase>,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >,s
> td::allocator<itk::SmartPointer<itk::MetaDataObjectBase> > 
>  >::_Kfn,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >,std::allocator<itk::SmartPointer<itk::MetaDataObjectBase> > >' : 
> identifier was truncated to '255' ch
> aracters in the debug information
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xmemory(34) : 
> warning C4786: 
> 'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > const
> ,itk::SmartPointer<itk::MetaDataObjectBase> 
>  >,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,itk::SmartPointer<itk::MetaDataObjectBase>,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >,s
> td::allocator<itk::SmartPointer<itk::MetaDataObjectBase> > 
>  >::_Kfn,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >,std::allocator<itk::SmartPointer<itk::MetaDataObjectBase> > 
>  >::const_iterator' : identifier was trunc
> ated to '255' characters in the debug information
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xmemory(34) : 
> warning C4786: 
> 'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > const
> ,itk::SmartPointer<itk::MetaDataObjectBase> 
>  >,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,itk::SmartPointer<itk::MetaDataObjectBase>,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >,s
> td::allocator<itk::SmartPointer<itk::MetaDataObjectBase> > 
>  >::_Kfn,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >,std::allocator<itk::SmartPointer<itk::MetaDataObjectBase> > 
>  >::iterator' : identifier was truncated t
> o '255' characters in the debug information
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xmemory(34) : 
> warning C4786: 
> 'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > const
> ,itk::SmartPointer<itk::MetaDataObjectBase> 
>  >,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  >,itk::SmartPointer<itk::MetaDataObjectBase>,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >,s
> td::allocator<itk::SmartPointer<itk::MetaDataObjectBase> > 
>  >::_Kfn,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>  > >,std::allocator<itk::SmartPointer<itk::MetaDataObjectBase> > 
>  >::_Node' : identifier was truncated to '
> 255' characters in the debug information
> =========
>  
> i am not sure whether it is vital or not.
>  
>  
> 2) during the process there were * 3 times* a pop window came out to ask 
> for reload some .dsp (3 different .dsp files )files.
>  
> such as "the project file 
> "C:\ITK\Wrapping\CSwing\CommonA\ITKCommonATcl.dsp " has been changed 
> outside of the Microsoft Developer Studio. You will need to close and 
> reload this project in other to incorporate any changes."
> Do you want to reload it now?
>  
> i chose of course No. since it have been 35minutes after from staring 
> building it.
>  
> so it went on.
>  
> 3) then after it had been building for 50 minutes. a fatal error hit me 
> down....
>  
> the error returned like below
>  
> "
> 
> wrap_itkCastImageFilter_2DTcl.obj : fatal error LNK1143: invalid or 
> corrupt file: no symbol for comdat section 0xffff8000
> Error executing link.exe.
> 
> ALL_BUILD - 1 error(s), 127 warning(s)
> 
> "
>  
>  
> i cleared the building directory and run Cmake again to generate new 
> files and built again. same thing still..
> so please Luis or someone out there please give suggestions on this.
>  
> Thank you.
>  
> regards
>  
> Yours
>  
> O.S
>  
> p.s
> just complain on problem.
>  
> why not kitware release some windows binary which works with VTK 
> and enables TCL, Python and Java wrapper? because as a user, it seems 
> that i spent *tooo much* time on just building a tool rather than use it 
> and go further on my research. 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list