make报错

Open
#32 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, cpp
Domain
build-system

Research direction

Start with src/file.h around the InputFile destructor and reproduce the failure using the reported CentOS 7.8, CMake 3.23.1, and GNU Make 3.82 setup. Check how munmap is made available to this compilation unit, then rebuild the project and confirm the InferLLM target compiles successfully.

Written by the indexing model from the issue text.

Description

在centos7.8环境中编译,cmake使用的版本是 : cmake version 3.23.1 ,make过程报错: make版本: GNU Make 3.82
[root@node02 build]# make
[ 2%] Building CXX object CMakeFiles/InferLLM.dir/src/core/device.cpp.o
In file included from /root/InferLLM-main/src/utils.h:13:0,
from /root/InferLLM-main/src/kern/kernel.h:6,
from /root/InferLLM-main/src/core/device.h:6,
from /root/InferLLM-main/src/core/device.cpp:2:
/root/InferLLM-main/src/file.h: In destructor ‘inferllm::InputFile::~InputFile()’:
/root/InferLLM-main/src/file.h:42:39: error: ‘munmap’ was not declared in this scope
munmap(m_mmap_addr, m_size);
^
make[2]: *** [CMakeFiles/InferLLM.dir/src/core/device.cpp.o] Error 1
make[1]: *** [CMakeFiles/InferLLM.dir/all] Error 2

Dominant language
C++
Stars
752
Forks
94
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MegEngine/InferLLM

All issues in MegEngine/InferLLM

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.