View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015354VTK(No Category)public2015-03-02 15:202015-08-27 17:46
ReporterDženan Zukić 
Assigned ToT.J. Corona 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015354: __sync_add_and_fetch not found on VS2013
DescriptionI am using VS2013 Community Edition targeting AMD64.

This error appears when compiling in both release and debug mode:
M:\Dev\VTK-6.2.0.rc1\Examples\ParallelProcessing\SMP\Cxx\vtkSMPMinMaxTree.cxx(81): error C3861: '__sync_add_and_fetch': identifier not found
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Filestxt file icon CMakeCache.txt [^] (170,749 bytes) 2015-03-02 15:20 [Show Content]

 Relationships

  Notes
(0034292)
Dženan Zukić (developer)
2015-03-02 15:22

I forgot to mention that it exist in VS2012 x64.
(0035073)
Jean-Christophe Fillion-Robin (manager)
2015-08-26 16:49

Hi Dzenan,

Does the problem happen using the VTK master ?
(0035083)
Dženan Zukić (developer)
2015-08-27 10:55

In the current VTK master, SMP implementation "OpenMP" builds correctly, while SMP implementation "Simple" fails in vtkSMPTools.cxx on line 20 (#include <pthread.h>).
(0035088)
T.J. Corona (developer)
2015-08-27 15:17

This issue has been fixed by the following commit:

https://gitlab.kitware.com/vtk/vtk/commit/5af8f952aefdb7b9d6d9344c167068f70fc968f3 [^]

Thanks!
(0035090)
Dženan Zukić (developer)
2015-08-27 17:26

The error did not go away. Here is output from VS, attempting build for the second time:

1>------ Build started: Project: vtkCommonCore, Configuration: Debug x64 ------
2>------ Build started: Project: vtkhdf5, Configuration: Debug x64 ------
3>------ Skipped Build: Project: vtkCompileTools, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration
1> vtkAbstractArray.cxx
2> vtkhdf5.vcxproj -> C:\Dev\VTK-build\lib\Debug\vtkhdf5-6.3.lib
1> vtkCommonInformationKeyManager.cxx
1> vtkIdTypeArray.cxx
1> vtkInformationVariantKey.cxx
1> vtkOutputWindow.cxx
1> vtkUnsignedCharArray.cxx
1> vtkSMPTools.cxx
1>C:\Dev\VTK-git\Common\Core\SMP\Simple\vtkSMPTools.cxx(20): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
1> vtkAtomic.cxx
1> Generating Code...
4>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------
4>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 119 up-to-date, 2 skipped ==========
(0035091)
T.J. Corona (developer)
2015-08-27 17:44
edited on: 2015-08-27 17:46

To be fair, that's a different error ;) By design, the simple implementation of SMP was designed with posix threading. If you system does not support it, you can build VTK with the advanced flag VTK_SMP_IMPLEMENTATION_TYPE set to a different value (such as sequential).


 Issue History
Date Modified Username Field Change
2015-03-02 15:20 Dženan Zukić New Issue
2015-03-02 15:20 Dženan Zukić File Added: CMakeCache.txt
2015-03-02 15:22 Dženan Zukić Note Added: 0034292
2015-08-26 16:43 Berk Geveci Assigned To => T.J. Corona
2015-08-26 16:49 Jean-Christophe Fillion-Robin Note Added: 0035073
2015-08-27 10:55 Dženan Zukić Note Added: 0035083
2015-08-27 15:17 T.J. Corona Note Added: 0035088
2015-08-27 15:17 T.J. Corona Status backlog => closed
2015-08-27 15:17 T.J. Corona Resolution open => fixed
2015-08-27 17:26 Dženan Zukić Note Added: 0035090
2015-08-27 17:26 Dženan Zukić Status closed => backlog
2015-08-27 17:26 Dženan Zukić Resolution fixed => reopened
2015-08-27 17:44 T.J. Corona Note Added: 0035091
2015-08-27 17:45 T.J. Corona Status backlog => closed
2015-08-27 17:45 T.J. Corona Resolution reopened => no change required
2015-08-27 17:46 T.J. Corona Note Edited: 0035091


Copyright © 2000 - 2018 MantisBT Team