Coder Social home page Coder Social logo

make报错 about inferllm HOT 3 OPEN

megengine avatar megengine commented on May 28, 2024
make报错

from inferllm.

Comments (3)

chenqy4933 avatar chenqy4933 commented on May 28, 2024

应该是 mmap 相关 API 的问题

from inferllm.

lilongxian avatar lilongxian commented on May 28, 2024

嗯,我呀遇到这个问题了,我的解决办法是在file.h文件中最上面再加入一行 #include <sys.mman.h>就可以了。另外我经过多次尝试最后的软件版本号搭配是:gcc 7.5.0 g++ 7.5.0 cmake 3.26.4 make 4.1, 就可以顺利编译了

from inferllm.

Mignet avatar Mignet commented on May 28, 2024

我也遇到相同的问题,我的环境是CentOS7,默认yum install gcc g++,
问题原因是gc++编译器版本太低,不支持c++ 11的特性,解决办法是升级版本
CentOS 7升级GCC ,至少到7系列,切换版本之后,要清空build目录,重新cmake,重新make
https://blog.csdn.net/b_ingram/article/details/121569398

from inferllm.

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.