MegEngine / MegEngine/InferLLM

make报错

Open
#32 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
752
Forks
94
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.