Coder Social home page Coder Social logo

dpdk installation error about f-stack HOT 3 CLOSED

f-stack avatar f-stack commented on June 8, 2024
dpdk installation error

from f-stack.

Comments (3)

choleraehyq avatar choleraehyq commented on June 8, 2024

I can successfully compile DPDK 17.05, but I don't know which version of DPDK does f-stack use.

from f-stack.

choleraehyq avatar choleraehyq commented on June 8, 2024

I've updated DPDK to 17.05, and fixed for some compatible issues. DPDK and f-stack can be successfully compiled, but redis is still broken.

[cholerae@x240s redis-3.2.8]$ make
cd src && make all
make[1]: Entering directory '/data/f-stack/app/redis-3.2.8/src'
sh: ./mkreleasehdr.sh: Permission denied
    CC adlist.o
    CC quicklist.o
    CC ae.o
In file included from ae_ff_kqueue.c:37:0,
                 from ae.c:50:
/data/f-stack/lib/ff_api.h:103:57: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration
     struct kevent *eventlist, int nevents, const struct timespec *timeout);
                                                         ^~~~~~~~
In file included from ae.c:50:0:
ae_ff_kqueue.c: In function ‘aeApiPoll’:
ae_ff_kqueue.c:116:25: error: storage size of ‘timeout’ isn’t known
         struct timespec timeout;
                         ^~~~~~~
ae_ff_kqueue.c:116:25: warning: unused variable ‘timeout’ [-Wunused-variable]
make[1]: *** [Makefile:229: ae.o] Error 1
make[1]: Leaving directory '/data/f-stack/app/redis-3.2.8/src'
make: *** [Makefile:6: all] Error 2

I think the reason is that in linux the header containing struct timespec is time.h, but in freebsd is sys/time.h. In redis compilation we haven't overriden the include root to freebsd root. So struct timespec haven't been imported into ae_ff_kqueue.c.

from f-stack.

whl739 avatar whl739 commented on June 8, 2024

The version of dpdk that f-stack use is 16.07. And we didn't test it with gcc 5+.
The redis error is that we push the codes to github with permission loss.

from f-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.