Registered Member
|
My Eigen code, ran fine on other systems but on this one I get tons of errors (see below). This is intel icpc.
How do I fix it? Thanks /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(105): error: identifier "__builtin_ia32_addss" is undefined return (__m128) __builtin_ia32_addss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(111): error: identifier "__builtin_ia32_subss" is undefined return (__m128) __builtin_ia32_subss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(117): error: identifier "__builtin_ia32_mulss" is undefined return (__m128) __builtin_ia32_mulss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(123): error: identifier "__builtin_ia32_divss" is undefined return (__m128) __builtin_ia32_divss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(129): error: identifier "__builtin_ia32_sqrtss" is undefined return (__m128) __builtin_ia32_sqrtss ((__v4sf)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(135): error: identifier "__builtin_ia32_rcpss" is undefined return (__m128) __builtin_ia32_rcpss ((__v4sf)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(141): error: identifier "__builtin_ia32_rsqrtss" is undefined return (__m128) __builtin_ia32_rsqrtss ((__v4sf)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(147): error: identifier "__builtin_ia32_minss" is undefined return (__m128) __builtin_ia32_minss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(153): error: identifier "__builtin_ia32_maxss" is undefined return (__m128) __builtin_ia32_maxss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(161): error: identifier "__builtin_ia32_addps" is undefined return (__m128) __builtin_ia32_addps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(167): error: identifier "__builtin_ia32_subps" is undefined return (__m128) __builtin_ia32_subps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(173): error: identifier "__builtin_ia32_mulps" is undefined return (__m128) __builtin_ia32_mulps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(179): error: identifier "__builtin_ia32_divps" is undefined return (__m128) __builtin_ia32_divps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(185): error: identifier "__builtin_ia32_sqrtps" is undefined return (__m128) __builtin_ia32_sqrtps ((__v4sf)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(191): error: identifier "__builtin_ia32_rcpps" is undefined return (__m128) __builtin_ia32_rcpps ((__v4sf)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(197): error: identifier "__builtin_ia32_rsqrtps" is undefined return (__m128) __builtin_ia32_rsqrtps ((__v4sf)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(203): error: identifier "__builtin_ia32_minps" is undefined return (__m128) __builtin_ia32_minps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(209): error: identifier "__builtin_ia32_maxps" is undefined return (__m128) __builtin_ia32_maxps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(217): error: identifier "__builtin_ia32_andps" is undefined return __builtin_ia32_andps (__A, __B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(223): error: identifier "__builtin_ia32_andnps" is undefined return __builtin_ia32_andnps (__A, __B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(229): error: identifier "__builtin_ia32_orps" is undefined return __builtin_ia32_orps (__A, __B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(235): error: identifier "__builtin_ia32_xorps" is undefined return __builtin_ia32_xorps (__A, __B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(245): error: identifier "__builtin_ia32_cmpeqss" is undefined return (__m128) __builtin_ia32_cmpeqss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(251): error: identifier "__builtin_ia32_cmpltss" is undefined return (__m128) __builtin_ia32_cmpltss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(257): error: identifier "__builtin_ia32_cmpless" is undefined return (__m128) __builtin_ia32_cmpless ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(265): error: identifier "__builtin_ia32_cmpltss" is undefined __builtin_ia32_cmpltss ((__v4sf) __B, ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(263): error: identifier "__builtin_ia32_movss" is undefined return (__m128) __builtin_ia32_movss ((__v4sf) __A, ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(275): error: identifier "__builtin_ia32_cmpless" is undefined __builtin_ia32_cmpless ((__v4sf) __B, ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(273): error: identifier "__builtin_ia32_movss" is undefined return (__m128) __builtin_ia32_movss ((__v4sf) __A, ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(283): error: identifier "__builtin_ia32_cmpneqss" is undefined return (__m128) __builtin_ia32_cmpneqss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(289): error: identifier "__builtin_ia32_cmpnltss" is undefined return (__m128) __builtin_ia32_cmpnltss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(295): error: identifier "__builtin_ia32_cmpnless" is undefined return (__m128) __builtin_ia32_cmpnless ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(303): error: identifier "__builtin_ia32_cmpnltss" is undefined __builtin_ia32_cmpnltss ((__v4sf) __B, ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(301): error: identifier "__builtin_ia32_movss" is undefined return (__m128) __builtin_ia32_movss ((__v4sf) __A, ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(313): error: identifier "__builtin_ia32_cmpnless" is undefined __builtin_ia32_cmpnless ((__v4sf) __B, ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(311): error: identifier "__builtin_ia32_movss" is undefined return (__m128) __builtin_ia32_movss ((__v4sf) __A, ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(321): error: identifier "__builtin_ia32_cmpordss" is undefined return (__m128) __builtin_ia32_cmpordss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(327): error: identifier "__builtin_ia32_cmpunordss" is undefined return (__m128) __builtin_ia32_cmpunordss ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(337): error: identifier "__builtin_ia32_cmpeqps" is undefined return (__m128) __builtin_ia32_cmpeqps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(343): error: identifier "__builtin_ia32_cmpltps" is undefined return (__m128) __builtin_ia32_cmpltps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(349): error: identifier "__builtin_ia32_cmpleps" is undefined return (__m128) __builtin_ia32_cmpleps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(355): error: identifier "__builtin_ia32_cmpgtps" is undefined return (__m128) __builtin_ia32_cmpgtps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(361): error: identifier "__builtin_ia32_cmpgeps" is undefined return (__m128) __builtin_ia32_cmpgeps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(367): error: identifier "__builtin_ia32_cmpneqps" is undefined return (__m128) __builtin_ia32_cmpneqps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(373): error: identifier "__builtin_ia32_cmpnltps" is undefined return (__m128) __builtin_ia32_cmpnltps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(379): error: identifier "__builtin_ia32_cmpnleps" is undefined return (__m128) __builtin_ia32_cmpnleps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(385): error: identifier "__builtin_ia32_cmpngtps" is undefined return (__m128) __builtin_ia32_cmpngtps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(391): error: identifier "__builtin_ia32_cmpngeps" is undefined return (__m128) __builtin_ia32_cmpngeps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(397): error: identifier "__builtin_ia32_cmpordps" is undefined return (__m128) __builtin_ia32_cmpordps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(403): error: identifier "__builtin_ia32_cmpunordps" is undefined return (__m128) __builtin_ia32_cmpunordps ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(412): error: identifier "__builtin_ia32_comieq" is undefined return __builtin_ia32_comieq ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(418): error: identifier "__builtin_ia32_comilt" is undefined return __builtin_ia32_comilt ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(424): error: identifier "__builtin_ia32_comile" is undefined return __builtin_ia32_comile ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(430): error: identifier "__builtin_ia32_comigt" is undefined return __builtin_ia32_comigt ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(436): error: identifier "__builtin_ia32_comige" is undefined return __builtin_ia32_comige ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(442): error: identifier "__builtin_ia32_comineq" is undefined return __builtin_ia32_comineq ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(448): error: identifier "__builtin_ia32_ucomieq" is undefined return __builtin_ia32_ucomieq ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(454): error: identifier "__builtin_ia32_ucomilt" is undefined return __builtin_ia32_ucomilt ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(460): error: identifier "__builtin_ia32_ucomile" is undefined return __builtin_ia32_ucomile ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(466): error: identifier "__builtin_ia32_ucomigt" is undefined return __builtin_ia32_ucomigt ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(472): error: identifier "__builtin_ia32_ucomige" is undefined return __builtin_ia32_ucomige ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(478): error: identifier "__builtin_ia32_ucomineq" is undefined return __builtin_ia32_ucomineq ((__v4sf)__A, (__v4sf)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(486): error: identifier "__builtin_ia32_cvtss2si" is undefined return __builtin_ia32_cvtss2si ((__v4sf) __A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(503): error: identifier "__builtin_ia32_cvtss2si64" is undefined return __builtin_ia32_cvtss2si64 ((__v4sf) __A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(510): error: identifier "__builtin_ia32_cvtss2si64" is undefined return __builtin_ia32_cvtss2si64 ((__v4sf) __A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(519): error: identifier "__builtin_ia32_cvtps2pi" is undefined return (__m64) __builtin_ia32_cvtps2pi ((__v4sf) __A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(532): error: identifier "__builtin_ia32_cvttss2si" is undefined return __builtin_ia32_cvttss2si ((__v4sf) __A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(548): error: identifier "__builtin_ia32_cvttss2si64" is undefined return __builtin_ia32_cvttss2si64 ((__v4sf) __A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(555): error: identifier "__builtin_ia32_cvttss2si64" is undefined return __builtin_ia32_cvttss2si64 ((__v4sf) __A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(564): error: identifier "__builtin_ia32_cvttps2pi" is undefined return (__m64) __builtin_ia32_cvttps2pi ((__v4sf) __A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(577): error: identifier "__builtin_ia32_cvtsi2ss" is undefined return (__m128) __builtin_ia32_cvtsi2ss ((__v4sf) __A, __B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(593): error: identifier "__builtin_ia32_cvtsi642ss" is undefined return (__m128) __builtin_ia32_cvtsi642ss ((__v4sf) __A, __B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(600): error: identifier "__builtin_ia32_cvtsi642ss" is undefined return (__m128) __builtin_ia32_cvtsi642ss ((__v4sf) __A, __B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(609): error: identifier "__v2si" is undefined return (__m128) __builtin_ia32_cvtpi2ps ((__v4sf) __A, (__v2si)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(609): error: expected a ")" return (__m128) __builtin_ia32_cvtpi2ps ((__v4sf) __A, (__v2si)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(609): error: identifier "__builtin_ia32_cvtpi2ps" is undefined return (__m128) __builtin_ia32_cvtpi2ps ((__v4sf) __A, (__v2si)__B); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(622): error: identifier "__v4hi" is undefined __v4hi __sign; ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(623): error: identifier "__v2si" is undefined __v2si __hisi, __losi; ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(629): error: identifier "__v4hi" is undefined __sign = __builtin_ia32_pcmpgtw ((__v4hi)0LL, (__v4hi)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(629): error: expected a ")" __sign = __builtin_ia32_pcmpgtw ((__v4hi)0LL, (__v4hi)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(629): error: identifier "__builtin_ia32_pcmpgtw" is undefined __sign = __builtin_ia32_pcmpgtw ((__v4hi)0LL, (__v4hi)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(632): error: identifier "__v2si" is undefined __hisi = (__v2si) __builtin_ia32_punpckhwd ((__v4hi)__A, __sign); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(632): error: expected a ";" __hisi = (__v2si) __builtin_ia32_punpckhwd ((__v4hi)__A, __sign); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(633): error: expected a ";" __losi = (__v2si) __builtin_ia32_punpcklwd ((__v4hi)__A, __sign); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(637): error: identifier "__builtin_ia32_cvtpi2ps" is undefined __r = __builtin_ia32_cvtpi2ps (__r, __hisi); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(638): error: identifier "__builtin_ia32_movlhps" is undefined __r = __builtin_ia32_movlhps (__r, __r); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(648): error: identifier "__v2si" is undefined __v2si __hisi, __losi; ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(652): error: identifier "__v2si" is undefined __hisi = (__v2si) __builtin_ia32_punpckhwd ((__v4hi)__A, (__v4hi)0LL); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(652): error: expected a ";" __hisi = (__v2si) __builtin_ia32_punpckhwd ((__v4hi)__A, (__v4hi)0LL); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(653): error: expected a ";" __losi = (__v2si) __builtin_ia32_punpcklwd ((__v4hi)__A, (__v4hi)0LL); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(657): error: identifier "__builtin_ia32_cvtpi2ps" is undefined __r = __builtin_ia32_cvtpi2ps (__r, __hisi); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(658): error: identifier "__builtin_ia32_movlhps" is undefined __r = __builtin_ia32_movlhps (__r, __r); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(668): error: identifier "__v8qi" is undefined __v8qi __sign; ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(673): error: identifier "__v8qi" is undefined __sign = __builtin_ia32_pcmpgtb ((__v8qi)0LL, (__v8qi)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(673): error: expected a ")" __sign = __builtin_ia32_pcmpgtb ((__v8qi)0LL, (__v8qi)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(673): error: identifier "__builtin_ia32_pcmpgtb" is undefined __sign = __builtin_ia32_pcmpgtb ((__v8qi)0LL, (__v8qi)__A); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(676): error: expected a ")" __A = (__m64) __builtin_ia32_punpcklbw ((__v8qi)__A, __sign); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(676): error: identifier "__builtin_ia32_punpcklbw" is undefined __A = (__m64) __builtin_ia32_punpcklbw ((__v8qi)__A, __sign); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(685): error: identifier "__v8qi" is undefined __A = (__m64) __builtin_ia32_punpcklbw ((__v8qi)__A, (__v8qi)0LL); ^ /usr/lib64/gcc/x86_64-suse-linux/4.3/include/xmmintrin.h(685): error: expected a ")" __A = (__m64) __builtin_ia32_punpcklbw ((__v8qi)__A, (__v8qi)0LL); |
Registered Member
|
icpc has its own version of xmmintrin.h but you are somehow including the gcc version. I guess you should somehow change the order or the include paths so it searches the icc include directory first.
Edit: just add iccs include directory with the "-I <directory>" option I guess. |
Registered Member
|
Edit:
Thanks, right on. It worked had to include
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora