[Insight-developers] OS X 10.7.3 breaks kwsys

Bradley Lowekamp blowekamp at mail.nih.gov
Thu Mar 22 09:42:17 EDT 2012


$ xcodebuild -version
Xcode 4.3.1
Build version 4E1019

$ cmake --version
cmake version 2.8.7

On Mar 22, 2012, at 9:36 AM, David Cole wrote:

> How about the output of "xcodebuild -version" ... ?
> 
> With Xcode 4.3, you will need a VERY recent CMake to pick up this
> recent bug fix:
> 
>  http://public.kitware.com/Bug/view.php?id=12621
> 
> A nightly build of CMake dated March 16, 2012 or later should work.
> The fix will also be in the upcoming CMake 2.8.8 release. We should be
> doing rc1 for CMake 2.8.8 very soon now.
> 
> 
> Thanks,
> David
> 
> 
> 
> On Thu, Mar 22, 2012 at 9:22 AM, Bradley Lowekamp
> <blowekamp at mail.nih.gov> wrote:
>> *smacks head* I was on the wrong system.
>> 
>> $ clang --version
>> Apple clang version 3.1 (tags/Apple/clang-318.0.54) (based on LLVM 3.1svn)
>> Target: x86_64-apple-darwin11.3.0
>> Thread model: posix
>> 
>> $ uname -a
>> Darwin mini6 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST
>> 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
>> 
>> 
>> On Mar 22, 2012, at 9:14 AM, Johnson, Hans J wrote:
>> 
>> Brad,
>> 
>> I am getting a much different clang version on my 10.7.3 system:
>> 
>> johnsonhj at neuron:~$ clang --version
>> Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
>> Target: x86_64-apple-darwin11.3.0
>> Thread model: posix
>> johnsonhj at neuron:~$ uname -a
>> 
>> Darwin neuron.psychiatry.uiowa.edu 11.3.0 Darwin Kernel Version 11.3.0: Thu
>> Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
>> johnsonhj at neuron:~$
>> 
>> 
>> Hans
>> --
>> Hans J. Johnson, Ph.D.
>> hans-johnson at uiowa.edu
>> Assistant Professor of Psychiatry
>> University of Iowa Carver College of Medicine
>> W278 GH, 200 Hawkins Drive
>> Iowa City, Iowa 52242
>> Phone:  319-353-8587
>> 
>> From: Bradley Lowekamp <blowekamp at mail.nih.gov>
>> Date: Thu, 22 Mar 2012 09:09:28 -0400
>> To: Kent Williams <norman-k-williams at uiowa.edu>
>> Cc: ITK <insight-developers at itk.org>
>> Subject: Re: [Insight-developers] OS X 10.7.3 breaks kwsys
>> 
>> Hello,
>> 
>> I think I re-produced your problem trying to set up clang for SimpleITK:
>> 
>> http://open.cdash.org/viewBuildError.php?buildid=2112999
>> 
>> I just downloaded the latest XCode, and patched the system:
>> 
>> $ clang --version
>> Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)
>> Target: x86_64-apple-darwin10
>> Thread model: posix
>> 
>> Does ITK work mostly with this version of clang? Is this the version you are
>> using, or some mac-ports like version?
>> 
>> Thanks,
>> Brad
>> 
>> On Mar 13, 2012, at 11:59 AM, Williams, Norman K wrote:
>> 
>> This is one of those 'oh great' moments. I updated my Mac to 10.7.3 and
>> ITK and VTK compiles broke, with this error:
>> 
>> In file included from
>> /scratch/kent/ants/brainsia/build/ITKv4/Modules/ThirdParty/KWSys/src/KWSys/
>> SystemTools.cxx:26:
>> /scratch/kent/ants/brainsia/build/ITKv4-build/Modules/ThirdParty/KWSys/src/
>> itksys/ios/sstream:176:29: error: cannot initialize a
>>      parameter of type 'iostate' (aka 'std::_Ios_Iostate') with an lvalue
>> of type 'int'
>>    this->IStrStream::clear(flags);
>>                            ^~~~~
>> /usr/include/c++/4.2.1/bits/basic_ios.h:133:21: note: passing argument to
>> parameter '__state' here
>>      clear(iostate __state = goodbit);
>> 
>> The problem is that the function signature for ios::clear changed between
>> 10.7.2 and 10.7.3 -- and for some reason the compiler won't do the
>> conversion between int and iostate.
>> 
>> It's vexing to me because I can't imagine ever calling ios::clear() with
>> an argument.  Clear is clear, right?
>> 
>> 
>> 
>> --
>> Kent Williams norman-k-williams at uiowa.edu
>> 
>> 
>> 
>> 
>> 
>> 
>> ________________________________
>> 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.
>> ________________________________
>> _______________________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> 
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.php
>> 
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>> 
>> 
>> ========================================================
>> Bradley Lowekamp
>> Medical Science and Computing for
>> Office of High Performance Computing and Communications
>> National Library of Medicine
>> blowekamp at mail.nih.gov
>> 
>> 
>> 
>> _______________________________________________ Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html Kitware offers ITK
>> Training Courses, for more information visit:
>> http://kitware.com/products/protraining.php Please keep messages on-topic
>> and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link
>> to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>> 
>> ________________________________
>> 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.
>> ________________________________
>> 
>> 
>> ========================================================
>> 
>> Bradley Lowekamp
>> 
>> Medical Science and Computing for
>> 
>> Office of High Performance Computing and Communications
>> 
>> National Library of Medicine
>> 
>> blowekamp at mail.nih.gov
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> 
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.php
>> 
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>> 

========================================================
Bradley Lowekamp  
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20120322/b7d3233e/attachment.htm>


More information about the Insight-developers mailing list