MantisBT - VTK |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015354 | VTK | (No Category) | public | 2015-03-02 15:20 | 2015-08-27 17:46 |
|
Reporter | Dženan Zukić | |
Assigned To | T.J. Corona | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | no change required | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Project | TBD |
Type | incorrect functionality |
|
Summary | 0015354: __sync_add_and_fetch not found on VS2013 |
Description | I 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 |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | CMakeCache.txt (170,749) 2015-03-02 15:20 https://www.vtk.org/Bug/file/17/CMakeCache.txt |
|
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 | bug_revision_view_page.php?bugnote_id=35091#r1246 |
Notes |
|
(0034292)
|
Dženan Zukić
|
2015-03-02 15:22
|
|
I forgot to mention that it exist in VS2012 x64. |
|
|
(0035073)
|
Jean-Christophe Fillion-Robin
|
2015-08-26 16:49
|
|
Hi Dzenan,
Does the problem happen using the VTK master ? |
|
|
(0035083)
|
Dženan Zukić
|
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
|
2015-08-27 15:17
|
|
|
|
(0035090)
|
Dženan Zukić
|
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
|
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).
|
|