DPDK usage discussions
 help / color / mirror / Atom feed
* Troubles with building of DPDK.RPM and meson
@ 2021-10-12  6:45 Ruslan R. Laishev
  2021-10-12  8:31 ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Ruslan R. Laishev @ 2021-10-12  6:45 UTC (permalink / raw)
  To: users

Hello All!

  I have a small study task to make DPDK.RPM with the latest DPDK from 
the git.

  I use DPDK.SPEC from the latest .SRC.RPM kit as a template.

  In my DPDK.SPEC:

-------------------------------------------------------------
%build
# In case dpdk-devel is installed
unset RTE_SDK RTE_INCLUDE RTE_TARGET

  %meson
  %meson_build

-------------------------------------------------------------


  Build the packet :

-------------------------------------------------------------
[root@sysman rpmbuild]# rpmbuild -ba SPECS/dpdk.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.PRXHJF
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf dpdk-21.08
+ /usr/bin/xz -dc /root/rpmbuild/SOURCES/dpdk-21.08.tar.xz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dpdk-21.08
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.fVhx2d
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd dpdk-21.08
+ unset RTE_SDK RTE_INCLUDE RTE_TARGET
++ echo -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic
++ sed -e s:-Wall::g -e 's:-march=[[:alnum:]]* ::g'
+ export 'EXTRA_CFLAGS=-O2 -g -pipe  -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches -m64 -mtune=generic -Wformat -fPIC -fcommon'
+ EXTRA_CFLAGS='-O2 -g -pipe  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic -Wformat -fPIC -fcommon'
+ %meson
/var/tmp/rpm-tmp.fVhx2d: line 46: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.fVhx2d (%build)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.fVhx2d (%build)
-------------------------------------------------------------

  meson and ninja is installed on the system, I can build DPDK from 
command line with:
  $ meson build
  $ cd build
  $ ninja
  ...


So, can someone help me to resolve this ?
Thanks in advance.

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

* Re: Troubles with building of DPDK.RPM and meson
  2021-10-12  6:45 Troubles with building of DPDK.RPM and meson Ruslan R. Laishev
@ 2021-10-12  8:31 ` Thomas Monjalon
  2021-10-12  9:10   ` Ruslan R. Laishev
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2021-10-12  8:31 UTC (permalink / raw)
  To: Ruslan R. Laishev; +Cc: users

12/10/2021 08:45, Ruslan R. Laishev:
> Hello All!
> 
>   I have a small study task to make DPDK.RPM with the latest DPDK from 
> the git.

You should look at what is done in Fedora for the latest DPDK.

>   I use DPDK.SPEC from the latest .SRC.RPM kit as a template.

Not sure what is your reference.




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

* Re: Troubles with building of DPDK.RPM and meson
  2021-10-12  8:31 ` Thomas Monjalon
@ 2021-10-12  9:10   ` Ruslan R. Laishev
  2021-10-12 15:22     ` Ruslan R. Laishev
  0 siblings, 1 reply; 4+ messages in thread
From: Ruslan R. Laishev @ 2021-10-12  9:10 UTC (permalink / raw)
  To: users

On 12-10-2021 11:31, Thomas Monjalon wrote:

   Thanks for the answer.


> 12/10/2021 08:45, Ruslan R. Laishev:
>> Hello All!
>>
>>    I have a small study task to make DPDK.RPM with the latest DPDK from
>> the git.
> 
> You should look at what is done in Fedora for the latest DPDK.
	rpmfind.net return only binary kits for DPDK.
	I'm need to make installation kit with building from sources.


> 
>>    I use DPDK.SPEC from the latest .SRC.RPM kit as a template.
> 
> Not sure what is your reference.

  Latest .RPM with the source I found is:
dpdk-18.11.8-1.el7_8.src.rpm



Ok. Got DPDK.SPEC from 20.11 from Fedora site , so:

First run:
[root@sysman rpmbuild]# rpmbuild -ba SPECS/dpdk.spec
error: Failed build dependencies:
         meson is needed by dpdk-2:20.11-2.el7.x86_64
[root@sysman rpmbuild]#

[root@sysman rpmbuild]# meson -v
0.59.2
[root@sysman rpmbuild]#

If I comment the "BuildRequires: meson" :

[root@sysman rpmbuild]# rpmbuild -ba SPECS/dpdk.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rMiLfX
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf dpdk-20.11
+ /usr/bin/xz -dc /root/rpmbuild/SOURCES/dpdk-20.11.tar.xz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dpdk-20.11
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.DIS5o0
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd dpdk-20.11
++ echo -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic -fcommon
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic -fcommon'
+ %meson --includedir=include/dpdk -Ddrivers_install_subdir=dpdk-pmds 
-Denable_docs=true -Dmachine=default --default-library=shared
/var/tmp/rpm-tmp.DIS5o0: line 32: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.DIS5o0 (%build)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.DIS5o0 (%build)
[root@sysman rpmbuild]#






Any ideas ?

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

* Re: Troubles with building of DPDK.RPM and meson
  2021-10-12  9:10   ` Ruslan R. Laishev
@ 2021-10-12 15:22     ` Ruslan R. Laishev
  0 siblings, 0 replies; 4+ messages in thread
From: Ruslan R. Laishev @ 2021-10-12 15:22 UTC (permalink / raw)
  To: users

Installed meson i ninja from .RPM ...


Unpack DPDK-20.11.SRC.RPM, now I try to make DPDK.RPM (with the original 
  dpdk.spec from the DPDK 20.11 package), I get :

[root@sysman rpmbuild]# rpmbuild -ba SPECS/dpdk.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.r8Q2er
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf dpdk-20.11
+ /usr/bin/xz -dc /root/rpmbuild/SOURCES/dpdk-20.11.tar.xz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dpdk-20.11
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.GjKyDK
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd dpdk-20.11
++ echo -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic -fcommon
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic -fcommon'
+ %set_build_flags
/var/tmp/rpm-tmp.GjKyDK: line 33: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.GjKyDK (%build)



What i missing now ?

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

end of thread, other threads:[~2021-10-12 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12  6:45 Troubles with building of DPDK.RPM and meson Ruslan R. Laishev
2021-10-12  8:31 ` Thomas Monjalon
2021-10-12  9:10   ` Ruslan R. Laishev
2021-10-12 15:22     ` Ruslan R. Laishev

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