With Ubuntu 12.04, clang, WITH_MAGICK on, I've got:
[ 53%] Building CXX object tests/io/readers/CMakeFiles/testMagickReader.dir/testMagickReader.cpp.o
In file included from /home/roussillon/Git/DGtal/tests/io/readers/testMagickReader.cpp:43:
In file included from /home/roussillon/Git/DGtal/src/DGtal/io/boards/Board2D.h:441:
In file included from /home/roussillon/Git/DGtal/src/DGtal/io/Display2DFactory.h:61:
In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/Object.h:616:
In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/Object.ih:34:
In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/Expander.h:47:
In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/DomainAdjacency.h:276:
In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/DomainAdjacency.ih:37:
In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/MetricAdjacency.h:259:
In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/MetricAdjacency.ih:33:
In file included from /usr/include/boost/math/special_functions/binomial.hpp:13:
In file included from /usr/include/boost/math/special_functions/factorials.hpp:13:
In file included from /usr/include/boost/math/special_functions/gamma.hpp:38:
In file included from /usr/include/boost/math/special_functions/lanczos.hpp:1234:
In file included from /usr/include/boost/math/special_functions/detail/lanczos_sse2.hpp:13:
In file included from /usr/include/clang/3.0/include/emmintrin.h:31:
In file included from /usr/include/clang/3.0/include/xmmintrin.h:31:
/usr/include/clang/3.0/include/mmintrin.h:52:40: error: cannot initialize a parameter of type 'attribute((vector_size(2
sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int')
return builtin_ia32_vec_ext_v2si((v2si)m, 0);
^~~
/usr/include/clang/3.0/include/mmintrin.h:70:43: error: cannot initialize a parameter of type 'attribute((vector_size(4
sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short')
return (m64)builtin_ia32_packsswb((v4hi)m1, (v4hi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:76:43: error: cannot initialize a parameter of type '__attribute((vector_size(2
sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int')
return (m64)builtin_ia32_packssdw((v2si)m1, (v2si)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:82:43: error: cannot initialize a parameter of type '__attribute((vector_size(4
sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short')
return (m64)builtin_ia32_packuswb((v4hi)m1, (v4hi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:88:44: error: cannot initialize a parameter of type '__attribute((vector_size(8
sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char')
return (m64)builtin_ia32_punpckhbw((v8qi)m1, (v8qi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:94:44: error: cannot initialize a parameter of type '__attribute((vector_size(4
sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short')
return (m64)builtin_ia32_punpckhwd((v4hi)m1, (v4hi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:100:44: error: cannot initialize a parameter of type '__attribute((vector_size(2
sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int')
return (m64)builtin_ia32_punpckhdq((v2si)m1, (v2si)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:106:44: error: cannot initialize a parameter of type '__attribute((vector_size(8
sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char')
return (m64)builtin_ia32_punpcklbw((v8qi)m1, (v8qi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:112:44: error: cannot initialize a parameter of type '__attribute((vector_size(4
sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short')
return (m64)builtin_ia32_punpcklwd((v4hi)m1, (v4hi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:118:44: error: cannot initialize a parameter of type '__attribute((vector_size(2
sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int')
return (m64)builtin_ia32_punpckldq((v2si)m1, (v2si)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:124:40: error: cannot initialize a parameter of type '__attribute((vector_size(8
sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char')
return (m64)builtin_ia32_paddb((v8qi)m1, (v8qi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:130:40: error: cannot initialize a parameter of type '__attribute((vector_size(4
sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short')
return (m64)builtin_ia32_paddw((v4hi)m1, (v4hi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:136:40: error: cannot initialize a parameter of type '__attribute((vector_size(2
sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int')
return (m64)builtin_ia32_paddd((v2si)m1, (v2si)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:142:41: error: cannot initialize a parameter of type '__attribute((vector_size(8
sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char')
return (m64)builtin_ia32_paddsb((v8qi)m1, (v8qi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:148:41: error: cannot initialize a parameter of type '__attribute((vector_size(4
sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short')
return (m64)builtin_ia32_paddsw((v4hi)m1, (v4hi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:154:42: error: cannot initialize a parameter of type '__attribute((vector_size(8
sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char')
return (m64)builtin_ia32_paddusb((v8qi)m1, (v8qi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:160:42: error: cannot initialize a parameter of type '__attribute((vector_size(4
sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short')
return (m64)builtin_ia32_paddusw((v4hi)m1, (v4hi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:166:40: error: cannot initialize a parameter of type '__attribute((vector_size(8
sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char')
return (m64)builtin_ia32_psubb((v8qi)m1, (v8qi)m2);
^~~~
/usr/include/clang/3.0/include/mmintrin.h:172:40: error: cannot initialize a parameter of type '__attribute((vector_size(4 *
sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short')
return (m64)builtin_ia32_psubw((v4hi)m1, (v4hi)__m2);
^~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
With Ubuntu 12.04, clang, WITH_MAGICK on, I've got:
[ 53%] Building CXX object tests/io/readers/CMakeFiles/testMagickReader.dir/testMagickReader.cpp.o In file included from /home/roussillon/Git/DGtal/tests/io/readers/testMagickReader.cpp:43: In file included from /home/roussillon/Git/DGtal/src/DGtal/io/boards/Board2D.h:441: In file included from /home/roussillon/Git/DGtal/src/DGtal/io/Display2DFactory.h:61: In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/Object.h:616: In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/Object.ih:34: In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/Expander.h:47: In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/DomainAdjacency.h:276: In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/DomainAdjacency.ih:37: In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/MetricAdjacency.h:259: In file included from /home/roussillon/Git/DGtal/src/DGtal/topology/MetricAdjacency.ih:33: In file included from /usr/include/boost/math/special_functions/binomial.hpp:13: In file included from /usr/include/boost/math/special_functions/factorials.hpp:13: In file included from /usr/include/boost/math/special_functions/gamma.hpp:38: In file included from /usr/include/boost/math/special_functions/lanczos.hpp:1234: In file included from /usr/include/boost/math/special_functions/detail/lanczos_sse2.hpp:13: In file included from /usr/include/clang/3.0/include/emmintrin.h:31: In file included from /usr/include/clang/3.0/include/xmmintrin.h:31: /usr/include/clang/3.0/include/mmintrin.h:52:40: error: cannot initialize a parameter of type 'attribute((vector_size(2 sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int') return builtin_ia32_vec_ext_v2si((v2si)m, 0); ^
~~/usr/include/clang/3.0/include/mmintrin.h:70:43: error: cannot initialize a parameter of type 'attribute((vector_size(4 sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short') return (m64)builtin_ia32_packsswb((v4hi)m1, (v4hi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:76:43: error: cannot initialize a parameter of type '__attribute((vector_size(2 sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int') return (m64)builtin_ia32_packssdw((v2si)m1, (v2si)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:82:43: error: cannot initialize a parameter of type '__attribute((vector_size(4 sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short') return (m64)builtin_ia32_packuswb((v4hi)m1, (v4hi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:88:44: error: cannot initialize a parameter of type '__attribute((vector_size(8 sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char') return (m64)builtin_ia32_punpckhbw((v8qi)m1, (v8qi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:94:44: error: cannot initialize a parameter of type '__attribute((vector_size(4 sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short') return (m64)builtin_ia32_punpckhwd((v4hi)m1, (v4hi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:100:44: error: cannot initialize a parameter of type '__attribute((vector_size(2 sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int') return (m64)builtin_ia32_punpckhdq((v2si)m1, (v2si)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:106:44: error: cannot initialize a parameter of type '__attribute((vector_size(8 sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char') return (m64)builtin_ia32_punpcklbw((v8qi)m1, (v8qi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:112:44: error: cannot initialize a parameter of type '__attribute((vector_size(4 sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short') return (m64)builtin_ia32_punpcklwd((v4hi)m1, (v4hi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:118:44: error: cannot initialize a parameter of type '__attribute((vector_size(2 sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int') return (m64)builtin_ia32_punpckldq((v2si)m1, (v2si)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:124:40: error: cannot initialize a parameter of type '__attribute((vector_size(8 sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char') return (m64)builtin_ia32_paddb((v8qi)m1, (v8qi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:130:40: error: cannot initialize a parameter of type '__attribute((vector_size(4 sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short') return (m64)builtin_ia32_paddw((v4hi)m1, (v4hi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:136:40: error: cannot initialize a parameter of type '__attribute((vector_size(2 sizeof(int)))) int' with an rvalue of type 'v2si' (aka 'int') return (m64)builtin_ia32_paddd((v2si)m1, (v2si)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:142:41: error: cannot initialize a parameter of type '__attribute((vector_size(8 sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char') return (m64)builtin_ia32_paddsb((v8qi)m1, (v8qi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:148:41: error: cannot initialize a parameter of type '__attribute((vector_size(4 sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short') return (m64)builtin_ia32_paddsw((v4hi)m1, (v4hi)m2);^
~~~ /usr/include/clang/3.0/include/mmintrin.h:154:42: error: cannot initialize a parameter of type '__attribute((vector_size(8 sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char') return (m64)builtin_ia32_paddusb((v8qi)m1, (v8qi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:160:42: error: cannot initialize a parameter of type '__attribute((vector_size(4 sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short') return (m64)builtin_ia32_paddusw((v4hi)m1, (v4hi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:166:40: error: cannot initialize a parameter of type '__attribute((vector_size(8 sizeof(char)))) char' with an rvalue of type 'v8qi' (aka 'char') return (m64)builtin_ia32_psubb((v8qi)m1, (v8qi)m2); ^~~~ /usr/include/clang/3.0/include/mmintrin.h:172:40: error: cannot initialize a parameter of type '__attribute((vector_size(4 * sizeof(short)))) short' with an rvalue of type 'v4hi' (aka 'short') return (m64)builtin_ia32_psubw((v4hi)m1, (v4hi)__m2); ^~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=]