View Issue Details

IDProjectCategoryView StatusLast Update
0002448Slicer4Core: Building (CMake, Superbuild)public2012-12-08 07:12
Reporterkentwilliams Assigned Tohjmjohnson  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.3.0 
Summary0002448: 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

jcfr

jcfr

2012-08-29 13:23

administrator   ~0005860

Note from Steve Pieper - 08-22-2012:

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

hjmjohnson

hjmjohnson

2012-11-29 11:36

developer   ~0007381

This is resolved in current svn release of Slicer.

jcfr

jcfr

2012-11-30 10:03

administrator   ~0007389

Seems there is a bug in CMake preventing from linking against Qt.
See http://public.kitware.com/Bug/view.php?id=13765

Since I didn't install a "regular" gcc on this machine, I couldn't check if it compile specific.

hjmjohnson

hjmjohnson

2012-12-08 07:12

developer   ~0007473

After Kent's patches were applied, this works without issue.

Issue History

Date Modified Username Field Change
2012-08-29 13:21 jcfr New Issue
2012-08-29 13:21 jcfr Status new => assigned
2012-08-29 13:21 jcfr Assigned To => jcfr
2012-08-29 13:22 jcfr Reporter jcfr => kentwilliams
2012-08-29 13:22 jcfr Assigned To jcfr =>
2012-08-29 13:22 jcfr Target Version => Slicer 4.3.0
2012-08-29 13:23 jcfr Note Added: 0005860
2012-08-29 13:28 jcfr Status assigned => feedback
2012-11-29 11:10 hjmjohnson Status feedback => assigned
2012-11-29 11:10 hjmjohnson Assigned To => hjmjohnson
2012-11-29 11:34 hjmjohnson Resolution open => fixed
2012-11-29 11:36 hjmjohnson Note Added: 0007381
2012-11-29 11:36 hjmjohnson Status assigned => resolved
2012-11-29 11:36 hjmjohnson Fixed in Version => Slicer 4.3.0
2012-11-30 10:03 jcfr Note Added: 0007389
2012-11-30 10:03 jcfr Status resolved => assigned
2012-12-08 07:12 hjmjohnson Note Added: 0007473
2012-12-08 07:12 hjmjohnson Status assigned => resolved
2012-12-08 07:12 hjmjohnson Status resolved => closed