[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Pavey, Nicholas
I don?t install in the default path. I do something like this:


  export RTE_SDK=/dpdk-16.04
  export DESTDIR=/install"
  export RTE_TARGET=x86_64-native-linuxapp-gcc

  make clean install

That normally works for me on an Ubuntu 14.04 based machine.

Nick


From: David Aldrich 
Date: Thursday, November 17, 2016 at 12:02 PM
To: "Wiles, Keith" 
Cc: "Pavey, Nicholas" , Thomas Monjalon , "users at dpdk.org" 
Subject: RE: [dpdk-users] Problem building DPDK libraries

You are all very helpful. Thank you.

I'm afraid 'make install' isn't working:

# make install
make[1]: Nothing to be done for 'pre_install'.
== Installing /usr/local/
cp: cannot stat 'build/lib/*': No such file or directory
/root/dpdk-2.2.0/mk/rte.sdkinstall.mk:116: recipe for target 'install-runtime' 
failed
make[3]: *** [install-runtime] Error 1

David

-Original Message-
From: Wiles, Keith [mailto:keith.wi...@intel.com]
Sent: 17 November 2016 17:00
To: David Aldrich mailto:David.Aldrich at 
EMEA.NEC.COM>>
Cc: Pavey, Nicholas mailto:npavey at akamai.com>>; Thomas 
Monjalon
mailto:thomas.monjalon at 6wind.com>>; users at 
dpdk.org
Subject: Re: [dpdk-users] Problem building DPDK libraries
> On Nov 17, 2016, at 10:56 AM, David Aldrich
mailto:David.Aldrich at EMEA.NEC.COM>> wrote:
>
> Thanks.
>
> Do I need to do ?make install? or is ?make? sufficient?
I do not really install DPDK, but use it from the source tree. If you want to 
install
it then look at the docs, it talks about install the binaries. The install is 
handy
with the T= option only to make sure you build the correct version and ignore
the warning at the end.
>
> David
>
> From: Pavey, Nicholas [mailto:npavey at akamai.com]
> Sent: 17 November 2016 16:55
> To: David Aldrich mailto:David.Aldrich at 
> EMEA.NEC.COM>>; Wiles, Keith
> mailto:keith.wiles at intel.com>>
> Cc: Thomas Monjalon mailto:thomas.monjalon at 
> 6wind.com>>; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
>
> Yes, I?ve found that ?j causes problems too.
>
> I believe I?ve used both the T= and the environment variable version
without problems, as long as :
>
> ?You don?t use parallel make (-j)
> ?You completely remove the target directory before building (this has 
> the
same name as ?T?)
> o   I don?t recall exactly the problem this addressed, but I did find that 
> doing a
completely clean build is sometimes necessary.
>
> Thanks,
>
>
> Nick
>
>
> From: David Aldrich mailto:David.Aldrich at 
> EMEA.NEC.COM>>
> Date: Thursday, November 17, 2016 at 11:47 AM
> To: David Aldrich mailto:David.Aldrich at 
> EMEA.NEC.COM>>, "Wiles, Keith"
> mailto:keith.wiles at intel.com>>
> Cc: Thomas Monjalon mailto:thomas.monjalon at 
> 6wind.com>>, "users at dpdk.org"
> mailto:users at dpdk.org>>
> Subject: Re: [dpdk-users] Problem building DPDK libraries
>
> Hi
>
> I find that:
>
>   make
>
> succeeds.
>
> But I've been advised to run:
>
>   make -j T=x86_64-native-linuxapp-gcc install
>
> I think '-j' was causing the compiler problems, so I can drop that.
>
> Do I need the 'T=' part?
>
> How would I do:
>
>   make install
>
> ? That doesn't work currently for me.
>
> David
>
> -Original Message-
> From: David Aldrich
> Sent: 17 November 2016 16:29
> To: 'David Aldrich' mailto:David.Aldrich at 
> emea.nec.com>>; Wiles, Keith
> mailto:keith.wiles at intel.com>>
> Cc: Thomas Monjalon mailto:thomas.monjalon at 
> 6wind.com>>; users at dpdk.org
> Subject: RE: [dpdk-users] Problem building DPDK libraries The
> allocation for /tmp is 7.9G, which is almost entirely unused.
> David
> > -Original Message-
> > From: users [mailto:users-bounces at dpdk.org] On Behalf Of David
> > Aldrich
> > Sent: 17 November 2016 16:25
> > To: Wiles, Keith mailto:keith.wiles at intel.com>>
> > Cc: Thomas Monjalon mailto:thomas.monjalon at 
> > 6wind.com>>; users at dpdk.org
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> >
> > Hi
> >
> > I'm using:
> >
> > # gcc --version
> > gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
> >
> > I'll consider the tmp space.
> >
> > Thanks
> >
> > David
> >
> > > -Original Message-
> > > From: Wiles, Keith [mailto:keith.wiles at intel.com]
> > > Sent: 17 November 2016 16:10
> > > To: David Aldrich mailto:David.Aldrich at 
> > > EMEA.NEC.COM>>
> > > Cc: Thomas Monjalon mailto:thomas.monjalon 
> > > at 6wind.com>>; users at dpdk.org
> > > Subject: Re: [dpdk-users] Problem building DPDK libraries
> > >
> > >
> > > > On Nov 17, 2016, at 10:05 AM, David Aldrich
> > > mailto:David.Aldrich at EMEA.NEC.COM>> 
> > > wrote:
> > > >
> > > > Thanks, I thought I had installed the kernel headers, but I had
> > > > done it
> > > incorrectly.  Now fixed.
> > > >
> > > > But make is still failing:
> > > >
> > > >  CC 

[dpdk-users] DPDK Linux kernel version requirement

2016-11-17 Thread Wiles, Keith

> On Nov 17, 2016, at 12:27 PM, James Huang  wrote:
> 
> Hi,
> 
> Nice to join DPDK community.
> 
> read from DPDK system requirements for Linux
> (http://dpdk.org/doc/guides/linux_gsg/sys_reqs.html)
> 
>  Kernel version >= 2.6.34
> 
> I'd like to know if there is any reason to block DPDK build and run on
> older kernel version, i.e. 2.6.32, as carried on CentOS 6. where
> gcc=4.4.
> 
> Could we just keep our CentOS 6 64bit x86_64 OS and continuing running
> 32bit applications with DPDK injected.
> 
> or, there are good reasons *must* upgrade to CentOS 7, where
> kernel=3.10.0, gcc=4.8, and re-build applications to 64bit as well?

The only issues I can think of are no huge page support and the igb_uio or 
kernel components may not build. Having no huge page support can be a 
performance hit, but you should use ?no-huge option. I know some people have it 
building on older kernels, but it has been many revs back.

> 
> Thanks a lot!
> 
> 
> James

Regards,
Keith



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Thomas Monjalon
2016-11-17 17:23, David Aldrich:
> # make install T=x86_64-native-linuxapp-gcc install
> Installation cannot run with T defined and DESTDIR undefined

Extract of "make help":
install T=   configure, build and install a target in DESTDIR
install  install optionally staged in DESTDIR

So "install T=" is equivalent to
make config
make
make install
But install cannot be done without DESTDIR.


[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Thomas Monjalon
2016-11-17 17:02, David Aldrich:
> You are all very helpful. Thank you.
> 
> I'm afraid 'make install' isn't working:
> 
> # make install
> make[1]: Nothing to be done for 'pre_install'.
> == Installing /usr/local/
> cp: cannot stat 'build/lib/*': No such file or directory
> /root/dpdk-2.2.0/mk/rte.sdkinstall.mk:116: recipe for target 
> 'install-runtime' failed
> make[3]: *** [install-runtime] Error 1

The canonical commands are:

make config T=x86_64-native-linuxapp-gcc
make -j3
make install DESTDIR=myinstall

You can change build/.config if needed.
The install step is optional.

There is also
make help



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread David Aldrich
I see:

# make install T=x86_64-native-linuxapp-gcc install
Installation cannot run with T defined and DESTDIR undefined

David


> -Original Message-
> From: Wiles, Keith [mailto:keith.wiles at intel.com]
> Sent: 17 November 2016 17:16
> To: David Aldrich 
> Cc: Pavey, Nicholas ; Thomas Monjalon
> ; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
> 
> 
> > On Nov 17, 2016, at 11:02 AM, David Aldrich
>  wrote:
> >
> > You are all very helpful. Thank you.
> >
> > I'm afraid 'make install' isn't working:
> 
> I only use ?make install T=${RTE_TARGET} -j? command line, but you can remove
> the -j.
> 
> >
> > # make install
> > make[1]: Nothing to be done for 'pre_install'.
> > == Installing /usr/local/
> > cp: cannot stat 'build/lib/*': No such file or directory
> > /root/dpdk-2.2.0/mk/rte.sdkinstall.mk:116: recipe for target
> > 'install-runtime' failed
> > make[3]: *** [install-runtime] Error 1
> >
> > David
> >
> >> -Original Message-
> >> From: Wiles, Keith [mailto:keith.wiles at intel.com]
> >> Sent: 17 November 2016 17:00
> >> To: David Aldrich 
> >> Cc: Pavey, Nicholas ; Thomas Monjalon
> >> ; users at dpdk.org
> >> Subject: Re: [dpdk-users] Problem building DPDK libraries
> >>
> >>
> >>> On Nov 17, 2016, at 10:56 AM, David Aldrich
> >>  wrote:
> >>>
> >>> Thanks.
> >>>
> >>> Do I need to do ?make install? or is ?make? sufficient?
> >>
> >> I do not really install DPDK, but use it from the source tree. If you
> >> want to install it then look at the docs, it talks about install the
> >> binaries. The install is handy with the T= option only to make sure
> >> you build the correct version and ignore the warning at the end.
> >>
> >>>
> >>> David
> >>>
> >>> From: Pavey, Nicholas [mailto:npavey at akamai.com]
> >>> Sent: 17 November 2016 16:55
> >>> To: David Aldrich ; Wiles, Keith
> >>> 
> >>> Cc: Thomas Monjalon ; users at dpdk.org
> >>> Subject: Re: [dpdk-users] Problem building DPDK libraries
> >>>
> >>> Yes, I?ve found that ?j causes problems too.
> >>>
> >>> I believe I?ve used both the T= and the environment variable
> >>> version
> >> without problems, as long as :
> >>>
> >>> ?You don?t use parallel make (-j)
> >>> ?You completely remove the target directory before building (this 
> >>> has
> the
> >> same name as ?T?)
> >>> o   I don?t recall exactly the problem this addressed, but I did find 
> >>> that doing
> a
> >> completely clean build is sometimes necessary.
> >>>
> >>> Thanks,
> >>>
> >>>
> >>> Nick
> >>>
> >>>
> >>> From: David Aldrich 
> >>> Date: Thursday, November 17, 2016 at 11:47 AM
> >>> To: David Aldrich , "Wiles, Keith"
> >>> 
> >>> Cc: Thomas Monjalon , "users at dpdk.org"
> >>> 
> >>> Subject: Re: [dpdk-users] Problem building DPDK libraries
> >>>
> >>> Hi
> >>>
> >>> I find that:
> >>>
> >>>  make
> >>>
> >>> succeeds.
> >>>
> >>> But I've been advised to run:
> >>>
> >>>  make -j T=x86_64-native-linuxapp-gcc install
> >>>
> >>> I think '-j' was causing the compiler problems, so I can drop that.
> >>>
> >>> Do I need the 'T=' part?
> >>>
> >>> How would I do:
> >>>
> >>>  make install
> >>>
> >>> ? That doesn't work currently for me.
> >>>
> >>> David
> >>>
> >>> -Original Message-
> >>> From: David Aldrich
> >>> Sent: 17 November 2016 16:29
> >>> To: 'David Aldrich' ; Wiles, Keith
> >>> 
> >>> Cc: Thomas Monjalon ; users at dpdk.org
> >>> Subject: RE: [dpdk-users] Problem building DPDK libraries The
> >>> allocation for /tmp is 7.9G, which is almost entirely unused.
> >>> David
>  -Original Message-
>  From: users [mailto:users-bounces at dpdk.org] On Behalf Of David
>  Aldrich
>  Sent: 17 November 2016 16:25
>  To: Wiles, Keith 
>  Cc: Thomas Monjalon ; users at dpdk.org
>  Subject: Re: [dpdk-users] Problem building DPDK libraries
> 
>  Hi
> 
>  I'm using:
> 
>  # gcc --version
>  gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
> 
>  I'll consider the tmp space.
> 
>  Thanks
> 
>  David
> 
> > -Original Message-
> > From: Wiles, Keith [mailto:keith.wiles at intel.com]
> > Sent: 17 November 2016 16:10
> > To: David Aldrich 
> > Cc: Thomas Monjalon ; users at dpdk.org
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> >
> >
> >> On Nov 17, 2016, at 10:05 AM, David Aldrich
> >  wrote:
> >>
> >> Thanks, I thought I had installed the kernel headers, but I had
> >> done it
> > incorrectly.  Now fixed.
> >>
> >> But make is still failing:
> >>
> >> CC ixgbe_rxtx_vec_sse.o
> >> gcc: internal compiler error: Killed (program cc1) Please submit
> >> a full bug report, with preprocessed source if appropriate.
> >> See  for instructions.
> >> /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138:
> >> recipe for target 'rte_eth_af_packet.o? failed
> >
> > What 

[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Wiles, Keith

> On Nov 17, 2016, at 11:02 AM, David Aldrich  
> wrote:
> 
> You are all very helpful. Thank you.
> 
> I'm afraid 'make install' isn't working:

I only use ?make install T=${RTE_TARGET} -j? command line, but you can remove 
the -j.

> 
> # make install
> make[1]: Nothing to be done for 'pre_install'.
> == Installing /usr/local/
> cp: cannot stat 'build/lib/*': No such file or directory
> /root/dpdk-2.2.0/mk/rte.sdkinstall.mk:116: recipe for target 
> 'install-runtime' failed
> make[3]: *** [install-runtime] Error 1
> 
> David
> 
>> -Original Message-
>> From: Wiles, Keith [mailto:keith.wiles at intel.com]
>> Sent: 17 November 2016 17:00
>> To: David Aldrich 
>> Cc: Pavey, Nicholas ; Thomas Monjalon
>> ; users at dpdk.org
>> Subject: Re: [dpdk-users] Problem building DPDK libraries
>> 
>> 
>>> On Nov 17, 2016, at 10:56 AM, David Aldrich
>>  wrote:
>>> 
>>> Thanks.
>>> 
>>> Do I need to do ?make install? or is ?make? sufficient?
>> 
>> I do not really install DPDK, but use it from the source tree. If you want 
>> to install
>> it then look at the docs, it talks about install the binaries. The install 
>> is handy
>> with the T= option only to make sure you build the correct version and ignore
>> the warning at the end.
>> 
>>> 
>>> David
>>> 
>>> From: Pavey, Nicholas [mailto:npavey at akamai.com]
>>> Sent: 17 November 2016 16:55
>>> To: David Aldrich ; Wiles, Keith
>>> 
>>> Cc: Thomas Monjalon ; users at dpdk.org
>>> Subject: Re: [dpdk-users] Problem building DPDK libraries
>>> 
>>> Yes, I?ve found that ?j causes problems too.
>>> 
>>> I believe I?ve used both the T= and the environment variable version
>> without problems, as long as :
>>> 
>>> ?You don?t use parallel make (-j)
>>> ?You completely remove the target directory before building (this 
>>> has the
>> same name as ?T?)
>>> o   I don?t recall exactly the problem this addressed, but I did find that 
>>> doing a
>> completely clean build is sometimes necessary.
>>> 
>>> Thanks,
>>> 
>>> 
>>> Nick
>>> 
>>> 
>>> From: David Aldrich 
>>> Date: Thursday, November 17, 2016 at 11:47 AM
>>> To: David Aldrich , "Wiles, Keith"
>>> 
>>> Cc: Thomas Monjalon , "users at dpdk.org"
>>> 
>>> Subject: Re: [dpdk-users] Problem building DPDK libraries
>>> 
>>> Hi
>>> 
>>> I find that:
>>> 
>>>  make
>>> 
>>> succeeds.
>>> 
>>> But I've been advised to run:
>>> 
>>>  make -j T=x86_64-native-linuxapp-gcc install
>>> 
>>> I think '-j' was causing the compiler problems, so I can drop that.
>>> 
>>> Do I need the 'T=' part?
>>> 
>>> How would I do:
>>> 
>>>  make install
>>> 
>>> ? That doesn't work currently for me.
>>> 
>>> David
>>> 
>>> -Original Message-
>>> From: David Aldrich
>>> Sent: 17 November 2016 16:29
>>> To: 'David Aldrich' ; Wiles, Keith
>>> 
>>> Cc: Thomas Monjalon ; users at dpdk.org
>>> Subject: RE: [dpdk-users] Problem building DPDK libraries The
>>> allocation for /tmp is 7.9G, which is almost entirely unused.
>>> David
 -Original Message-
 From: users [mailto:users-bounces at dpdk.org] On Behalf Of David
 Aldrich
 Sent: 17 November 2016 16:25
 To: Wiles, Keith 
 Cc: Thomas Monjalon ; users at dpdk.org
 Subject: Re: [dpdk-users] Problem building DPDK libraries
 
 Hi
 
 I'm using:
 
 # gcc --version
 gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
 
 I'll consider the tmp space.
 
 Thanks
 
 David
 
> -Original Message-
> From: Wiles, Keith [mailto:keith.wiles at intel.com]
> Sent: 17 November 2016 16:10
> To: David Aldrich 
> Cc: Thomas Monjalon ; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
> 
> 
>> On Nov 17, 2016, at 10:05 AM, David Aldrich
>  wrote:
>> 
>> Thanks, I thought I had installed the kernel headers, but I had
>> done it
> incorrectly.  Now fixed.
>> 
>> But make is still failing:
>> 
>> CC ixgbe_rxtx_vec_sse.o
>> gcc: internal compiler error: Killed (program cc1) Please submit
>> a full bug report, with preprocessed source if appropriate.
>> See  for instructions.
>> /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138:
>> recipe for target 'rte_eth_af_packet.o? failed
> 
> What version of GCC?
> 
> When I see this type of error it is sometimes not enough tmp space
> to compile the file, just a thought.
> 
>> make[6]: *** [rte_eth_af_packet.o] Error 4
>> /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
>> 'af_packet' failed
>> make[5]: *** [af_packet] Error 2
>> make[5]: *** Waiting for unfinished jobs
>> 
>> Best regards
>> 
>> David
>> 
>>> -Original Message-
>>> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
>>> Sent: 17 November 2016 16:00
>>> To: David Aldrich 
>>> Cc: users at dpdk.org
>>> Subject: Re: 

[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread David Aldrich
You are all very helpful. Thank you.

I'm afraid 'make install' isn't working:

# make install
make[1]: Nothing to be done for 'pre_install'.
== Installing /usr/local/
cp: cannot stat 'build/lib/*': No such file or directory
/root/dpdk-2.2.0/mk/rte.sdkinstall.mk:116: recipe for target 'install-runtime' 
failed
make[3]: *** [install-runtime] Error 1

David

> -Original Message-
> From: Wiles, Keith [mailto:keith.wiles at intel.com]
> Sent: 17 November 2016 17:00
> To: David Aldrich 
> Cc: Pavey, Nicholas ; Thomas Monjalon
> ; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
> 
> 
> > On Nov 17, 2016, at 10:56 AM, David Aldrich
>  wrote:
> >
> > Thanks.
> >
> > Do I need to do ?make install? or is ?make? sufficient?
> 
> I do not really install DPDK, but use it from the source tree. If you want to 
> install
> it then look at the docs, it talks about install the binaries. The install is 
> handy
> with the T= option only to make sure you build the correct version and ignore
> the warning at the end.
> 
> >
> > David
> >
> > From: Pavey, Nicholas [mailto:npavey at akamai.com]
> > Sent: 17 November 2016 16:55
> > To: David Aldrich ; Wiles, Keith
> > 
> > Cc: Thomas Monjalon ; users at dpdk.org
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> >
> > Yes, I?ve found that ?j causes problems too.
> >
> > I believe I?ve used both the T= and the environment variable version
> without problems, as long as :
> >
> > ?You don?t use parallel make (-j)
> > ?You completely remove the target directory before building (this 
> > has the
> same name as ?T?)
> > o   I don?t recall exactly the problem this addressed, but I did find that 
> > doing a
> completely clean build is sometimes necessary.
> >
> > Thanks,
> >
> >
> > Nick
> >
> >
> > From: David Aldrich 
> > Date: Thursday, November 17, 2016 at 11:47 AM
> > To: David Aldrich , "Wiles, Keith"
> > 
> > Cc: Thomas Monjalon , "users at dpdk.org"
> > 
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> >
> > Hi
> >
> > I find that:
> >
> >   make
> >
> > succeeds.
> >
> > But I've been advised to run:
> >
> >   make -j T=x86_64-native-linuxapp-gcc install
> >
> > I think '-j' was causing the compiler problems, so I can drop that.
> >
> > Do I need the 'T=' part?
> >
> > How would I do:
> >
> >   make install
> >
> > ? That doesn't work currently for me.
> >
> > David
> >
> > -Original Message-
> > From: David Aldrich
> > Sent: 17 November 2016 16:29
> > To: 'David Aldrich' ; Wiles, Keith
> > 
> > Cc: Thomas Monjalon ; users at dpdk.org
> > Subject: RE: [dpdk-users] Problem building DPDK libraries The
> > allocation for /tmp is 7.9G, which is almost entirely unused.
> > David
> > > -Original Message-
> > > From: users [mailto:users-bounces at dpdk.org] On Behalf Of David
> > > Aldrich
> > > Sent: 17 November 2016 16:25
> > > To: Wiles, Keith 
> > > Cc: Thomas Monjalon ; users at dpdk.org
> > > Subject: Re: [dpdk-users] Problem building DPDK libraries
> > >
> > > Hi
> > >
> > > I'm using:
> > >
> > > # gcc --version
> > > gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
> > >
> > > I'll consider the tmp space.
> > >
> > > Thanks
> > >
> > > David
> > >
> > > > -Original Message-
> > > > From: Wiles, Keith [mailto:keith.wiles at intel.com]
> > > > Sent: 17 November 2016 16:10
> > > > To: David Aldrich 
> > > > Cc: Thomas Monjalon ; users at dpdk.org
> > > > Subject: Re: [dpdk-users] Problem building DPDK libraries
> > > >
> > > >
> > > > > On Nov 17, 2016, at 10:05 AM, David Aldrich
> > > >  wrote:
> > > > >
> > > > > Thanks, I thought I had installed the kernel headers, but I had
> > > > > done it
> > > > incorrectly.  Now fixed.
> > > > >
> > > > > But make is still failing:
> > > > >
> > > > >  CC ixgbe_rxtx_vec_sse.o
> > > > > gcc: internal compiler error: Killed (program cc1) Please submit
> > > > > a full bug report, with preprocessed source if appropriate.
> > > > > See  for instructions.
> > > > > /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138:
> > > > > recipe for target 'rte_eth_af_packet.o? failed
> > > >
> > > > What version of GCC?
> > > >
> > > > When I see this type of error it is sometimes not enough tmp space
> > > > to compile the file, just a thought.
> > > >
> > > > > make[6]: *** [rte_eth_af_packet.o] Error 4
> > > > > /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
> > > > > 'af_packet' failed
> > > > > make[5]: *** [af_packet] Error 2
> > > > > make[5]: *** Waiting for unfinished jobs
> > > > >
> > > > > Best regards
> > > > >
> > > > > David
> > > > >
> > > > >> -Original Message-
> > > > >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> > > > >> Sent: 17 November 2016 16:00
> > > > >> To: David Aldrich 
> > > > >> Cc: users at dpdk.org
> > > > >> Subject: Re: [dpdk-users] Problem building DPDK libraries
> > > > >>
> > > > >> 2016-11-17 15:51, David Aldrich:
> 

[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Wiles, Keith

> On Nov 17, 2016, at 10:56 AM, David Aldrich  
> wrote:
> 
> Thanks.
>  
> Do I need to do ?make install? or is ?make? sufficient?

I do not really install DPDK, but use it from the source tree. If you want to 
install it then look at the docs, it talks about install the binaries. The 
install is handy with the T= option only to make sure you build the correct 
version and ignore the warning at the end.

>  
> David
>  
> From: Pavey, Nicholas [mailto:npavey at akamai.com] 
> Sent: 17 November 2016 16:55
> To: David Aldrich ; Wiles, Keith  at intel.com>
> Cc: Thomas Monjalon ; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
>  
> Yes, I?ve found that ?j causes problems too.
>  
> I believe I?ve used both the T= and the environment variable version 
> without problems, as long as :
>  
> ?You don?t use parallel make (-j)
> ?You completely remove the target directory before building (this has 
> the same name as ?T?)
> o   I don?t recall exactly the problem this addressed, but I did find that 
> doing a completely clean build is sometimes necessary.
>  
> Thanks,
>  
>  
> Nick
>  
>  
> From: David Aldrich 
> Date: Thursday, November 17, 2016 at 11:47 AM
> To: David Aldrich , "Wiles, Keith" 
> 
> Cc: Thomas Monjalon , "users at dpdk.org" 
> 
> Subject: Re: [dpdk-users] Problem building DPDK libraries
>  
> Hi
>  
> I find that:
>  
>   make
>  
> succeeds.
>  
> But I've been advised to run:
>  
>   make -j T=x86_64-native-linuxapp-gcc install
>  
> I think '-j' was causing the compiler problems, so I can drop that.
>  
> Do I need the 'T=' part?
>  
> How would I do:
>  
>   make install
>  
> ? That doesn't work currently for me.
>  
> David
>  
> -Original Message-
> From: David Aldrich
> Sent: 17 November 2016 16:29
> To: 'David Aldrich' ; Wiles, Keith
> 
> Cc: Thomas Monjalon ; users at dpdk.org
> Subject: RE: [dpdk-users] Problem building DPDK libraries
> The allocation for /tmp is 7.9G, which is almost entirely unused.
> David
> > -Original Message-
> > From: users [mailto:users-bounces at dpdk.org] On Behalf Of David Aldrich
> > Sent: 17 November 2016 16:25
> > To: Wiles, Keith 
> > Cc: Thomas Monjalon ; users at dpdk.org
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> > 
> > Hi
> > 
> > I'm using:
> > 
> > # gcc --version
> > gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
> > 
> > I'll consider the tmp space.
> > 
> > Thanks
> > 
> > David
> > 
> > > -Original Message-
> > > From: Wiles, Keith [mailto:keith.wiles at intel.com]
> > > Sent: 17 November 2016 16:10
> > > To: David Aldrich 
> > > Cc: Thomas Monjalon ; users at dpdk.org
> > > Subject: Re: [dpdk-users] Problem building DPDK libraries
> > >
> > >
> > > > On Nov 17, 2016, at 10:05 AM, David Aldrich
> > >  wrote:
> > > >
> > > > Thanks, I thought I had installed the kernel headers, but I had
> > > > done it
> > > incorrectly.  Now fixed.
> > > >
> > > > But make is still failing:
> > > >
> > > >  CC ixgbe_rxtx_vec_sse.o
> > > > gcc: internal compiler error: Killed (program cc1) Please submit a
> > > > full bug report, with preprocessed source if appropriate.
> > > > See  for instructions.
> > > > /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138:
> > > > recipe for target 'rte_eth_af_packet.o? failed
> > >
> > > What version of GCC?
> > >
> > > When I see this type of error it is sometimes not enough tmp space
> > > to compile the file, just a thought.
> > >
> > > > make[6]: *** [rte_eth_af_packet.o] Error 4
> > > > /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
> > > > 'af_packet' failed
> > > > make[5]: *** [af_packet] Error 2
> > > > make[5]: *** Waiting for unfinished jobs
> > > >
> > > > Best regards
> > > >
> > > > David
> > > >
> > > >> -Original Message-
> > > >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> > > >> Sent: 17 November 2016 16:00
> > > >> To: David Aldrich 
> > > >> Cc: users at dpdk.org
> > > >> Subject: Re: [dpdk-users] Problem building DPDK libraries
> > > >>
> > > >> 2016-11-17 15:51, David Aldrich:
> > > >>> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build:
> > > >>> No such
> > > >> file or directory.  Stop.
> > > >>
> > > >> You need the kernel headers, or just disable compilation of kernel
> modules:
> > > >>sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
> > > >>sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
> > > >>
> > > >>
> > > >>
> > > >> Click
> > > >>
> > >
> > 
> https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
> > > >> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to report
> > this
> > > >> email as spam.
> > >
> > > Regards,
> > > Keith
>  
>  
> 
> 
> 
> Click here to report this email as spam.
> 

Regards,
Keith



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Thomas Monjalon
2016-11-17 15:51, David Aldrich:
> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build: No such 
> file or directory.  Stop.

You need the kernel headers, or just disable compilation of kernel modules:
sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
sed -ri 's,(IGB_UIO=).*,\1n,' build/.config



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Wiles, Keith

> On Nov 17, 2016, at 10:47 AM, David Aldrich  
> wrote:
> 
> Hi 
> 
> I find that:
> 
>   make
> 
> succeeds.
> 
> But I've been advised to run:
> 
>   make -j T=x86_64-native-linuxapp-gcc install
> 
> I think '-j' was causing the compiler problems, so I can drop that.
> 
> Do I need the 'T=' part?

I would use the T= part, but you will get a warning at the end, but you can 
ignore it. DPDK can be built a number of ways, but I find the ?make install 
T=${RTE_TARGET} -j? (or without -j) works the best for me.

The -j should work unless you are using NFS and the time is off some how, but 
really the build time is pretty fast without it. If it works without -j then I 
would stay with it unless you just need the speed, but you have to figure out 
why it does not work.

> 
> How would I do:
> 
>   make install
> 
> ? That doesn't work currently for me.
> 
> David
> 
>> -Original Message-
>> From: David Aldrich
>> Sent: 17 November 2016 16:29
>> To: 'David Aldrich' ; Wiles, Keith
>> 
>> Cc: Thomas Monjalon ; users at dpdk.org
>> Subject: RE: [dpdk-users] Problem building DPDK libraries
>> 
>> The allocation for /tmp is 7.9G, which is almost entirely unused.
>> 
>> David
>> 
>>> -Original Message-
>>> From: users [mailto:users-bounces at dpdk.org] On Behalf Of David Aldrich
>>> Sent: 17 November 2016 16:25
>>> To: Wiles, Keith 
>>> Cc: Thomas Monjalon ; users at dpdk.org
>>> Subject: Re: [dpdk-users] Problem building DPDK libraries
>>> 
>>> Hi
>>> 
>>> I'm using:
>>> 
>>> # gcc --version
>>> gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
>>> 
>>> I'll consider the tmp space.
>>> 
>>> Thanks
>>> 
>>> David
>>> 
 -Original Message-
 From: Wiles, Keith [mailto:keith.wiles at intel.com]
 Sent: 17 November 2016 16:10
 To: David Aldrich 
 Cc: Thomas Monjalon ; users at dpdk.org
 Subject: Re: [dpdk-users] Problem building DPDK libraries
 
 
> On Nov 17, 2016, at 10:05 AM, David Aldrich
  wrote:
> 
> Thanks, I thought I had installed the kernel headers, but I had
> done it
 incorrectly.  Now fixed.
> 
> But make is still failing:
> 
> CC ixgbe_rxtx_vec_sse.o
> gcc: internal compiler error: Killed (program cc1) Please submit a
> full bug report, with preprocessed source if appropriate.
> See  for instructions.
> /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138:
> recipe for target 'rte_eth_af_packet.o? failed
 
 What version of GCC?
 
 When I see this type of error it is sometimes not enough tmp space
 to compile the file, just a thought.
 
> make[6]: *** [rte_eth_af_packet.o] Error 4
> /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
> 'af_packet' failed
> make[5]: *** [af_packet] Error 2
> make[5]: *** Waiting for unfinished jobs
> 
> Best regards
> 
> David
> 
>> -Original Message-
>> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
>> Sent: 17 November 2016 16:00
>> To: David Aldrich 
>> Cc: users at dpdk.org
>> Subject: Re: [dpdk-users] Problem building DPDK libraries
>> 
>> 2016-11-17 15:51, David Aldrich:
>>> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build:
>>> No such
>> file or directory.  Stop.
>> 
>> You need the kernel headers, or just disable compilation of kernel
>> modules:
>>  sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
>>  sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
>> 
>> 
>> 
>> Click
>> 
 
>>> 
>> https://www.mailcontrol.com/sr/4ZSg1SI7T87GX2PQPOmvUstiqgZjxB51m1JQqZ
>> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to report
>>> this
>> email as spam.
 
 Regards,
 Keith
> 

Regards,
Keith



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread David Aldrich
Thanks.

Do I need to do ?make install? or is ?make? sufficient?

David

From: Pavey, Nicholas [mailto:npa...@akamai.com]
Sent: 17 November 2016 16:55
To: David Aldrich ; Wiles, Keith 
Cc: Thomas Monjalon ; users at dpdk.org
Subject: Re: [dpdk-users] Problem building DPDK libraries

Yes, I?ve found that ?j causes problems too.

I believe I?ve used both the T= and the environment variable version without 
problems, as long as :


?You don?t use parallel make (-j)

?You completely remove the target directory before building (this has 
the same name as ?T?)

o   I don?t recall exactly the problem this addressed, but I did find that 
doing a completely clean build is sometimes necessary.

Thanks,


Nick


From: David Aldrich mailto:david.aldr...@emea.nec.com>>
Date: Thursday, November 17, 2016 at 11:47 AM
To: David Aldrich mailto:David.Aldrich at 
EMEA.NEC.COM>>, "Wiles, Keith" mailto:keith.wiles at 
intel.com>>
Cc: Thomas Monjalon mailto:thomas.monjalon at 
6wind.com>>, "users at dpdk.org" mailto:users at dpdk.org>>
Subject: Re: [dpdk-users] Problem building DPDK libraries

Hi

I find that:

  make

succeeds.

But I've been advised to run:

  make -j T=x86_64-native-linuxapp-gcc install

I think '-j' was causing the compiler problems, so I can drop that.

Do I need the 'T=' part?

How would I do:

  make install

? That doesn't work currently for me.

David

-Original Message-
From: David Aldrich
Sent: 17 November 2016 16:29
To: 'David Aldrich' mailto:David.Aldrich at 
emea.nec.com>>; Wiles, Keith
mailto:keith.wiles at intel.com>>
Cc: Thomas Monjalon mailto:thomas.monjalon at 
6wind.com>>; users at dpdk.org
Subject: RE: [dpdk-users] Problem building DPDK libraries
The allocation for /tmp is 7.9G, which is almost entirely unused.
David
> -Original Message-
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of David Aldrich
> Sent: 17 November 2016 16:25
> To: Wiles, Keith mailto:keith.wiles at intel.com>>
> Cc: Thomas Monjalon mailto:thomas.monjalon at 
> 6wind.com>>; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
>
> Hi
>
> I'm using:
>
> # gcc --version
> gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
>
> I'll consider the tmp space.
>
> Thanks
>
> David
>
> > -Original Message-
> > From: Wiles, Keith [mailto:keith.wiles at intel.com]
> > Sent: 17 November 2016 16:10
> > To: David Aldrich mailto:David.Aldrich at 
> > EMEA.NEC.COM>>
> > Cc: Thomas Monjalon mailto:thomas.monjalon at 
> > 6wind.com>>; users at dpdk.org
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> >
> >
> > > On Nov 17, 2016, at 10:05 AM, David Aldrich
> > mailto:David.Aldrich at EMEA.NEC.COM>> wrote:
> > >
> > > Thanks, I thought I had installed the kernel headers, but I had
> > > done it
> > incorrectly.  Now fixed.
> > >
> > > But make is still failing:
> > >
> > >  CC ixgbe_rxtx_vec_sse.o
> > > gcc: internal compiler error: Killed (program cc1) Please submit a
> > > full bug report, with preprocessed source if appropriate.
> > > See mailto:support at windriver.com>> for 
> > > instructions.
> > > /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138:
> > > recipe for target 'rte_eth_af_packet.o? failed
> >
> > What version of GCC?
> >
> > When I see this type of error it is sometimes not enough tmp space
> > to compile the file, just a thought.
> >
> > > make[6]: *** [rte_eth_af_packet.o] Error 4
> > > /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
> > > 'af_packet' failed
> > > make[5]: *** [af_packet] Error 2
> > > make[5]: *** Waiting for unfinished jobs
> > >
> > > Best regards
> > >
> > > David
> > >
> > >> -Original Message-
> > >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> > >> Sent: 17 November 2016 16:00
> > >> To: David Aldrich mailto:David.Aldrich at 
> > >> EMEA.NEC.COM>>
> > >> Cc: users at dpdk.org
> > >> Subject: Re: [dpdk-users] Problem building DPDK libraries
> > >>
> > >> 2016-11-17 15:51, David Aldrich:
> > >>> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build:
> > >>> No such
> > >> file or directory.  Stop.
> > >>
> > >> You need the kernel headers, or just disable compilation of kernel
modules:
> > >>sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
> > >>sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
> > >>
> > >>
> > >>
> > >> Click
> > >>
> >
>
https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==>
> > >> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to 
> > >> report
> this
> > >> email as spam.
> >
> > 

[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Pavey, Nicholas
Yes, I?ve found that ?j causes problems too.

I believe I?ve used both the T= and the environment variable version without 
problems, as long as :


? You don?t use parallel make (-j)

? You completely remove the target directory before building (this has 
the same name as ?T?)

oI don?t recall exactly the problem this addressed, but I did find that 
doing a completely clean build is sometimes necessary.

Thanks,


Nick


From: David Aldrich 
Date: Thursday, November 17, 2016 at 11:47 AM
To: David Aldrich , "Wiles, Keith" 
Cc: Thomas Monjalon , "users at dpdk.org" 
Subject: Re: [dpdk-users] Problem building DPDK libraries

Hi

I find that:

  make

succeeds.

But I've been advised to run:

  make -j T=x86_64-native-linuxapp-gcc install

I think '-j' was causing the compiler problems, so I can drop that.

Do I need the 'T=' part?

How would I do:

  make install

? That doesn't work currently for me.

David

-Original Message-
From: David Aldrich
Sent: 17 November 2016 16:29
To: 'David Aldrich' mailto:David.Aldrich at 
emea.nec.com>>; Wiles, Keith
mailto:keith.wiles at intel.com>>
Cc: Thomas Monjalon mailto:thomas.monjalon at 
6wind.com>>; users at dpdk.org
Subject: RE: [dpdk-users] Problem building DPDK libraries
The allocation for /tmp is 7.9G, which is almost entirely unused.
David
> -Original Message-
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of David Aldrich
> Sent: 17 November 2016 16:25
> To: Wiles, Keith mailto:keith.wiles at intel.com>>
> Cc: Thomas Monjalon mailto:thomas.monjalon at 
> 6wind.com>>; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
>
> Hi
>
> I'm using:
>
> # gcc --version
> gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
>
> I'll consider the tmp space.
>
> Thanks
>
> David
>
> > -Original Message-
> > From: Wiles, Keith [mailto:keith.wiles at intel.com]
> > Sent: 17 November 2016 16:10
> > To: David Aldrich mailto:David.Aldrich at 
> > EMEA.NEC.COM>>
> > Cc: Thomas Monjalon mailto:thomas.monjalon at 
> > 6wind.com>>; users at dpdk.org
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> >
> >
> > > On Nov 17, 2016, at 10:05 AM, David Aldrich
> > mailto:David.Aldrich at EMEA.NEC.COM>> wrote:
> > >
> > > Thanks, I thought I had installed the kernel headers, but I had
> > > done it
> > incorrectly.  Now fixed.
> > >
> > > But make is still failing:
> > >
> > >  CC ixgbe_rxtx_vec_sse.o
> > > gcc: internal compiler error: Killed (program cc1) Please submit a
> > > full bug report, with preprocessed source if appropriate.
> > > See mailto:support at windriver.com>> for 
> > > instructions.
> > > /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138:
> > > recipe for target 'rte_eth_af_packet.o? failed
> >
> > What version of GCC?
> >
> > When I see this type of error it is sometimes not enough tmp space
> > to compile the file, just a thought.
> >
> > > make[6]: *** [rte_eth_af_packet.o] Error 4
> > > /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
> > > 'af_packet' failed
> > > make[5]: *** [af_packet] Error 2
> > > make[5]: *** Waiting for unfinished jobs
> > >
> > > Best regards
> > >
> > > David
> > >
> > >> -Original Message-
> > >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> > >> Sent: 17 November 2016 16:00
> > >> To: David Aldrich mailto:David.Aldrich at 
> > >> EMEA.NEC.COM>>
> > >> Cc: users at dpdk.org
> > >> Subject: Re: [dpdk-users] Problem building DPDK libraries
> > >>
> > >> 2016-11-17 15:51, David Aldrich:
> > >>> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build:
> > >>> No such
> > >> file or directory.  Stop.
> > >>
> > >> You need the kernel headers, or just disable compilation of kernel
modules:
> > >>sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
> > >>sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
> > >>
> > >>
> > >>
> > >> Click
> > >>
> >
>
https://www.mailcontrol.com/sr/4ZSg1SI7T87GX2PQPOmvUstiqgZjxB51m1JQqZ
> > >> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to report
> this
> > >> email as spam.
> >
> > Regards,
> > Keith




[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread David Aldrich
Hi 

I find that:

make

succeeds.

But I've been advised to run:

make -j T=x86_64-native-linuxapp-gcc install

I think '-j' was causing the compiler problems, so I can drop that.

Do I need the 'T=' part?

How would I do:

make install

? That doesn't work currently for me.

David

> -Original Message-
> From: David Aldrich
> Sent: 17 November 2016 16:29
> To: 'David Aldrich' ; Wiles, Keith
> 
> Cc: Thomas Monjalon ; users at dpdk.org
> Subject: RE: [dpdk-users] Problem building DPDK libraries
> 
> The allocation for /tmp is 7.9G, which is almost entirely unused.
> 
> David
> 
> > -Original Message-
> > From: users [mailto:users-bounces at dpdk.org] On Behalf Of David Aldrich
> > Sent: 17 November 2016 16:25
> > To: Wiles, Keith 
> > Cc: Thomas Monjalon ; users at dpdk.org
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> >
> > Hi
> >
> > I'm using:
> >
> > # gcc --version
> > gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
> >
> > I'll consider the tmp space.
> >
> > Thanks
> >
> > David
> >
> > > -Original Message-
> > > From: Wiles, Keith [mailto:keith.wiles at intel.com]
> > > Sent: 17 November 2016 16:10
> > > To: David Aldrich 
> > > Cc: Thomas Monjalon ; users at dpdk.org
> > > Subject: Re: [dpdk-users] Problem building DPDK libraries
> > >
> > >
> > > > On Nov 17, 2016, at 10:05 AM, David Aldrich
> > >  wrote:
> > > >
> > > > Thanks, I thought I had installed the kernel headers, but I had
> > > > done it
> > > incorrectly.  Now fixed.
> > > >
> > > > But make is still failing:
> > > >
> > > >  CC ixgbe_rxtx_vec_sse.o
> > > > gcc: internal compiler error: Killed (program cc1) Please submit a
> > > > full bug report, with preprocessed source if appropriate.
> > > > See  for instructions.
> > > > /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138:
> > > > recipe for target 'rte_eth_af_packet.o? failed
> > >
> > > What version of GCC?
> > >
> > > When I see this type of error it is sometimes not enough tmp space
> > > to compile the file, just a thought.
> > >
> > > > make[6]: *** [rte_eth_af_packet.o] Error 4
> > > > /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
> > > > 'af_packet' failed
> > > > make[5]: *** [af_packet] Error 2
> > > > make[5]: *** Waiting for unfinished jobs
> > > >
> > > > Best regards
> > > >
> > > > David
> > > >
> > > >> -Original Message-
> > > >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> > > >> Sent: 17 November 2016 16:00
> > > >> To: David Aldrich 
> > > >> Cc: users at dpdk.org
> > > >> Subject: Re: [dpdk-users] Problem building DPDK libraries
> > > >>
> > > >> 2016-11-17 15:51, David Aldrich:
> > > >>> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build:
> > > >>> No such
> > > >> file or directory.  Stop.
> > > >>
> > > >> You need the kernel headers, or just disable compilation of kernel
> modules:
> > > >>sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
> > > >>sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
> > > >>
> > > >>
> > > >>
> > > >> Click
> > > >>
> > >
> >
> https://www.mailcontrol.com/sr/4ZSg1SI7T87GX2PQPOmvUstiqgZjxB51m1JQqZ
> > > >> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to report
> > this
> > > >> email as spam.
> > >
> > > Regards,
> > > Keith



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread David Aldrich
The allocation for /tmp is 7.9G, which is almost entirely unused.

David

> -Original Message-
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of David Aldrich
> Sent: 17 November 2016 16:25
> To: Wiles, Keith 
> Cc: Thomas Monjalon ; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
> 
> Hi
> 
> I'm using:
> 
> # gcc --version
> gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0
> 
> I'll consider the tmp space.
> 
> Thanks
> 
> David
> 
> > -Original Message-
> > From: Wiles, Keith [mailto:keith.wiles at intel.com]
> > Sent: 17 November 2016 16:10
> > To: David Aldrich 
> > Cc: Thomas Monjalon ; users at dpdk.org
> > Subject: Re: [dpdk-users] Problem building DPDK libraries
> >
> >
> > > On Nov 17, 2016, at 10:05 AM, David Aldrich
> >  wrote:
> > >
> > > Thanks, I thought I had installed the kernel headers, but I had done
> > > it
> > incorrectly.  Now fixed.
> > >
> > > But make is still failing:
> > >
> > >  CC ixgbe_rxtx_vec_sse.o
> > > gcc: internal compiler error: Killed (program cc1) Please submit a
> > > full bug report, with preprocessed source if appropriate.
> > > See  for instructions.
> > > /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138: recipe
> > > for target 'rte_eth_af_packet.o? failed
> >
> > What version of GCC?
> >
> > When I see this type of error it is sometimes not enough tmp space to
> > compile the file, just a thought.
> >
> > > make[6]: *** [rte_eth_af_packet.o] Error 4
> > > /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
> > > 'af_packet' failed
> > > make[5]: *** [af_packet] Error 2
> > > make[5]: *** Waiting for unfinished jobs
> > >
> > > Best regards
> > >
> > > David
> > >
> > >> -Original Message-
> > >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> > >> Sent: 17 November 2016 16:00
> > >> To: David Aldrich 
> > >> Cc: users at dpdk.org
> > >> Subject: Re: [dpdk-users] Problem building DPDK libraries
> > >>
> > >> 2016-11-17 15:51, David Aldrich:
> > >>> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build:
> > >>> No such
> > >> file or directory.  Stop.
> > >>
> > >> You need the kernel headers, or just disable compilation of kernel 
> > >> modules:
> > >>  sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
> > >>  sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
> > >>
> > >>
> > >>
> > >> Click
> > >>
> >
> https://www.mailcontrol.com/sr/4ZSg1SI7T87GX2PQPOmvUstiqgZjxB51m1JQqZ
> > >> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to report
> this
> > >> email as spam.
> >
> > Regards,
> > Keith



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread David Aldrich
Hi

I'm using:

# gcc --version
gcc (Wind River Linux 5.2.0-8.0-intel-haswell-64) 5.2.0

I'll consider the tmp space.

Thanks

David

> -Original Message-
> From: Wiles, Keith [mailto:keith.wiles at intel.com]
> Sent: 17 November 2016 16:10
> To: David Aldrich 
> Cc: Thomas Monjalon ; users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
> 
> 
> > On Nov 17, 2016, at 10:05 AM, David Aldrich
>  wrote:
> >
> > Thanks, I thought I had installed the kernel headers, but I had done it
> incorrectly.  Now fixed.
> >
> > But make is still failing:
> >
> >  CC ixgbe_rxtx_vec_sse.o
> > gcc: internal compiler error: Killed (program cc1) Please submit a
> > full bug report, with preprocessed source if appropriate.
> > See  for instructions.
> > /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138: recipe
> > for target 'rte_eth_af_packet.o? failed
> 
> What version of GCC?
> 
> When I see this type of error it is sometimes not enough tmp space to compile
> the file, just a thought.
> 
> > make[6]: *** [rte_eth_af_packet.o] Error 4
> > /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target
> > 'af_packet' failed
> > make[5]: *** [af_packet] Error 2
> > make[5]: *** Waiting for unfinished jobs
> >
> > Best regards
> >
> > David
> >
> >> -Original Message-
> >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> >> Sent: 17 November 2016 16:00
> >> To: David Aldrich 
> >> Cc: users at dpdk.org
> >> Subject: Re: [dpdk-users] Problem building DPDK libraries
> >>
> >> 2016-11-17 15:51, David Aldrich:
> >>> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build:
> >>> No such
> >> file or directory.  Stop.
> >>
> >> You need the kernel headers, or just disable compilation of kernel modules:
> >>sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
> >>sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
> >>
> >>
> >>
> >> Click
> >>
> https://www.mailcontrol.com/sr/4ZSg1SI7T87GX2PQPOmvUstiqgZjxB51m1JQqZ
> >> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to report this
> >> email as spam.
> 
> Regards,
> Keith



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread Wiles, Keith

> On Nov 17, 2016, at 10:05 AM, David Aldrich  
> wrote:
> 
> Thanks, I thought I had installed the kernel headers, but I had done it 
> incorrectly.  Now fixed.
> 
> But make is still failing:
> 
>  CC ixgbe_rxtx_vec_sse.o
> gcc: internal compiler error: Killed (program cc1)
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See  for instructions.
> /root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138: recipe for 
> target 'rte_eth_af_packet.o? failed

What version of GCC? 

When I see this type of error it is sometimes not enough tmp space to compile 
the file, just a thought.

> make[6]: *** [rte_eth_af_packet.o] Error 4
> /root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target 'af_packet' 
> failed
> make[5]: *** [af_packet] Error 2
> make[5]: *** Waiting for unfinished jobs
> 
> Best regards
> 
> David
> 
>> -Original Message-
>> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
>> Sent: 17 November 2016 16:00
>> To: David Aldrich 
>> Cc: users at dpdk.org
>> Subject: Re: [dpdk-users] Problem building DPDK libraries
>> 
>> 2016-11-17 15:51, David Aldrich:
>>> make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build: No such
>> file or directory.  Stop.
>> 
>> You need the kernel headers, or just disable compilation of kernel modules:
>>  sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
>>  sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
>> 
>> 
>> 
>> Click
>> https://www.mailcontrol.com/sr/4ZSg1SI7T87GX2PQPOmvUstiqgZjxB51m1JQqZ
>> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to report this
>> email as spam.

Regards,
Keith



[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread David Aldrich
Thanks, I thought I had installed the kernel headers, but I had done it 
incorrectly.  Now fixed.

But make is still failing:

  CC ixgbe_rxtx_vec_sse.o
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
/root/dpdk-stable-16.07.1/mk/internal/rte.compile-pre.mk:138: recipe for target 
'rte_eth_af_packet.o' failed
make[6]: *** [rte_eth_af_packet.o] Error 4
/root/dpdk-stable-16.07.1/mk/rte.subdir.mk:61: recipe for target 'af_packet' 
failed
make[5]: *** [af_packet] Error 2
make[5]: *** Waiting for unfinished jobs

Best regards

David

> -Original Message-
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> Sent: 17 November 2016 16:00
> To: David Aldrich 
> Cc: users at dpdk.org
> Subject: Re: [dpdk-users] Problem building DPDK libraries
> 
> 2016-11-17 15:51, David Aldrich:
> > make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build: No such
> file or directory.  Stop.
> 
> You need the kernel headers, or just disable compilation of kernel modules:
>   sed -ri 's,(KNI_KMOD=).*,\1n,' build/.config
>   sed -ri 's,(IGB_UIO=).*,\1n,' build/.config
> 
> 
> 
>  Click
> https://www.mailcontrol.com/sr/4ZSg1SI7T87GX2PQPOmvUstiqgZjxB51m1JQqZ
> njH0BFwQAIYudV!69Vnv0C8JC0YknPHNppj5zLq66BGWNXYg==  to report this
> email as spam.


[dpdk-users] Problem building DPDK libraries

2016-11-17 Thread David Aldrich
Hi

I am trying to build DPDK 16.07.1 on Wind River Linux 8.

'make' fails:

# make
[snip]
  CC rte_spinlock.o
  AR librte_eal.a
  SYMLINK-FILE include/exec-env/rte_interrupts.h
  SYMLINK-FILE include/exec-env/rte_kni_common.h
  SYMLINK-FILE include/exec-env/rte_dom0_common.h
  INSTALL-LIB librte_eal.a
== Build lib/librte_eal/linuxapp/igb_uio
make[6]: *** /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/build: No such file 
or directory.  Stop.
/root/dpdk-stable-16.07.1/mk/rte.module.mk:79: recipe for target 'igb_uio.ko' 
failed

Indeed, that 'build' directory does not exist:

# ls /lib/modules/4.1.21-rt13-WR8.0.0.10_preempt-rt/
kernel modules.alias.bin  modules.builtin.bin  modules.dep.bin  
modules.ordermodules.symbols
modules.alias  modules.builtinmodules.dep  modules.devname  
modules.softdep  modules.symbols.bin

Please can someone help me with this?

Best regards

David



[dpdk-users] DPDK Linux kernel version requirement

2016-11-17 Thread James Huang
I did a bunch test with DPDK v16.07

- system (netgate appliance box)
CentOS release 6.5 (Final)
Linux NETGATE-TEST-Appliance 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb
12 09:03:27 CET 2014 x86_64 x86_64 x86_64 GNU/Linux
4 CPU cores @2.4GHz
8 GB memory
6 1Gb NICs, eth0 - eth5

- install module (x86_64)
igb_uio.ko
rte_kni.ko

- reserve huge pages memory (2M*512=1GB)
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge
echo 512 > 
/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

- run test programs
testpmd.i686 -c7 -n3 --vdev=eth_pcap0,iface=eth4
--vdev=eth_pcap1,iface=eth5 -- -i --nb-cores=2 --nb-ports=2
--total-num-mbufs=2048
packet size 64B
Rx-pps and Tx-pps around 120K, or 77Mbps

testpmd.i686 -c7 -n3 -- -i --nb-cores=2 --nb-ports=2 --total-num-mbufs=2048
use igb_uio driver
packet size 64B
Rx-pps and Tx-pps around 1.4M, or 900Mbps

./pktgen.i686 -c f -n 4 -- -p 0x3 -P -m "1.0, 2.1" -N -T
packet size from 64 to 1500, all throughputs could reach 998-999Mbit/s


According to the test results, could I say DPDK 32bit applications are
GOOD to run on Linux 64bit kernel v2.6.32?

Regards,
James Huang


On Thu, Nov 17, 2016 at 10:32 AM, Wiles, Keith  wrote:
>
>> On Nov 17, 2016, at 12:27 PM, James Huang  wrote:
>>
>> Hi,
>>
>> Nice to join DPDK community.
>>
>> read from DPDK system requirements for Linux
>> (http://dpdk.org/doc/guides/linux_gsg/sys_reqs.html)
>>
>>  Kernel version >= 2.6.34
>>
>> I'd like to know if there is any reason to block DPDK build and run on
>> older kernel version, i.e. 2.6.32, as carried on CentOS 6. where
>> gcc=4.4.
>>
>> Could we just keep our CentOS 6 64bit x86_64 OS and continuing running
>> 32bit applications with DPDK injected.
>>
>> or, there are good reasons *must* upgrade to CentOS 7, where
>> kernel=3.10.0, gcc=4.8, and re-build applications to 64bit as well?
>
> The only issues I can think of are no huge page support and the igb_uio or 
> kernel components may not build. Having no huge page support can be a 
> performance hit, but you should use ?no-huge option. I know some people have 
> it building on older kernels, but it has been many revs back.
>
>>
>> Thanks a lot!
>>
>>
>> James
>
> Regards,
> Keith
>


[dpdk-users] DPDK Linux kernel version requirement

2016-11-17 Thread James Huang
Hi,

Nice to join DPDK community.

read from DPDK system requirements for Linux
(http://dpdk.org/doc/guides/linux_gsg/sys_reqs.html)

  Kernel version >= 2.6.34

I'd like to know if there is any reason to block DPDK build and run on
older kernel version, i.e. 2.6.32, as carried on CentOS 6. where
gcc=4.4.

Could we just keep our CentOS 6 64bit x86_64 OS and continuing running
32bit applications with DPDK injected.

or, there are good reasons *must* upgrade to CentOS 7, where
kernel=3.10.0, gcc=4.8, and re-build applications to 64bit as well?

Thanks a lot!


James