DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users]  Gcc 6.4 failure compile
@ 2017-09-18  9:38 Harouat, Karim (Nokia - FR/Lannion)
  2017-09-19  1:00 ` Li, Xiaoyun
  0 siblings, 1 reply; 9+ messages in thread
From: Harouat, Karim (Nokia - FR/Lannion) @ 2017-09-18  9:38 UTC (permalink / raw)
  To: users

Hello

I'm trying to compile DPKD 17.08 (hash 02657b)

I have the following error



dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
/builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in call to always_inline '_mm_blendv_epi8': target specific option mismatch
_mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M)
^~~~~~~~~~~~~~~

Any idea please ?

Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] Gcc 6.4 failure compile
  2017-09-18  9:38 [dpdk-users] Gcc 6.4 failure compile Harouat, Karim (Nokia - FR/Lannion)
@ 2017-09-19  1:00 ` Li, Xiaoyun
  2017-09-19  6:37   ` Harouat, Karim (Nokia - FR/Lannion)
  2017-09-19  6:49   ` Harouat, Karim (Nokia - FR/Lannion)
  0 siblings, 2 replies; 9+ messages in thread
From: Li, Xiaoyun @ 2017-09-19  1:00 UTC (permalink / raw)
  To: Harouat, Karim (Nokia - FR/Lannion), users

Hi
What machine are you using? And what target are you using?
I met this problem before. 
That time, I used cross-compiling for atom, and gcc thinks atom don't support SSE4, but the instructions in your error are SSE4. So there are compilation errors.


Best Regards
Xiaoyun Li



> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Harouat, Karim
> (Nokia - FR/Lannion)
> Sent: Monday, September 18, 2017 17:38
> To: users@dpdk.org
> Subject: [dpdk-users] Gcc 6.4 failure compile
> 
> Hello
> 
> I'm trying to compile DPKD 17.08 (hash 02657b)
> 
> I have the following error
> 
> 
> 
> dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
> /builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-
> gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in call to
> always_inline '_mm_blendv_epi8': target specific option mismatch
> _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M)
> ^~~~~~~~~~~~~~~
> 
> Any idea please ?
> 
> Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] Gcc 6.4 failure compile
  2017-09-19  1:00 ` Li, Xiaoyun
@ 2017-09-19  6:37   ` Harouat, Karim (Nokia - FR/Lannion)
  2017-09-19  6:49   ` Harouat, Karim (Nokia - FR/Lannion)
  1 sibling, 0 replies; 9+ messages in thread
From: Harouat, Karim (Nokia - FR/Lannion) @ 2017-09-19  6:37 UTC (permalink / raw)
  To: Li, Xiaoyun, users

Hi

I try to build the target x86_64-native-linuxapp-gcc on a x86_64 machine with linux.

Best Regards, Cordialement
Karim HAROUAT

-----Original Message-----
From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com] 
Sent: Tuesday, September 19, 2017 3:00 AM
To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; users@dpdk.org
Subject: RE: [dpdk-users] Gcc 6.4 failure compile

Hi
What machine are you using? And what target are you using?
I met this problem before. 
That time, I used cross-compiling for atom, and gcc thinks atom don't support SSE4, but the instructions in your error are SSE4. So there are compilation errors.


Best Regards
Xiaoyun Li



> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Harouat, 
> Karim (Nokia - FR/Lannion)
> Sent: Monday, September 18, 2017 17:38
> To: users@dpdk.org
> Subject: [dpdk-users] Gcc 6.4 failure compile
> 
> Hello
> 
> I'm trying to compile DPKD 17.08 (hash 02657b)
> 
> I have the following error
> 
> 
> 
> dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
> /builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-
> gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in call to 
> always_inline '_mm_blendv_epi8': target specific option mismatch
> _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M) 
> ^~~~~~~~~~~~~~~
> 
> Any idea please ?
> 
> Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] Gcc 6.4 failure compile
  2017-09-19  1:00 ` Li, Xiaoyun
  2017-09-19  6:37   ` Harouat, Karim (Nokia - FR/Lannion)
@ 2017-09-19  6:49   ` Harouat, Karim (Nokia - FR/Lannion)
  2017-09-19  7:16     ` Li, Xiaoyun
  1 sibling, 1 reply; 9+ messages in thread
From: Harouat, Karim (Nokia - FR/Lannion) @ 2017-09-19  6:49 UTC (permalink / raw)
  To: Li, Xiaoyun, users

Which configuration flag/var do I have to disable/enable to avoid that please?

Best Regards
Karim HAROUAT

-----Original Message-----
From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com] 
Sent: Tuesday, September 19, 2017 3:00 AM
To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; users@dpdk.org
Subject: RE: [dpdk-users] Gcc 6.4 failure compile

Hi
What machine are you using? And what target are you using?
I met this problem before. 
That time, I used cross-compiling for atom, and gcc thinks atom don't support SSE4, but the instructions in your error are SSE4. So there are compilation errors.


Best Regards
Xiaoyun Li



> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Harouat, Karim
> (Nokia - FR/Lannion)
> Sent: Monday, September 18, 2017 17:38
> To: users@dpdk.org
> Subject: [dpdk-users] Gcc 6.4 failure compile
> 
> Hello
> 
> I'm trying to compile DPKD 17.08 (hash 02657b)
> 
> I have the following error
> 
> 
> 
> dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
> /builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-
> gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in call to
> always_inline '_mm_blendv_epi8': target specific option mismatch
> _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M)
> ^~~~~~~~~~~~~~~
> 
> Any idea please ?
> 
> Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] Gcc 6.4 failure compile
  2017-09-19  6:49   ` Harouat, Karim (Nokia - FR/Lannion)
@ 2017-09-19  7:16     ` Li, Xiaoyun
  2017-09-19  7:31       ` Harouat, Karim (Nokia - FR/Lannion)
  0 siblings, 1 reply; 9+ messages in thread
From: Li, Xiaoyun @ 2017-09-19  7:16 UTC (permalink / raw)
  To: Harouat, Karim (Nokia - FR/Lannion), users

Can you show the results of Flags of your machine? Use "lscpu" or "cat /proc/cpuinfo".
Are there sse4_1 and sse4_2?

> -----Original Message-----
> From: Harouat, Karim (Nokia - FR/Lannion)
> [mailto:karim.harouat@nokia.com]
> Sent: Tuesday, September 19, 2017 14:49
> To: Li, Xiaoyun <xiaoyun.li@intel.com>; users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Which configuration flag/var do I have to disable/enable to avoid that please?
> 
> Best Regards
> Karim HAROUAT
> 
> -----Original Message-----
> From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
> Sent: Tuesday, September 19, 2017 3:00 AM
> To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>;
> users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Hi
> What machine are you using? And what target are you using?
> I met this problem before.
> That time, I used cross-compiling for atom, and gcc thinks atom don't
> support SSE4, but the instructions in your error are SSE4. So there are
> compilation errors.
> 
> 
> Best Regards
> Xiaoyun Li
> 
> 
> 
> > -----Original Message-----
> > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Harouat,
> > Karim (Nokia - FR/Lannion)
> > Sent: Monday, September 18, 2017 17:38
> > To: users@dpdk.org
> > Subject: [dpdk-users] Gcc 6.4 failure compile
> >
> > Hello
> >
> > I'm trying to compile DPKD 17.08 (hash 02657b)
> >
> > I have the following error
> >
> >
> >
> > dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
> > /builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-
> > gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in call to
> > always_inline '_mm_blendv_epi8': target specific option mismatch
> > _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M)
> > ^~~~~~~~~~~~~~~
> >
> > Any idea please ?
> >
> > Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] Gcc 6.4 failure compile
  2017-09-19  7:16     ` Li, Xiaoyun
@ 2017-09-19  7:31       ` Harouat, Karim (Nokia - FR/Lannion)
  2017-09-19  7:56         ` Li, Xiaoyun
  0 siblings, 1 reply; 9+ messages in thread
From: Harouat, Karim (Nokia - FR/Lannion) @ 2017-09-19  7:31 UTC (permalink / raw)
  To: Li, Xiaoyun, users

Aw you got it sse4_1 sse4_2

flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm tpr_shadow vnmi flexpriority ept fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt

It is not for the machine on which  I'm working the binary, how can I make the gcc  to ignore the host cpu flags ?

Best Regards, Cordialement
Karim HAROUAT
Platform (UPHWAPI) software developer 
Mobile Networks, NOKIA
+33256740257

-----Original Message-----
From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com] 
Sent: Tuesday, September 19, 2017 9:17 AM
To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; users@dpdk.org
Subject: RE: [dpdk-users] Gcc 6.4 failure compile

Can you show the results of Flags of your machine? Use "lscpu" or "cat /proc/cpuinfo".
Are there sse4_1 and sse4_2?

> -----Original Message-----
> From: Harouat, Karim (Nokia - FR/Lannion) 
> [mailto:karim.harouat@nokia.com]
> Sent: Tuesday, September 19, 2017 14:49
> To: Li, Xiaoyun <xiaoyun.li@intel.com>; users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Which configuration flag/var do I have to disable/enable to avoid that please?
> 
> Best Regards
> Karim HAROUAT
> 
> -----Original Message-----
> From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
> Sent: Tuesday, September 19, 2017 3:00 AM
> To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; 
> users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Hi
> What machine are you using? And what target are you using?
> I met this problem before.
> That time, I used cross-compiling for atom, and gcc thinks atom don't 
> support SSE4, but the instructions in your error are SSE4. So there 
> are compilation errors.
> 
> 
> Best Regards
> Xiaoyun Li
> 
> 
> 
> > -----Original Message-----
> > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Harouat, 
> > Karim (Nokia - FR/Lannion)
> > Sent: Monday, September 18, 2017 17:38
> > To: users@dpdk.org
> > Subject: [dpdk-users] Gcc 6.4 failure compile
> >
> > Hello
> >
> > I'm trying to compile DPKD 17.08 (hash 02657b)
> >
> > I have the following error
> >
> >
> >
> > dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
> > /builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-
> > gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in call 
> > to always_inline '_mm_blendv_epi8': target specific option mismatch
> > _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M) 
> > ^~~~~~~~~~~~~~~
> >
> > Any idea please ?
> >
> > Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] Gcc 6.4 failure compile
  2017-09-19  7:31       ` Harouat, Karim (Nokia - FR/Lannion)
@ 2017-09-19  7:56         ` Li, Xiaoyun
  2017-09-19  8:03           ` Harouat, Karim (Nokia - FR/Lannion)
  0 siblings, 1 reply; 9+ messages in thread
From: Li, Xiaoyun @ 2017-09-19  7:56 UTC (permalink / raw)
  To: Harouat, Karim (Nokia - FR/Lannion), users

Em.. Not really.
I thought your machine doesn't support sse4. In that way the sse4 instructions cannot be recognized by gcc and would appear compilation errors.

But it seems that your machine supports sse4.
You can try " gcc -march=native -dM -E - </dev/null | grep SSE4_2".
If there is output " #define __SSE4_2__ 1", gcc thinks native machine supports sse4.2. Then I am not sure why there is error.
If not, gcc thinks native machine doesn't support sse4. Then there should be errors.

Anyway, maybe you can try cross-compilation? Such as T= x86_64-hsw-linuxapp-gcc? But remember adds a config file "defconfig_x86_64-xxx-linuxapp-gcc" in config.

> -----Original Message-----
> From: Harouat, Karim (Nokia - FR/Lannion)
> [mailto:karim.harouat@nokia.com]
> Sent: Tuesday, September 19, 2017 15:31
> To: Li, Xiaoyun <xiaoyun.li@intel.com>; users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Aw you got it sse4_1 sse4_2
> 
> flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm
> constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq vmx
> ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer
> aes xsave avx f16c rdrand hypervisor lahf_lm abm tpr_shadow vnmi
> flexpriority ept fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
> xsaveopt
> 
> It is not for the machine on which  I'm working the binary, how can I make
> the gcc  to ignore the host cpu flags ?
> 
> Best Regards, Cordialement
> Karim HAROUAT
> Platform (UPHWAPI) software developer
> Mobile Networks, NOKIA
> +33256740257
> 
> -----Original Message-----
> From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
> Sent: Tuesday, September 19, 2017 9:17 AM
> To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>;
> users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Can you show the results of Flags of your machine? Use "lscpu" or "cat
> /proc/cpuinfo".
> Are there sse4_1 and sse4_2?
> 
> > -----Original Message-----
> > From: Harouat, Karim (Nokia - FR/Lannion)
> > [mailto:karim.harouat@nokia.com]
> > Sent: Tuesday, September 19, 2017 14:49
> > To: Li, Xiaoyun <xiaoyun.li@intel.com>; users@dpdk.org
> > Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> >
> > Which configuration flag/var do I have to disable/enable to avoid that
> please?
> >
> > Best Regards
> > Karim HAROUAT
> >
> > -----Original Message-----
> > From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
> > Sent: Tuesday, September 19, 2017 3:00 AM
> > To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>;
> > users@dpdk.org
> > Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> >
> > Hi
> > What machine are you using? And what target are you using?
> > I met this problem before.
> > That time, I used cross-compiling for atom, and gcc thinks atom don't
> > support SSE4, but the instructions in your error are SSE4. So there
> > are compilation errors.
> >
> >
> > Best Regards
> > Xiaoyun Li
> >
> >
> >
> > > -----Original Message-----
> > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Harouat,
> > > Karim (Nokia - FR/Lannion)
> > > Sent: Monday, September 18, 2017 17:38
> > > To: users@dpdk.org
> > > Subject: [dpdk-users] Gcc 6.4 failure compile
> > >
> > > Hello
> > >
> > > I'm trying to compile DPKD 17.08 (hash 02657b)
> > >
> > > I have the following error
> > >
> > >
> > >
> > > dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
> > > /builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-
> > > gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in call
> > > to always_inline '_mm_blendv_epi8': target specific option mismatch
> > > _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M)
> > > ^~~~~~~~~~~~~~~
> > >
> > > Any idea please ?
> > >
> > > Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] Gcc 6.4 failure compile
  2017-09-19  7:56         ` Li, Xiaoyun
@ 2017-09-19  8:03           ` Harouat, Karim (Nokia - FR/Lannion)
  2017-09-25 10:42             ` Harouat, Karim (Nokia - FR/Lannion)
  0 siblings, 1 reply; 9+ messages in thread
From: Harouat, Karim (Nokia - FR/Lannion) @ 2017-09-19  8:03 UTC (permalink / raw)
  To: Li, Xiaoyun, users

Thanks a lot for your answer!

My machine supports it properly :-(

gcc -march=native -dM -E - </dev/null | grep SSE4_2
#define __SSE4_2__ 1

That's I'm trying to do a cross compilation. I created a new file defconfig_x86_64-mine, which included '#include "defconfig_x86_64-native-linuxapp-gcc"'
The CONFIG_RTE_MACHINE=core2


Best Regards, Cordialement
Karim HAROUAT

-----Original Message-----
From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com] 
Sent: Tuesday, September 19, 2017 9:57 AM
To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; users@dpdk.org
Subject: RE: [dpdk-users] Gcc 6.4 failure compile

Em.. Not really.
I thought your machine doesn't support sse4. In that way the sse4 instructions cannot be recognized by gcc and would appear compilation errors.

But it seems that your machine supports sse4.
You can try " gcc -march=native -dM -E - </dev/null | grep SSE4_2".
If there is output " #define __SSE4_2__ 1", gcc thinks native machine supports sse4.2. Then I am not sure why there is error.
If not, gcc thinks native machine doesn't support sse4. Then there should be errors.

Anyway, maybe you can try cross-compilation? Such as T= x86_64-hsw-linuxapp-gcc? But remember adds a config file "defconfig_x86_64-xxx-linuxapp-gcc" in config.

> -----Original Message-----
> From: Harouat, Karim (Nokia - FR/Lannion) 
> [mailto:karim.harouat@nokia.com]
> Sent: Tuesday, September 19, 2017 15:31
> To: Li, Xiaoyun <xiaoyun.li@intel.com>; users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Aw you got it sse4_1 sse4_2
> 
> flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb 
> rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni 
> pclmulqdq vmx
> ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt 
> tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 
> tpr_shadow vnmi flexpriority ept fsgsbase tsc_adjust bmi1 avx2 smep 
> bmi2 erms invpcid xsaveopt
> 
> It is not for the machine on which  I'm working the binary, how can I 
> make the gcc  to ignore the host cpu flags ?
> 
> Best Regards, Cordialement
> Karim HAROUAT
> Platform (UPHWAPI) software developer
> Mobile Networks, NOKIA
> +33256740257
> 
> -----Original Message-----
> From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
> Sent: Tuesday, September 19, 2017 9:17 AM
> To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; 
> users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Can you show the results of Flags of your machine? Use "lscpu" or "cat 
> /proc/cpuinfo".
> Are there sse4_1 and sse4_2?
> 
> > -----Original Message-----
> > From: Harouat, Karim (Nokia - FR/Lannion) 
> > [mailto:karim.harouat@nokia.com]
> > Sent: Tuesday, September 19, 2017 14:49
> > To: Li, Xiaoyun <xiaoyun.li@intel.com>; users@dpdk.org
> > Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> >
> > Which configuration flag/var do I have to disable/enable to avoid 
> > that
> please?
> >
> > Best Regards
> > Karim HAROUAT
> >
> > -----Original Message-----
> > From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
> > Sent: Tuesday, September 19, 2017 3:00 AM
> > To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; 
> > users@dpdk.org
> > Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> >
> > Hi
> > What machine are you using? And what target are you using?
> > I met this problem before.
> > That time, I used cross-compiling for atom, and gcc thinks atom 
> > don't support SSE4, but the instructions in your error are SSE4. So 
> > there are compilation errors.
> >
> >
> > Best Regards
> > Xiaoyun Li
> >
> >
> >
> > > -----Original Message-----
> > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Harouat, 
> > > Karim (Nokia - FR/Lannion)
> > > Sent: Monday, September 18, 2017 17:38
> > > To: users@dpdk.org
> > > Subject: [dpdk-users] Gcc 6.4 failure compile
> > >
> > > Hello
> > >
> > > I'm trying to compile DPKD 17.08 (hash 02657b)
> > >
> > > I have the following error
> > >
> > >
> > >
> > > dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
> > > /builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-
> > > gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in 
> > > call to always_inline '_mm_blendv_epi8': target specific option 
> > > mismatch
> > > _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M) 
> > > ^~~~~~~~~~~~~~~
> > >
> > > Any idea please ?
> > >
> > > Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-users] Gcc 6.4 failure compile
  2017-09-19  8:03           ` Harouat, Karim (Nokia - FR/Lannion)
@ 2017-09-25 10:42             ` Harouat, Karim (Nokia - FR/Lannion)
  0 siblings, 0 replies; 9+ messages in thread
From: Harouat, Karim (Nokia - FR/Lannion) @ 2017-09-25 10:42 UTC (permalink / raw)
  To: users

Hi
I fixed my issue by changing the CONFIG_RTE_MACHINE value
Core 2 was not proper to my case.



Best Regards, 
Karim H

-----Original Message-----
From: Harouat, Karim (Nokia - FR/Lannion) 
Sent: Tuesday, September 19, 2017 10:03 AM
To: 'Li, Xiaoyun' <xiaoyun.li@intel.com>; users@dpdk.org
Subject: RE: [dpdk-users] Gcc 6.4 failure compile

Thanks a lot for your answer!

My machine supports it properly :-(

gcc -march=native -dM -E - </dev/null | grep SSE4_2 #define __SSE4_2__ 1

That's I'm trying to do a cross compilation. I created a new file defconfig_x86_64-mine, which included '#include "defconfig_x86_64-native-linuxapp-gcc"'
The CONFIG_RTE_MACHINE=core2


Best Regards, Cordialement
Karim HAROUAT

-----Original Message-----
From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
Sent: Tuesday, September 19, 2017 9:57 AM
To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; users@dpdk.org
Subject: RE: [dpdk-users] Gcc 6.4 failure compile

Em.. Not really.
I thought your machine doesn't support sse4. In that way the sse4 instructions cannot be recognized by gcc and would appear compilation errors.

But it seems that your machine supports sse4.
You can try " gcc -march=native -dM -E - </dev/null | grep SSE4_2".
If there is output " #define __SSE4_2__ 1", gcc thinks native machine supports sse4.2. Then I am not sure why there is error.
If not, gcc thinks native machine doesn't support sse4. Then there should be errors.

Anyway, maybe you can try cross-compilation? Such as T= x86_64-hsw-linuxapp-gcc? But remember adds a config file "defconfig_x86_64-xxx-linuxapp-gcc" in config.

> -----Original Message-----
> From: Harouat, Karim (Nokia - FR/Lannion) 
> [mailto:karim.harouat@nokia.com]
> Sent: Tuesday, September 19, 2017 15:31
> To: Li, Xiaoyun <xiaoyun.li@intel.com>; users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Aw you got it sse4_1 sse4_2
> 
> flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb 
> rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni 
> pclmulqdq vmx
> ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt 
> tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 
> tpr_shadow vnmi flexpriority ept fsgsbase tsc_adjust bmi1 avx2 smep
> bmi2 erms invpcid xsaveopt
> 
> It is not for the machine on which  I'm working the binary, how can I 
> make the gcc  to ignore the host cpu flags ?
> 
> Best Regards, Cordialement
> Karim HAROUAT
> Platform (UPHWAPI) software developer
> Mobile Networks, NOKIA
> +33256740257
> 
> -----Original Message-----
> From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
> Sent: Tuesday, September 19, 2017 9:17 AM
> To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; 
> users@dpdk.org
> Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> 
> Can you show the results of Flags of your machine? Use "lscpu" or "cat 
> /proc/cpuinfo".
> Are there sse4_1 and sse4_2?
> 
> > -----Original Message-----
> > From: Harouat, Karim (Nokia - FR/Lannion) 
> > [mailto:karim.harouat@nokia.com]
> > Sent: Tuesday, September 19, 2017 14:49
> > To: Li, Xiaoyun <xiaoyun.li@intel.com>; users@dpdk.org
> > Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> >
> > Which configuration flag/var do I have to disable/enable to avoid 
> > that
> please?
> >
> > Best Regards
> > Karim HAROUAT
> >
> > -----Original Message-----
> > From: Li, Xiaoyun [mailto:xiaoyun.li@intel.com]
> > Sent: Tuesday, September 19, 2017 3:00 AM
> > To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat@nokia.com>; 
> > users@dpdk.org
> > Subject: RE: [dpdk-users] Gcc 6.4 failure compile
> >
> > Hi
> > What machine are you using? And what target are you using?
> > I met this problem before.
> > That time, I used cross-compiling for atom, and gcc thinks atom 
> > don't support SSE4, but the instructions in your error are SSE4. So 
> > there are compilation errors.
> >
> >
> > Best Regards
> > Xiaoyun Li
> >
> >
> >
> > > -----Original Message-----
> > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Harouat, 
> > > Karim (Nokia - FR/Lannion)
> > > Sent: Monday, September 18, 2017 17:38
> > > To: users@dpdk.org
> > > Subject: [dpdk-users] Gcc 6.4 failure compile
> > >
> > > Hello
> > >
> > > I'm trying to compile DPKD 17.08 (hash 02657b)
> > >
> > > I have the following error
> > >
> > >
> > >
> > > dpdk/build/lib/librte_acl/acl_run_sse.h: In function 'resolve_priority_sse':
> > > /builds/x86_64-pc-linux-gnu/dpdk/srcdir/lib/gcc/x86_64-pc-linux-
> > > gnu/6.4.1/include/smmintrin.h:179:1: error: inlining failed in 
> > > call to always_inline '_mm_blendv_epi8': target specific option 
> > > mismatch
> > > _mm_blendv_epi8 (__m128i __X, __m128i __Y, __m128i __M) 
> > > ^~~~~~~~~~~~~~~
> > >
> > > Any idea please ?
> > >
> > > Karim H.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-09-25 10:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-18  9:38 [dpdk-users] Gcc 6.4 failure compile Harouat, Karim (Nokia - FR/Lannion)
2017-09-19  1:00 ` Li, Xiaoyun
2017-09-19  6:37   ` Harouat, Karim (Nokia - FR/Lannion)
2017-09-19  6:49   ` Harouat, Karim (Nokia - FR/Lannion)
2017-09-19  7:16     ` Li, Xiaoyun
2017-09-19  7:31       ` Harouat, Karim (Nokia - FR/Lannion)
2017-09-19  7:56         ` Li, Xiaoyun
2017-09-19  8:03           ` Harouat, Karim (Nokia - FR/Lannion)
2017-09-25 10:42             ` Harouat, Karim (Nokia - FR/Lannion)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).