View Issue Details

IDProjectCategoryView StatusLast Update
0003521Slicer4Core: Building (CMake, Superbuild)public2017-06-10 08:51
Reportertokuda Assigned Tojcfr  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.3.1-1 
Target VersionSlicer 4.4.0Fixed in VersionSlicer 4.4.0 
Summary0003521: Build fails on Mac OS X 10.9 Maverick due to compile error in VTK
Description

Building process fails on freshly installed Mac OS X 10.9:

[ 4%] Building CXX object Utilities/MaterialLibrary/CMakeFiles/ProcessShader.dir/ProcessShader.cxx.o
-- Performing Test int send(int, const void *, int, int) (curl_cv_func_send_test)
duplicate symbol _sputc in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tifclose.c.o
duplicate symbol
sputc in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tif_codec.c.o
duplicate symbol _sputc in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tifcompress.c.o
duplicate symbol
sputc in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tif_dir.c.o
duplicate symbol _sputc in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tifdirinfo.c.o
[...]
duplicate symbol
sincos in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tif_color.c.o
duplicate symbol _sincospif in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tifcolor.c.o
duplicate symbol
sincospi in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tif_color.c.o
duplicate symbol ___sputc in:
CMakeFiles/vtktiff.dir/tif_aux.c.o
CMakeFiles/vtktiff.dir/tif_unix.c.o
ld: 91 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: [bin/libvtktiff.5.10.1.dylib] Error 1
make[4]:
[Utilities/vtktiff/CMakeFiles/vtktiff.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....

Additional Information

It should be related to the following issue reported in VTK's bug tracker:

http://www.vtk.org/Bug/view.php?id=14359

TagsNo tags attached.

Relationships

related to 0003522 closedjcfr Build fails on Mac OS X 10.9 Maverick with X Code 5.0.2 due to nice() call 
related to 0003405 closedjcfr Superbuild fails when compiling Python and Tk extension on OS X 10.8/10.9 with XQuartz 

Activities

tokuda

tokuda

2013-12-06 08:51

developer   ~0010402

I tried applying the changes suggested in the VTK's bug tracker, and the issue seemed to be solved.
Here's the modified VTK code I used:

https://github.com/tokjun/VTK/tree/slicer-v5.10.1-patch-MAC_OSX_10_9

jcfr

jcfr

2013-12-06 10:55

administrator   ~0010410

Hi,

I just integrated all patches that will make it to the coming 5.10.2 release.

In External_VTK.cmake, could you try building Slicer by simply changing the SHA to "f387593148a8bc49cf46c1e27537674d5b779f49" ?

It includes the patch you referenced.

For reference:
https://github.com/Slicer/VTK/commit/f387593148a8bc49cf46c1e27537674d5b779f49
http://review.source.kitware.com/#/c/13681/

tokuda

tokuda

2013-12-06 11:11

developer   ~0010411

Thanks! I will test this with 0003522.

jcfr

jcfr

2013-12-06 11:30

administrator   ~0010412

Fixed in r22769
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=22769

Let me know who it works for you.

jcfr

jcfr

2013-12-06 11:55

administrator   ~0010414

Build fine on MacOSX factory. See http://trunk.cdash.org/buildSummary.php?buildid=174887

jcfr

jcfr

2014-03-06 05:03

administrator   ~0010894

Closing resolved issues that have not been updated in more than 3 months

jcfr

jcfr

2017-06-07 23:27

administrator   ~0014562

Fix committed to 2145-support-for-installing-extension-from-file branch.

Related Changesets

Slicer: 2145-support-for-installing-extension-from-file d4c9a1c0

2013-12-06 16:28:59

jcfr

Details Diff
COMP: Fix VTK Maverick MacOSX 10.9 compile error. Fixes 0003521

$ git shortlog adc1327551527dfbcc953ce73c5155d18edf7649..f387593148a8bc49cf46c1e27537674d5b779f49
Dave DeMarle (5):
Merge topic 'release-5.10-windowRect-size' into release-5.10
Merge topic 'tcl86-compatibility-rel5.10' into release-5.10
Merge topic 'dont-define-inline' into release-5.10
Merge branch 'libcxx-error-rel5.10' into integration
Merge branch 'llvm-libc++-fixes-rel5.10' into integration

David Cole (1):
Rendering: Use AdjustWindowRect to ensure pixel perfect client size

Goodwin Lawlor (6):
Backport using Tcl_GetErrorLine with Tcl8.6
Let macro find TclTk version 8.6
Update the TclTk internal files for 8.6
Backport using Tcl_GetErrorLine with Tcl8.6
Let macro find TclTk version 8.6
Update the TclTk internal files for 8.6

Jean-Christophe Fillion-Robin (1):
Merge branch 'osx-10.6.fixes' into slicer-v5.10.1

Sean McBride (5):
Conditionalize insane "#define inline" in libtiff
added missing #include, fixing compiler error with llvm's libc++
Fixed compile error with llvm libcxx
COMP: fixed compilation error using llvm's libc++
COMP: fixed llvm libc++ build error by removing invalid 'operator<<'


Co-authored-by: Junichi Tokuda <tokuda@bwh.harvard.edu>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22769 3bd1e089-480b-0410-8dfb-8563597acbee
mod - SuperBuild/External_VTK.cmake Diff File

Import 2017-06-07 23:51:09: master d4c9a1c0

2013-12-06 16:28:59

jcfr

Details Diff
COMP: Fix VTK Maverick MacOSX 10.9 compile error. Fixes 0003521

$ git shortlog adc1327551527dfbcc953ce73c5155d18edf7649..f387593148a8bc49cf46c1e27537674d5b779f49
Dave DeMarle (5):
Merge topic 'release-5.10-windowRect-size' into release-5.10
Merge topic 'tcl86-compatibility-rel5.10' into release-5.10
Merge topic 'dont-define-inline' into release-5.10
Merge branch 'libcxx-error-rel5.10' into integration
Merge branch 'llvm-libc++-fixes-rel5.10' into integration

David Cole (1):
Rendering: Use AdjustWindowRect to ensure pixel perfect client size

Goodwin Lawlor (6):
Backport using Tcl_GetErrorLine with Tcl8.6
Let macro find TclTk version 8.6
Update the TclTk internal files for 8.6
Backport using Tcl_GetErrorLine with Tcl8.6
Let macro find TclTk version 8.6
Update the TclTk internal files for 8.6

Jean-Christophe Fillion-Robin (1):
Merge branch 'osx-10.6.fixes' into slicer-v5.10.1

Sean McBride (5):
Conditionalize insane "#define inline" in libtiff
added missing #include, fixing compiler error with llvm's libc++
Fixed compile error with llvm libcxx
COMP: fixed compilation error using llvm's libc++
COMP: fixed llvm libc++ build error by removing invalid 'operator<<'


Co-authored-by: Junichi Tokuda <tokuda@bwh.harvard.edu>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22769 3bd1e089-480b-0410-8dfb-8563597acbee
mod - SuperBuild/External_VTK.cmake Diff File

Issue History

Date Modified Username Field Change
2013-12-05 13:19 tokuda New Issue
2013-12-05 13:19 tokuda Status new => assigned
2013-12-05 13:19 tokuda Assigned To => jcfr
2013-12-06 08:44 jcfr Relationship added related to 0003522
2013-12-06 08:44 jcfr Target Version => Slicer 4.4.0
2013-12-06 08:45 jcfr Relationship added related to 0003405
2013-12-06 08:51 tokuda Note Added: 0010402
2013-12-06 10:55 jcfr Note Added: 0010410
2013-12-06 11:11 tokuda Note Added: 0010411
2013-12-06 11:14 jcfr Description Updated
2013-12-06 11:30 jcfr Note Added: 0010412
2013-12-06 11:30 jcfr Status assigned => resolved
2013-12-06 11:30 jcfr Fixed in Version => Slicer 4.4.0
2013-12-06 11:30 jcfr Resolution open => fixed
2013-12-06 11:55 jcfr Note Added: 0010414
2014-03-06 05:03 jcfr Note Added: 0010894
2014-03-06 05:03 jcfr Status resolved => closed
2017-06-07 23:27 jcfr Changeset attached => Slicer 2145-support-for-installing-extension-from-file d4c9a1c0
2017-06-07 23:27 jcfr Note Added: 0014562
2017-06-10 08:51 jcfr Changeset attached => Slicer master d4c9a1c0