[Insight-developers] Tcl failure on MacOSX-WrapITK
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Thu Feb 24 15:20:44 EST 2011
Le 24 févr. 11 à 17:42, Brad King a écrit :
> On 02/24/2011 05:50 AM, Gaëtan Lehmann wrote:
>> I still get a lot of error messages in xmmintrin.h, emmintrin.h and
>> mmintrin.h - the errors are at the end of the email.
>>
>> Brad (K), do you know how to fix that problem?
> [snip]
>> /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/mmintrin.h: In
>> function 'void _mm_empty()':
>> /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/mmintrin.h:48:
>> error: '__builtin_ia32_emms' was not declared in this scope
>
> These system headers use __builtin_XYZ functions that are provided
> by the real compiler but not by gccxml's parser. No header actually
> declares them because they are builtin to the native compiler. We
> have patched copies of the headers in gccxml for more recent GCC:
>
> $ ls GCC_XML/Support/GCC/*/mm*
> GCC_XML/Support/GCC/4.0/mmintrin.h
> GCC_XML/Support/GCC/4.1/mmintrin.h
> GCC_XML/Support/GCC/4.2/mmintrin.h
> GCC_XML/Support/GCC/4.3/mmintrin.h
> GCC_XML/Support/GCC/4.4/mmintrin.h
> GCC_XML/Support/GCC/4.5/mmintrin.h
>
> The patched copies comment out or remove the function body of each
> inline function that calls one of these builtin functions. It does
> not affect the results because gccxml does not dump the function
> bodies anyway. For example:
>
> $ diff /usr/lib/gcc/x86_64-linux-gnu/4.4/include/mmintrin.h GCC_XML/
> Support/GCC/4.4/mmintrin.h
> 48,50c48
> < {
> < __builtin_ia32_emms ();
> < }
> ---
>> ;
> 54,56c52
> < {
> < _mm_empty ();
> < }
> ---
>> ;
> ...
>
> You'll have to copy/patch the appropriate headers into the
>
> GCC_XML/Support/GCC/3.4
>
> directory. When you get it working please send me the original
> and modified copies of each header so I can commit to gccxml.
>
Thanks Brad,
I've patched the headers and WrapITK is building on that host.
I'm waiting for the build to complete to be sure that everything works.
I think I have the write access to CableSwig repository – wouldn't it
be simpler to commit the new headers directly?
Thanks,
Gaëtan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110224/8cf1b568/attachment.pgp>
More information about the Insight-developers
mailing list