<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>I think I re-produced your problem trying to set up clang for SimpleITK:</div><div><br></div><div><a href="http://open.cdash.org/viewBuildError.php?buildid=2112999">http://open.cdash.org/viewBuildError.php?buildid=2112999</a></div><div><br></div><div>I just downloaded the latest XCode, and patched the system:</div><div><br></div><div><div>$ clang --version</div><div>Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)</div><div>Target: x86_64-apple-darwin10</div><div>Thread model: posix</div></div><div><br></div><div>Does ITK work mostly with this version of clang? Is this the version you are using, or some mac-ports like version?</div><div><br></div><div>Thanks,</div><div>Brad</div><div><br><div><div>On Mar 13, 2012, at 11:59 AM, Williams, Norman K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>This is one of those 'oh great' moments. I updated my Mac to 10.7.3 and<br>ITK and VTK compiles broke, with this error:<br><br>In file included from<br>/scratch/kent/ants/brainsia/build/ITKv4/Modules/ThirdParty/KWSys/src/KWSys/<br>SystemTools.cxx:26:<br>/scratch/kent/ants/brainsia/build/ITKv4-build/Modules/ThirdParty/KWSys/src/<br>itksys/ios/sstream:176:29: error: cannot initialize a<br> parameter of type 'iostate' (aka 'std::_Ios_Iostate') with an lvalue<br>of type 'int'<br> this->IStrStream::clear(flags);<br> ^~~~~<br>/usr/include/c++/4.2.1/bits/basic_ios.h:133:21: note: passing argument to<br>parameter '__state' here<br> clear(iostate __state = goodbit);<br><br>The problem is that the function signature for ios::clear changed between<br>10.7.2 and 10.7.3 -- and for some reason the compiler won't do the<br>conversion between int and iostate.<br><br>It's vexing to me because I can't imagine ever calling ios::clear() with<br>an argument. Clear is clear, right?<br><br><br><br>--<br>Kent Williams <a href="mailto:norman-k-williams@uiowa.edu">norman-k-williams@uiowa.edu</a><br><br><br><br><br><br><br>________________________________<br>Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.<br>________________________________<br>_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-developers<br></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space"> </span><span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>