dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* Unable to build dpdk : #error "SSSE3 instruction set not enabled"
@ 2013-11-29 10:39 Surya Nimmagadda
       [not found] ` <20d8915bacb140d5a7a02e45f0093c3f-RQxQemEAZNxuT0KXWxO802u6+pknBqLbXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Surya Nimmagadda @ 2013-11-29 10:39 UTC (permalink / raw)
  To: dev-VfR2kkLFssw@public.gmane.org

Hi,

I am a beginner with dpdk and trying to follow the instructions in http://www.dpdk.org/doc/quick-start

I am seeing the following error when doing make with 1.5.0r2 or 1.5.1r1

== Build lib/librte_meter
== Build lib/librte_sched
  CC rte_sched.o
In file included from /home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_bitmap.h:77:0,
                 from /home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_sched.c:47:
/usr/lib/gcc/x86_64-linux-gnu/4.6/include/tmmintrin.h:31:3: error: #error "SSSE3 instruction set not enabled"
make[3]: *** [rte_sched.o] Error 1
make[2]: *** [librte_sched] Error 2
make[1]: *** [lib] Error 2
make: *** [all] Error 2

I am running this on a Ubuntu VM (12.04) with gcc version 4.6.3

It built fine on another vm where I have Ubuntun 13.10 with gcc version 4.8.1

Should I upgrade to 4.8.1 here as well (it has become a long process with lot of road blocks) or is there any simple fix? 

The DPDK doc says I just need gcc versions 4.5.x or later.

Thanks,
Surya

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

* Re: Unable to build dpdk : #error "SSSE3 instruction set not enabled"
       [not found] ` <20d8915bacb140d5a7a02e45f0093c3f-RQxQemEAZNxuT0KXWxO802u6+pknBqLbXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
@ 2013-11-29 10:52   ` Marc Sune
       [not found]     ` <52987205.4050507-kpkqNMk1I7M@public.gmane.org>
  2013-12-02 10:13   ` Alexander Belyakov
  1 sibling, 1 reply; 4+ messages in thread
From: Marc Sune @ 2013-11-29 10:52 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

Changing the CPU type emulation to some model that supports SSSE3 solved 
it (e.g. core2duo) should do the trick. I faced the same problem 
sometime ago.

best
marc

On 29/11/13 11:39, Surya Nimmagadda wrote:
> Hi,
>
> I am a beginner with dpdk and trying to follow the instructions in http://www.dpdk.org/doc/quick-start
>
> I am seeing the following error when doing make with 1.5.0r2 or 1.5.1r1
>
> == Build lib/librte_meter
> == Build lib/librte_sched
>    CC rte_sched.o
> In file included from /home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_bitmap.h:77:0,
>                   from /home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_sched.c:47:
> /usr/lib/gcc/x86_64-linux-gnu/4.6/include/tmmintrin.h:31:3: error: #error "SSSE3 instruction set not enabled"
> make[3]: *** [rte_sched.o] Error 1
> make[2]: *** [librte_sched] Error 2
> make[1]: *** [lib] Error 2
> make: *** [all] Error 2
>
> I am running this on a Ubuntu VM (12.04) with gcc version 4.6.3
>
> It built fine on another vm where I have Ubuntun 13.10 with gcc version 4.8.1
>
> Should I upgrade to 4.8.1 here as well (it has become a long process with lot of road blocks) or is there any simple fix?
>
> The DPDK doc says I just need gcc versions 4.5.x or later.
>
> Thanks,
> Surya
>

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

* Re: Unable to build dpdk : #error "SSSE3 instruction set not enabled"
       [not found]     ` <52987205.4050507-kpkqNMk1I7M@public.gmane.org>
@ 2013-11-29 12:31       ` Etai Lev-Ran
  0 siblings, 0 replies; 4+ messages in thread
From: Etai Lev-Ran @ 2013-11-29 12:31 UTC (permalink / raw)
  To: 'Surya Nimmagadda'; +Cc: dev-VfR2kkLFssw

Hi Surya,

SSE3 instructions are not enabled by default. 
To enable, you can either tell gcc your CPU architecture (-march=<arch>) as
suggested
by Marc, or enable just the specific SSE version that's supported by your
CPU (e.g.,
make TOOLCHAIN_CFLAGS="-msse4")

See http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html for a
list of CPU
architectures and instruction flags.

Regards,
Etai

-----Original Message-----
From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Marc Sune
Sent: Friday, November 29, 2013 12:53 PM
To: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [dpdk-dev] Unable to build dpdk : #error "SSSE3 instruction set
not enabled"

Changing the CPU type emulation to some model that supports SSSE3 solved it
(e.g. core2duo) should do the trick. I faced the same problem sometime ago.

best
marc

On 29/11/13 11:39, Surya Nimmagadda wrote:
> Hi,
>
> I am a beginner with dpdk and trying to follow the instructions in 
> http://www.dpdk.org/doc/quick-start
>
> I am seeing the following error when doing make with 1.5.0r2 or 
> 1.5.1r1
>
> == Build lib/librte_meter
> == Build lib/librte_sched
>    CC rte_sched.o
> In file included from
/home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_bitmap.h:77:0,
>                   from
/home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_sched.c:47:
> /usr/lib/gcc/x86_64-linux-gnu/4.6/include/tmmintrin.h:31:3: error: #error
"SSSE3 instruction set not enabled"
> make[3]: *** [rte_sched.o] Error 1
> make[2]: *** [librte_sched] Error 2
> make[1]: *** [lib] Error 2
> make: *** [all] Error 2
>
> I am running this on a Ubuntu VM (12.04) with gcc version 4.6.3
>
> It built fine on another vm where I have Ubuntun 13.10 with gcc 
> version 4.8.1
>
> Should I upgrade to 4.8.1 here as well (it has become a long process with
lot of road blocks) or is there any simple fix?
>
> The DPDK doc says I just need gcc versions 4.5.x or later.
>
> Thanks,
> Surya
>

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

* Re: Unable to build dpdk : #error "SSSE3 instruction set not enabled"
       [not found] ` <20d8915bacb140d5a7a02e45f0093c3f-RQxQemEAZNxuT0KXWxO802u6+pknBqLbXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
  2013-11-29 10:52   ` Marc Sune
@ 2013-12-02 10:13   ` Alexander Belyakov
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Belyakov @ 2013-12-02 10:13 UTC (permalink / raw)
  To: Surya Nimmagadda; +Cc: dev-VfR2kkLFssw@public.gmane.org

Hi,

On Fri, Nov 29, 2013 at 2:39 PM, Surya Nimmagadda <nscsekhar-3r7Miqu9kMnR7s880joybQ@public.gmane.org>wrote:

> I am seeing the following error when doing make with 1.5.0r2 or 1.5.1r1
>
> == Build lib/librte_meter
> == Build lib/librte_sched
>   CC rte_sched.o
> In file included from
> /home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_bitmap.h:77:0,
>                  from
> /home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_sched.c:47:
> /usr/lib/gcc/x86_64-linux-gnu/4.6/include/tmmintrin.h:31:3: error: #error
> "SSSE3 instruction set not enabled"
> make[3]: *** [rte_sched.o] Error 1
> make[2]: *** [librte_sched] Error 2
> make[1]: *** [lib] Error 2
> make: *** [all] Error 2
>
>
adding the following line to your defconfig would also help
"CONFIG_RTE_BITMAP_OPTIMIZATIONS=0"

Regards,
Alexander

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

end of thread, other threads:[~2013-12-02 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-29 10:39 Unable to build dpdk : #error "SSSE3 instruction set not enabled" Surya Nimmagadda
     [not found] ` <20d8915bacb140d5a7a02e45f0093c3f-RQxQemEAZNxuT0KXWxO802u6+pknBqLbXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2013-11-29 10:52   ` Marc Sune
     [not found]     ` <52987205.4050507-kpkqNMk1I7M@public.gmane.org>
2013-11-29 12:31       ` Etai Lev-Ran
2013-12-02 10:13   ` Alexander Belyakov

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).