[Insight-users] Tiger OSX

Zachary Pincus zpincus at stanford.edu
Mon May 23 14:09:20 EDT 2005


Hello folks,

It seems that there have been some isolated and difficult-to-reproduce  
troubles with compiling ITK, on OS X 10.3.x and 10.4, which keep  
cropping up on the insight-users list.

These troubles seem to center around isnan() being either undefined at  
compile time or at link time. This problem may be an issue that should  
be solved in the VCL layer. Specifically, as discussed on apple lists  
here:
http://lists.apple.com/archives/xcode-users/2005/Feb/msg00238.html
and here:
http://lists.apple.com/archives/xcode-users/2005/May/msg00765.html
there are some issues related to getting isnan() properly defined in a  
fully standards-compliant C++ environment.

Perhaps Apple's GCC is sufficiently different than normal GCC that the  
VCL layer isn't doing what it needs in order to:
(a) Get isnan() properly defined (specifically, set the macro  
_GLIBCPP_USE_C99=1 ), and
(b) properly support all of gcc4 (see Lagaffe's issue below.)

Does anyone who knows more about VCL than I have any comments?

Zach Pincus

Department of Biochemistry and Program in Biomedical Informatics
Stanford University School of Medicine

On May 21, 2005, at 2:51 AM, Lagaffe wrote:

> Hello Hans,
> I switch to gcc 4 and I don't have the error with math
> .. isnan ..
> Now the exact error is:
> Users/arg/Documents/Dev/InsightToolkit-2.0.1/Utilities/vxl/vcl:
> building default_target
> Building dependencies. cmake.depends...
> Building object file vcl_deprecated.o...
> In file included from
> /Users/arg/Documents/Dev/InsightToolkit-2.0.1/Utilities/vxl/vcl/ 
> vcl_iosfwd.h:8,
>                  from
> /Users/arg/Documents/Dev/InsightToolkit-2.0.1/Utilities/vxl/vcl/ 
> vcl_iostream.h:28,
>                  from
> /Users/arg/Documents/Dev/InsightToolkit-2.0.1/Utilities/vxl/vcl/ 
> vcl_deprecated.cxx:4:
> /Users/arg/Documents/Dev/InsightToolkit-2.0.1/Utilities/vxl/vcl/ 
> vcl_compiler.h:79:4:
> error: #error "Dunno about this gcc"
> make[7]: *** [vcl_deprecated.o] Error 1
> make[6]: *** [default_target] Error 2
>
> thanks for help
> arnaud
>
> --- Hans Johnson <hans-johnson at psychiatry.uiowa.edu> a
> écrit:
>> Hxsham,
>>
>> I've ben building the latest release with the gcc-4
>> compiler AND all the
>> wrapping sucessfully for a few weeks under Tiger
>> OSX.
>>
>> It seems to work just fine for our lab. If you
>> provide more information
>> about the exact errors you are having, perhaps we
>> can be of help.
>>
>> Hans
>>
>>
>> On May 19, 2005 11:08 AM, Hxsham Fire
>> <hxsham at yahoo.com> wrote:
>>
>>> Hi,
>>> Unfortunately i was not able to get ITK to compile
>> yet
>>> on my G5 with Tiger OSX.  But my laptop that runs
>> MAC
>>> OSX 10.3.8 still compiles ITK correctly.  So I am
>>> thinking that the problem is not with gcc-3.3 but
>>> rather with the mac updates...
>>> Hxsham
>>>
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam?  Yahoo! Mail has the best spam
>> protection around
>>> http://mail.yahoo.com
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>
>>
>>
>> Hans Johnson
>> hans-johnson at uiowa.edu
>>
>>
>
>
> 	
> 	
> 		
> _______________________________________________________________________ 
> _____________
> Le Yahoo! Messenger BETA est arrivé ! : Découvrez les appels audio  
> illlimités et le partage de photos facilité
> Téléchargez cette version sur http://fr.messenger.yahoo.com
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>



More information about the Insight-users mailing list