Re: [vpp-dev] Compile error with linux/memfd.h

2017-09-29 Thread Eddie Ruan (eruan)
Thanks Dave W and Dave B.

It is kernel issue. Since I need my box for poking around vpp in docker  via 
following prebuilt demo,

https://github.com/ligato/vpp-agent/tree/master/k8s/perf-demo

I upgrade my box to 7.4 to make less trouble.

Now I am good to go to play with VPP.

Thanks

Eddie





[logo_Grey]



Eddie Ruan
PRINCIPAL ENGINEER.ENGINEERING
er...@cisco.com<mailto:er...@cisco.com>
Tel: +1 408 853 0776

Cisco Systems, Inc.
821 Alder Drive
MILPITAS
95035
United States
cisco.com


[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]Think before you 
print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete 
all copies of this message.
Please click 
here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for 
Company Registration Information.


From: Dave Wallace [mailto:dwallac...@gmail.com]
Sent: Thursday, September 28, 2017 8:28 PM
To: Dave Barach (dbarach) <dbar...@cisco.com>; Eddie Ruan (eruan) 
<er...@cisco.com>; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Compile error with linux/memfd.h

Eddie,

I recently submitted a patch which updated the CentOS Vagrant support in 
.../vpp/extras/Vagrantfile to CentOS 7.4

Please pull the latest VPP tree from master, install virtualbox, and run 
vagrant/virtualbox as follows:
cd /extras/vagrant
export VPP_VAGRANT_DISTRO=centos7
vagrant up
vagrant ssh
This will fire up a CentOS 7.4 VM, install the VPP dependencies and build the 
VPP rpm packages (a la "make pkg-rpm").

Thanks,
-daw-
On 9/28/17 5:53 PM, Dave Barach (dbarach) wrote:
Dear Eddie,

As discussed in private email: I think that the version of CentOS on your build 
system is too old. If memory serves, CentOS 7.3 is required. Google tells me 
that the earliest Linux kernel with memfd support is 3.17; it looks like your 
system is running a 3.10 derivative: 
"/usr/src/kernels/3.10.0-693.2.2.el7.x86_64/include/uapi/linux"

Other folks, please jump in on that topic.

After you resolve the CentOS version issue, you'll certainly need to run "make 
install-dep" from the workspace root: "WARNING: Please install ccache AYEC and 
re-run this script"

Thanks... Dave

P.S. We verify every patch on CentOS before merge...

From: vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io> 
[mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Eddie Ruan (eruan)
Sent: Thursday, September 28, 2017 5:27 PM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: [vpp-dev] Compile error with linux/memfd.h

Hi,

I try to make my hand dirty via pulling and compiling VPP codes. I am following 
wiki.

https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Building_the_first_time

I have tried different options, but the compile always stucks at following 
error, not be able to find linux/memfd.h

I found following copy from my cento OS box. I am not sure if that's one it 
looks for, or there are some other package I need to install.

[root@spitfire-2 linux]# pwd
/usr/src/kernels/3.10.0-693.2.2.el7.x86_64/include/uapi/linux
[root@spitfire-2 linux]# ls memfd.h
memfd.h

Does anyone have some hints on how to solve it?


Thanks

Eddie



[root@spitfire-2 vpp]# make bootstrap
WARNING: Please install ccache AYEC and re-run this script
make[1]: Entering directory `/nobackup/vpp/build-root'
 Arch for platform 'native' is native 
 Finding source for tools 
 Makefile fragment found in /nobackup/vpp/build-root/packages/tools.mk 
 Source found in /nobackup/vpp/src 
 Configuring tools: nothing to do 
 Building tools in /nobackup/vpp/build-root/build-tool-native/tools 
make[2]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
make  all-recursive
make[3]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
Making all in .
make[4]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
  CC   vppinfra/linux/mem.lo
/nobackup/vpp/build-root/../src/vppinfra/linux/mem.c:25:25: fatal error: 
linux/memfd.h: No such file or directory
#include 



[logo_Grey]



Eddie Ruan
PRINCIPAL ENGINEER.ENGINEERING
er...@cisco.com<mailto:er...@cisco.com>
Tel: +1 408 853 0776

Cisco Systems, Inc.
821 Alder Drive
MILPITAS
95035
United States
cisco.com


[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]Think before you 
print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and del

Re: [vpp-dev] Compile error with linux/memfd.h

2017-09-28 Thread Dave Wallace

Eddie,

I recently submitted a patch which updated the CentOS Vagrant support in 
.../vpp/extras/Vagrantfile to CentOS 7.4


Please pull the latest VPP tree from master, install virtualbox, and run 
vagrant/virtualbox as follows:


   cd /extras/vagrant
   export VPP_VAGRANT_DISTRO=centos7
   vagrant up
   vagrant ssh

This will fire up a CentOS 7.4 VM, install the VPP dependencies and 
build the VPP rpm packages (a la "make pkg-rpm").


Thanks,
-daw-

On 9/28/17 5:53 PM, Dave Barach (dbarach) wrote:


Dear Eddie,

As discussed in private email: I think that the version of CentOS on 
your build system is too old. If memory serves, CentOS 7.3 is 
required. Google tells me that the earliest Linux kernel with memfd 
support is 3.17; it looks like your system is running a 3.10 
derivative: 
”/usr/src/kernels/3.10.0-693.2.2.el7.x86_64/include/uapi/linux”


Other folks, please jump in on that topic.

After you resolve the CentOS version issue, you’ll _certainly_ need to 
run “make install-dep” from the workspace root: “WARNING: Please 
install ccache AYEC and re-run this script”


Thanks… Dave

P.S. We verify every patch on CentOS before merge...

*From:* vpp-dev-boun...@lists.fd.io 
[mailto:vpp-dev-boun...@lists.fd.io] *On Behalf Of *Eddie Ruan (eruan)

*Sent:* Thursday, September 28, 2017 5:27 PM
*To:* vpp-dev@lists.fd.io
*Subject:* [vpp-dev] Compile error with linux/memfd.h

Hi,

I try to make my hand dirty via pulling and compiling VPP codes. I am 
following wiki.


https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Building_the_first_time

I have tried different options, but the compile always stucks at 
following error, not be able to find linux/memfd.h


I found following copy from my cento OS box. I am not sure if that‘s 
one it looks for, or there are some other package I need to install.


[root@spitfire-2 linux]# pwd

/usr/src/kernels/3.10.0-693.2.2.el7.x86_64/include/uapi/linux

[root@spitfire-2 linux]# ls memfd.h

memfd.h

Does anyone have some hints on how to solve it?

Thanks


Eddie

[root@spitfire-2 vpp]# make bootstrap

WARNING: Please install ccache AYEC and re-run this script

make[1]: Entering directory `/nobackup/vpp/build-root'

 Arch for platform 'native' is native 

 Finding source for tools 

 Makefile fragment found in 
/nobackup/vpp/build-root/packages/tools.mk 


 Source found in /nobackup/vpp/src 

 Configuring tools: nothing to do 

 Building tools in 
/nobackup/vpp/build-root/build-tool-native/tools 


make[2]: Entering directory 
`/nobackup/vpp/build-root/build-tool-native/tools'


make  all-recursive

make[3]: Entering directory 
`/nobackup/vpp/build-root/build-tool-native/tools'


Making all in .

make[4]: Entering directory 
`/nobackup/vpp/build-root/build-tool-native/tools'


  CC   vppinfra/linux/mem.lo

/nobackup/vpp/build-root/../src/vppinfra/linux/mem.c:25:25: fatal 
error: linux/memfd.h: No such file or directory


#include 

logo_Grey




*Eddie Ruan*

PRINCIPAL ENGINEER.ENGINEERING

er...@cisco.com <mailto:er...@cisco.com>

Tel: *+1 408 853 0776*



*Cisco Systems, Inc.*

821 Alder Drive
MILPITAS
95035
United States
cisco.com



http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gifThink 
before you print.


This email may contain confidential and privileged material for the 
sole use of the intended recipient. Any review, use, distribution or 
disclosure by others is strictly prohibited. If you are not the 
intended recipient (or authorized to receive for the recipient), 
please contact the sender by reply email and delete all copies of this 
message.


Please click here 
<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> 
for Company Registration Information.




___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] Compile error with linux/memfd.h

2017-09-28 Thread Dave Barach (dbarach)
Dear Eddie,

As discussed in private email: I think that the version of CentOS on your build 
system is too old. If memory serves, CentOS 7.3 is required. Google tells me 
that the earliest Linux kernel with memfd support is 3.17; it looks like your 
system is running a 3.10 derivative: 
"/usr/src/kernels/3.10.0-693.2.2.el7.x86_64/include/uapi/linux"

Other folks, please jump in on that topic.

After you resolve the CentOS version issue, you'll certainly need to run "make 
install-dep" from the workspace root: "WARNING: Please install ccache AYEC and 
re-run this script"

Thanks... Dave

P.S. We verify every patch on CentOS before merge...

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Eddie Ruan (eruan)
Sent: Thursday, September 28, 2017 5:27 PM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Compile error with linux/memfd.h

Hi,

I try to make my hand dirty via pulling and compiling VPP codes. I am following 
wiki.

https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Building_the_first_time

I have tried different options, but the compile always stucks at following 
error, not be able to find linux/memfd.h

I found following copy from my cento OS box. I am not sure if that's one it 
looks for, or there are some other package I need to install.

[root@spitfire-2 linux]# pwd
/usr/src/kernels/3.10.0-693.2.2.el7.x86_64/include/uapi/linux
[root@spitfire-2 linux]# ls memfd.h
memfd.h

Does anyone have some hints on how to solve it?


Thanks

Eddie



[root@spitfire-2 vpp]# make bootstrap
WARNING: Please install ccache AYEC and re-run this script
make[1]: Entering directory `/nobackup/vpp/build-root'
 Arch for platform 'native' is native 
 Finding source for tools 
 Makefile fragment found in /nobackup/vpp/build-root/packages/tools.mk 
 Source found in /nobackup/vpp/src 
 Configuring tools: nothing to do 
 Building tools in /nobackup/vpp/build-root/build-tool-native/tools 
make[2]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
make  all-recursive
make[3]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
Making all in .
make[4]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
  CC   vppinfra/linux/mem.lo
/nobackup/vpp/build-root/../src/vppinfra/linux/mem.c:25:25: fatal error: 
linux/memfd.h: No such file or directory
#include 



[logo_Grey]



Eddie Ruan
PRINCIPAL ENGINEER.ENGINEERING
er...@cisco.com<mailto:er...@cisco.com>
Tel: +1 408 853 0776

Cisco Systems, Inc.
821 Alder Drive
MILPITAS
95035
United States
cisco.com


[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]Think before you 
print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete 
all copies of this message.
Please click 
here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for 
Company Registration Information.


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] Compile error with linux/memfd.h

2017-09-28 Thread Eddie Ruan (eruan)
Hi,

I try to make my hand dirty via pulling and compiling VPP codes. I am following 
wiki.

https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Building_the_first_time

I have tried different options, but the compile always stucks at following 
error, not be able to find linux/memfd.h

I found following copy from my cento OS box. I am not sure if that's one it 
looks for, or there are some other package I need to install.

[root@spitfire-2 linux]# pwd
/usr/src/kernels/3.10.0-693.2.2.el7.x86_64/include/uapi/linux
[root@spitfire-2 linux]# ls memfd.h
memfd.h

Does anyone have some hints on how to solve it?


Thanks

Eddie



[root@spitfire-2 vpp]# make bootstrap
WARNING: Please install ccache AYEC and re-run this script
make[1]: Entering directory `/nobackup/vpp/build-root'
 Arch for platform 'native' is native 
 Finding source for tools 
 Makefile fragment found in /nobackup/vpp/build-root/packages/tools.mk 
 Source found in /nobackup/vpp/src 
 Configuring tools: nothing to do 
 Building tools in /nobackup/vpp/build-root/build-tool-native/tools 
make[2]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
make  all-recursive
make[3]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
Making all in .
make[4]: Entering directory `/nobackup/vpp/build-root/build-tool-native/tools'
  CC   vppinfra/linux/mem.lo
/nobackup/vpp/build-root/../src/vppinfra/linux/mem.c:25:25: fatal error: 
linux/memfd.h: No such file or directory
#include 



[logo_Grey]



Eddie Ruan
PRINCIPAL ENGINEER.ENGINEERING
er...@cisco.com
Tel: +1 408 853 0776

Cisco Systems, Inc.
821 Alder Drive
MILPITAS
95035
United States
cisco.com


[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]Think before you 
print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete 
all copies of this message.
Please click 
here for 
Company Registration Information.


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev