[Bug]: Building OpenRV on RHEL 9.6, hitting an error with the AJA driver

未关闭
#993 10 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
c, linux

调研方向

从 _build/RV_DEPS_AJA/src/driver/linux/ntv2dma.c 中的 dmaPageLock 函数开始,将其 get_user_pages 调用与 RHEL 内核 include/linux/mm.h 中的声明进行比较。在 RHEL 9.6 上使用内核 5.14.0-570.49.1.el9_6.x86_64 重现构建;完成的标准是 AJA Linux 驱动程序能够构建,且不出现参数数量错误。

由索引模型根据 Issue 内容生成。

描述

bug linux
What happened?

From @williamwira:
When I build OpenRV on a RHEL 9.6 machine, I get this error in AJA. Did the signature for get_user_pages change somehow?

/disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux/ntv2dma.c: In function 'dmaPageLock': /disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux/ntv2dma.c:2799:21: error: too many arguments to function 'get_user_pages' 2799 | numPinned = get_user_pages( | ^~~~~~~~~~~~~~ In file included from ./include/linux/pagemap.h:8, from /disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux/ntv2dma.c:17: ./include/linux/mm.h:2561:6: note: declared here 2561 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ make[5]: *** [scripts/Makefile.build:249: /disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux/ntv2dma.o] Error 1 make[4]: *** [Makefile:1947: /disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux] Error 2 make[3]: *** [Makefile:238: default] Error 2 gmake[2]: *** [driver/CMakeFiles/driver_linux.dir/build.make:71: driver/CMakeFiles/driver_linux] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:209: driver/CMakeFiles/driver_linux.dir/all] Error 2

Kernel number for this machine:
% uname -r 5.14.0-570.49.1.el9_6.x86_64

List all the operating systems versions where this is happening

RHEL 9.6

On what computer hardware is this happening?

23 Intel Xeon cpu, 86Gb Ram, Nvidia A40

Relevant console log output
/disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux/ntv2dma.c: In function 'dmaPageLock':
/disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux/ntv2dma.c:2799:21: error: too many arguments to function 'get_user_pages'
 2799 |         numPinned = get_user_pages(
      |                     ^~~~~~~~~~~~~~
In file included from ./include/linux/pagemap.h:8,
                 from /disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux/ntv2dma.c:17:
./include/linux/mm.h:2561:6: note: declared here
 2561 | long get_user_pages(unsigned long start, unsigned long nr_pages,
      |      ^~~~~~~~~~~~~~
make[5]: *** [scripts/Makefile.build:249: /disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux/ntv2dma.o] Error 1
make[4]: *** [Makefile:1947: /disk1/scratch/wwira/git_repo/OpenRV/_build/RV_DEPS_AJA/src/driver/linux] Error 2
make[3]: *** [Makefile:238: default] Error 2
gmake[2]: *** [driver/CMakeFiles/driver_linux.dir/build.make:71: driver/CMakeFiles/driver_linux] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:209: driver/CMakeFiles/driver_linux.dir/all] Error 2
Environment variables

No response

Extra information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要语言
C++
星标
797
派生
259
平均合并
4 天 4 小时
30 天内合并 PR
34

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AcademySoftwareFoundation/OpenRV 的其他 Issue

查看 AcademySoftwareFoundation/OpenRV 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。