[dpdk-users] Gcc 6.4 failure compile

Harouat, Karim (Nokia - FR/Lannion) karim.harouat at nokia.com
Mon Sep 25 12:42:21 CEST 2017


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 at intel.com>; users at 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 at intel.com]
Sent: Tuesday, September 19, 2017 9:57 AM
To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat at nokia.com>; users at 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 at nokia.com]
> Sent: Tuesday, September 19, 2017 15:31
> To: Li, Xiaoyun <xiaoyun.li at intel.com>; users at 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 at intel.com]
> Sent: Tuesday, September 19, 2017 9:17 AM
> To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat at nokia.com>; 
> users at 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 at nokia.com]
> > Sent: Tuesday, September 19, 2017 14:49
> > To: Li, Xiaoyun <xiaoyun.li at intel.com>; users at 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 at intel.com]
> > Sent: Tuesday, September 19, 2017 3:00 AM
> > To: Harouat, Karim (Nokia - FR/Lannion) <karim.harouat at nokia.com>; 
> > users at 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 at dpdk.org] On Behalf Of Harouat, 
> > > Karim (Nokia - FR/Lannion)
> > > Sent: Monday, September 18, 2017 17:38
> > > To: users at 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.



More information about the users mailing list