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 <vpp dir>/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:* [email protected] [mailto:[email protected]] *On Behalf Of *Eddie Ruan (eruan)
*Sent:* Thursday, September 28, 2017 5:27 PM
*To:* [email protected]
*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 <linux/memfd.h>

logo_Grey

        
        

*Eddie Ruan*

PRINCIPAL ENGINEER.ENGINEERING

[email protected] <mailto:[email protected]>

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
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to