[vtk-developers] [VTK 0013174]: incremental build dependency problem toggling VTK_USE_64BIT_IDS

Mantis Bug Tracker mantis at public.kitware.com
Mon May 14 11:47:56 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=13174 
====================================================================== 
Reported By:                Sean McBride
Assigned To:                Dave DeMarle
====================================================================== 
Project:                    VTK
Issue ID:                   13174
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     tabled
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-05-14 11:47 EDT
Last Modified:              2012-05-14 11:47 EDT
====================================================================== 
Summary:                    incremental build dependency problem toggling
VTK_USE_64BIT_IDS
Description: 
Repro:
- build VTK 5.10rc4 with BUILD_TESTING=1
- toggle VTK_USE_64BIT_IDS from its default
- don't 'clean'
- rebuild

Results:
- link errors:
Undefined symbols for architecture x86_64:
  "__ZN12LSDynaFamily10SkipToWordENS_11SectionTypeEii", referenced from:
      __ZN15vtkLSDynaReader21ReadHeaderInformationEi in
libvtkIO.a(vtkLSDynaReader.cxx.o)
      __ZN15vtkLSDynaReader21ScanDatabaseTimeStepsEv in
libvtkIO.a(vtkLSDynaReader.cxx.o)
      __ZN15vtkLSDynaReader9ReadNodesEv in libvtkIO.a(vtkLSDynaReader.cxx.o)
      __ZN15vtkLSDynaReader11ReadUserIdsEv in libvtkIO.a(vtkLSDynaReader.cxx.o)
      __ZN15vtkLSDynaReader17ReadNodeStateInfoEi in
libvtkIO.a(vtkLSDynaReader.cxx.o)
      __ZN15vtkLSDynaReader12ReadSPHStateEi in libvtkIO.a(vtkLSDynaReader.cxx.o)
      __ZN15vtkLSDynaReader19ReadUserMaterialIdsEv in
libvtkIO.a(vtkLSDynaReader.cxx.o)
      ...

VTK has an incremental build dependency problem. When you build and then change
the setting of VTK_USE_64BIT_IDS, and rebuild, Utilities/LSDyna sees the one
definition of vtkIdType (64bit), and the rest of the build sees the other
(32bit) (or vice versa).

Doing a 'make clean' and then a 'make' is a workaround.

A proper bug fix is to make CMake aware that changing this flag requires a
complete rebuild (like compiler flags do).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-14 11:47 Sean McBride   New Issue                                    
2012-05-14 11:47 Sean McBride   Status                   backlog => tabled   
2012-05-14 11:47 Sean McBride   Assigned To               => Dave DeMarle    
======================================================================




More information about the vtk-developers mailing list