I encountered this error when compiling VTK 6.1. After querying, it is related to the garbage collection mechanism of ObjectC.
The solution is to delete the compilation option "-fobjc-gc" of VTK_REQUIRED_OBJCXX_FLAGS in CMake, then Configure, Generate, make, this error will not occur.