nvdla / vp

Virtual Platform for NVDLA
Other
131 stars 81 forks source link

"memfd_create " error when compile qbox #9

Open siriuxyfliu opened 6 years ago

siriuxyfliu commented 6 years ago

Hi, friends, I came across the following error when compile qbox. I guess I may miss some QEMU configuration. Can anybody give any help? I really appreciate that! The compile environment: Ubuntu: 18.04 gcc: 4.9.3 g++: 4.9.3 glibc: 2.27-3

Error Message: `[ 70%] Performing build step for qbox

 BISON dtc-parser.tab.c
 DEP dtc-parser.tab.c
 DEP dtc-lexer.lex.c
    CC      util/memfd.o
    /home/test/nvdla/vp/libs/qbox/util/memfd.c:40:12: error: static declaration of memfd_create follows non-static declaration
   static int memfd_create(const char *name, unsigned int flags)

`

siriuxyfliu commented 6 years ago

I fixed the issue by downgrading glibc to V2.0.

I think the environment setup should mention the glibc.

shazib-summar commented 4 years ago

@siriuxyfliu How did you downgrade it to V2.0. Do you have a link to the package. Here is the version that I am using. image

owlyangp commented 4 years ago

You can see my comment there: https://github.com/nvdla/vp/issues/29