• How to do 32-bit build in AMD64 chroot -- problem with SSE instructions

    From Steven Robbins@21:1/5 to All on Sat Dec 11 17:12:50 2021
    Copy: debian-devel@lists.debian.org

    Hi,

    I've built the ITK package on my AMD64 machine without trouble, but the 32-bit build is failing with the error below.

    The errors seem to point to using SSE instructions. Is there a recommended set of flags to use when building for x86? I tried "-march=i686" but it gives the same error.

    Below is the first warning and error -- there are several more similar errors.

    Thanks!
    -Steve

    In file included from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkMath.h:32,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkVector.hxx:21,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkVector.h:332,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkPoint.h:23,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkContinuousIndex.h:21,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkImageRegion.h:34,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkImageRegionSplitterBase.h: 21,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/ itkImageRegionSplitterSlowDimension.h:21,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/src/ itkImageRegionSplitterSlowDimension.cxx:19: /home/steve/Packages/insighttoolkit/build-area/InsightToolkit-5.2.1/Modules/ Core/Common/include/itkMathDetail.h: In function ‘itk::int32_t itk::Math::Detail::RoundHalfIntegerToEven_32(double)’: /home/steve/Packages/insighttoolkit/build-area/InsightToolkit-5.2.1/Modules/ Core/Common/include/itkMathDetail.h:151:24: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
    151 | return _mm_cvtsd_si32(_mm_set_sd(x));
    | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    In file included from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkMathDetail.h:37,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkMath.h:32,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkVector.hxx:21,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkVector.h:332,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkPoint.h:23,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkContinuousIndex.h:21,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkImageRegion.h:34,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/itkImageRegionSplitterBase.h: 21,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/include/ itkImageRegionSplitterSlowDimension.h:21,
    from /home/steve/Packages/insighttoolkit/build-area/ InsightToolkit-5.2.1/Modules/Core/Common/src/ itkImageRegionSplitterSlowDimension.cxx:19: /usr/lib/gcc/i686-linux-gnu/11/include/emmintrin.h:867:1: error: inlining failed in call to ‘always_inline’ ‘int _mm_cvtsd_si32(__m128d)’: target
    specific option mismatch

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEy89k8fa3rclNjyokyeVeL63I9LkFAmG1MHIACgkQyeVeL63I 9LmIHBAAl0Jcom0SYAN+ALr4aQ1/bkc8Wrh28pIcfVJFxyxJMnjkvnWCj4k4bujr sDE22oJXqjGjJZAFZQ6bbvfXRcZZyeZ/A2v/+t2vAd8rk7DUeE5Z4Nvsm2gipkPh YzadaTzNY+MFxqABM2D8l+RQv813rxvUhh3MXdkH2oFrfNgJJQOGoeCWYbsH2B0Y Wxu2TxlgQru2oMaRfHRmcN90SlkpatKMqsSgcvTJl8T0+Wdg+pJlu+cZA3tSxYwR NPHUZHKhBWdta3OmLjrexjI5Dfm5WV56ZHyfiGpf3nL2kSR+wWyeMoX4mBk45yC8 BvqLROAyXHeqgyqpF9AopJlgZXa4XMmp4vIAM9yrlhT2aRebxm4eRPK/8do+lcKR BqbmzSysbFIFXrvsNgUFQMycAYBfCYFs3WifL8mB+CzyAxwL4OMngeZ4fAKMqHju YhIJk9OoNpV2o8pyaV5cfyqF1QyaDEZ0rtopeCcVOQtBlU8dc5Tjw5FKM331PMJV 9Dwy86tqvIzBA9H67294w0K66IT8cMmMH1cX7KRUhxt3iqiHaXjz95YCIYOsE3cJ gTd2qdRMUNY0EExVZPFUNBk0yiPmDtqNdm477pHHY30mzbWR1aLADqbahZ1RyY8v hBpDGOb2DyunKhfnmLkTtWp+zHEfZorrkUUYpmSKrqOo/5OL/wY=
    =GiEA
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)