<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello Andriy,</div><div><br></div><div>Did you run cmake, then edit the with GUI to add the "-m32" flag?</div><div><br></div><div>That is just a guess. If you did you you try starting with a clean directory setting you environment variables CFLAGS, and CXXFLAGS to include "-m32". And let us know if the issue is still there. If this is the case it would explain why we did not detect this bug with the nightly dashboard. If you can to know more about how this configuration occurs look at the CMake/CheckSupportForSSERounding.cmake file.</div><br><div><div>On Feb 17, 2011, at 2:31 PM, Andriy Fedorov wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>In short:<br><br>1) is there a set of specific instructions on building ITK4 on 32 bit<br>platform? (I haven't found any, and I have problems compiling it, see<br>below)<br><br>2) are there any 32-bit machines on ITK4 dashboard?<br><br>The long story is below ... All I wanted to do is to test some<br>functionality of 3D Slicer, since we found some issues on 32-bit<br>build.<br><br><br>I am trying to compile current checkout of ITK4 on Ubuntu 10.04 x64 in<br>32-bit mode.<br><br>To do this, I installed gcc-multilib support, and specified -m32 flag<br>for CC and CXX.<br><br>My first attempt to compile resulted in the following error:<br><br>In file included from /home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:42,<br> from /home/andrey/local/src/ITK/Code/Common/itkMath.h:32,<br> from /home/andrey/local/src/ITK/Code/Common/itkIndex.h:23,<br> from /home/andrey/local/src/ITK/Code/Common/itkPath.h:22,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath.h:21,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath2D.h:21,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath2D.cxx:18:<br>/usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/emmintrin.h:32:3: error:<br>#error "SSE2 instruction set not enabled"<br><br>Following some advice from google, I added flags -msse2 and -msse4.<br>This resulted in the following error:<br><br>In file included from /home/andrey/local/src/ITK/Code/Common/itkMath.h:32,<br> from<br>/home/andrey/local/src/ITK/Testing/Code/Common/itkMathTest.cxx:22:<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h: In function<br>itk::int64_t itk::Math::Detail::RoundHalfIntegerToEven_64(double):<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:280: error:<br>_mm_cvtsd_si64 was not declared in this scope<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h: In function<br>itk::int64_t itk::Math::Detail::RoundHalfIntegerToEven_64(float):<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:288: error:<br>_mm_cvtss_si64 was not declared in this scope<br><br>Next I found this post:<br><a href="http://old.nabble.com/Problems-building-itk-3.18-with-review-td28655590.html">http://old.nabble.com/Problems-building-itk-3.18-with-review-td28655590.html</a>,<br>and tried to turn off VNL_CONFIG_ENABLE_SSE2_ROUNDING as suggested by<br>Bradley Lowekamp, still errors (similar errors no matter if I include<br>or exclude -msse2 and -msse4 flags):<br><br>In file included from /home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:42,<br> from /home/andrey/local/src/ITK/Code/Common/itkMath.h:32,<br> from /home/andrey/local/src/ITK/Code/Common/itkIndex.h:23,<br> from /home/andrey/local/src/ITK/Code/Common/itkPath.h:22,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath.h:21,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath2D.h:21,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath2D.cxx:18:<br>/usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/emmintrin.h:32:3: error:<br>#error "SSE2 instruction set not enabled"<br>In file included from /home/andrey/local/src/ITK/Code/Common/itkMath.h:32,<br> from /home/andrey/local/src/ITK/Code/Common/itkIndex.h:23,<br> from /home/andrey/local/src/ITK/Code/Common/itkPath.h:22,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath.h:21,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath2D.h:21,<br> from<br>/home/andrey/local/src/ITK/Code/Common/itkChainCodePath2D.cxx:18:<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h: In function<br>itk::int32_t itk::Math::Detail::RoundHalfIntegerToEven_32(double):<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:176: error:<br>_mm_set_sd was not declared in this scope<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:176: error:<br>_mm_cvtsd_si32 was not declared in this scope<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h: In function<br>itk::int32_t itk::Math::Detail::RoundHalfIntegerToEven_32(float):<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:184: error:<br>_mm_set_ss was not declared in this scope<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:184: error:<br>_mm_cvtss_si32 was not declared in this scope<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h: In function<br>itk::int64_t itk::Math::Detail::RoundHalfIntegerToEven_64(double):<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:280: error:<br>_mm_set_sd was not declared in this scope<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:280: error:<br>_mm_cvtsd_si64 was not declared in this scope<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h: In function<br>itk::int64_t itk::Math::Detail::RoundHalfIntegerToEven_64(float):<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:288: error:<br>_mm_set_ss was not declared in this scope<br>/home/andrey/local/src/ITK/Code/Common/itkMathDetail.h:288: error:<br>_mm_cvtss_si64 was not declared in this scope<br><br><br>In addition to the errors, there is this somewhat bothering warning:<br><br>In file included from /usr/include/string.h:640,<br> from<br>/home/andrey/local/src/ITK/Utilities/gdcm/Source/Common/gdcmTrace.h:27,<br> from<br>/home/andrey/local/src/ITK/Utilities/gdcm/Source/Common/gdcmLegacyMacro.h:23,<br> from<br>/home/andrey/local/src/ITK/Utilities/gdcm/Source/Common/gdcmTypes.h:20,<br> from<br>/home/andrey/local/src/ITK/Utilities/gdcm/Source/Common/gdcmObject.h:18,<br> from<br>/home/andrey/local/src/ITK/Utilities/gdcm/Source/DataStructureAndEncodingDefinition/gdcmFile.h:18,<br> from<br>/home/andrey/local/src/ITK/Utilities/gdcm/Source/MediaStorageAndFileFormat/gdcmPrinter.h:47,<br> from<br>/home/andrey/local/src/ITK/Utilities/gdcm/Source/MediaStorageAndFileFormat/gdcmPrinter.cxx:15:<br>In function void* memcpy(void*, const void*, size_t),<br> inlined from void gdcm::PrintValue(const gdcm::VR::VRType&, const<br>gdcm::VM&, const gdcm::Value&) at<br>/home/andrey/local/src/ITK/Utilities/gdcm/Source/MediaStorageAndFileFormat/gdcmPrinter.cxx:420:<br>/usr/include/bits/string3.h:52: warning: call to void*<br>__builtin___memcpy_chk(void*, const void*, unsigned int, unsigned int)<br>will always overflow destination buffer<br><br>My system information:<br><br>* Ubuntu 10.04<br><br>* 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux<br><br>* gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3<br><br>Once these issues are resolved, I will be happy to contribute results<br>of ctesting on my working build to the ITK4 dashboard.<br><br>thanks<br><br>--<br>Andriy Fedorov, Ph.D.<br><br>Research Fellow<br>Brigham and Women's Hospital<br>Harvard Medical School<br>75 Francis Street<br>Boston, MA 02115 USA<br><a href="mailto:fedorov@bwh.harvard.edu">fedorov@bwh.harvard.edu</a><br>(617) 525-6258 (office)<br>_____________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at<br>http://www.kitware.com/opensource/opensource.html<br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.html<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-users<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">========================================================</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Bradley Lowekamp<span class="Apple-converted-space"> </span><span class="Apple-converted-space"> </span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; ">Lockheed Martin </span></span></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Contractor for</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Office of High Performance Computing and Communications</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">National Library of Medicine<span class="Apple-converted-space"> </span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></span>
</div>
<br></body></html>