[Insight-users] ITK 3.14.0 Compilation error when building universal library on Mac OSX Leopard

hui Zhang garyhuizhang at gmail.com
Fri Jul 17 18:09:26 EDT 2009


Hi,
I just want to report that ITK 3.14.0 fails to compile when set up to be
built as a universal binary (i386;x86_64;ppc;ppc64) on Mac OSX Leopard
10.5.7 with gcc version 4.0.1.  The compilation will succeed if only i386
and x86_64 are chosen.  The error message, attached below, points to an
error in vnl_math.h.  It seems that emmintrin.h is being incorrectly
included even for ppc/ppc64.

Gary

In file included from
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.cxx:8:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:51:46:
error: emmintrin.h: No such file or directory
In file included from
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.cxx:8:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:51:46:
error: emmintrin.h: No such file or directory
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_rnd_halfinttoeven(float)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:193:
error: ‘_mm_set_ss’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:193:
error: ‘_mm_cvtss_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_rnd_halfinttoeven(double)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:200:
error: ‘_mm_set_sd’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:200:
error: ‘_mm_cvtsd_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_floor(float)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:359:
error: ‘_mm_set_ss’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:359:
error: ‘_mm_cvtss_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_floor(double)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:366:
error: ‘_mm_set_sd’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:366:
error: ‘_mm_cvtsd_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_ceil(float)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:444:
error: ‘_mm_set_ss’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:444:
error: ‘_mm_cvtss_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_ceil(double)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:451:
error: ‘_mm_set_sd’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:451:
error: ‘_mm_cvtsd_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_rnd_halfinttoeven(float)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:193:
error: ‘_mm_set_ss’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:193:
error: ‘_mm_cvtss_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_rnd_halfinttoeven(double)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:200:
error: ‘_mm_set_sd’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:200:
error: ‘_mm_cvtsd_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_floor(float)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:359:
error: ‘_mm_set_ss’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:359:
error: ‘_mm_cvtss_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_floor(double)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:366:
error: ‘_mm_set_sd’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:366:
error: ‘_mm_cvtsd_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_ceil(float)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:444:
error: ‘_mm_set_ss’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:444:
error: ‘_mm_cvtss_si32’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:
In function ‘int vnl_math_ceil(double)’:
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:451:
error: ‘_mm_set_sd’ was not declared in this scope
/Users/huiz/unix/tools/ITK/src/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:451:
error: ‘_mm_cvtsd_si32’ was not declared in this scope
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090717/f75fe149/attachment.htm>


More information about the Insight-users mailing list