View Issue Details

IDProjectCategoryView StatusLast Update
0002426Slicer3Buildingpublic2012-08-29 13:28
Reporterkentwilliams Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionwon't fix 
Summary0002426: Can't compile with CLang on OS X
Description

Compile fails building NUMPY.

The problem is that the NUMPY/numpy/distutils/system_info.py does an erroneous test on Macs to determine if they are Intel or PPC machines. Since the test is wrong it thinks any modern Intel Mac is a PPC machine and adds the -faltivec flag. GCC just ignores this flag, but CLang quits with an error if it sees it.

I have a patch here:

https://github.com/Chaircrusher/Slicer/tree/CLANG_Patch

This simply replaces the system_info.py file with one that assumes that if it's a Mac running OS X it is not a PPC box. I don't think the next release for Slicer will support PPC macs at all so there's no reason to bother adding flags for them, especially since the test used to determine the platform CPU no longer works.

TagsNo tags attached.

Activities

pieper

pieper

2012-08-22 12:43

administrator   ~0005727

What version of Xcode and c++ are you using? I have Xcode 4.3.3 on a very recent (retina) mac running Lion and I have no trouble building slicer with ITKv4, SimpleITK, numpy, etc. C++ version is as reported below. What's different for you?

[80] Slicer-superbuild $ c++ --version
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

jcfr

jcfr

2012-08-29 13:28

administrator   ~0005861

This issue has been created within Slicer3 project whereas it suppose to be associated with Slicer4 project.

An issue has been created in Slicer4 - See http://www.na-mic.org/Bug/view.php?id=2448

Steve> Make sure to monitor that new issue.

Kent> When you have chance, would be great if you could reply to Steve note.

Thanks for the hard work.

Issue History

Date Modified Username Field Change
2012-08-22 11:45 kentwilliams New Issue
2012-08-22 12:43 pieper Note Added: 0005727
2012-08-29 13:28 jcfr Note Added: 0005861
2012-08-29 13:28 jcfr Status new => closed
2012-08-29 13:28 jcfr Resolution open => won't fix