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

Đang mở
#993 10 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, linux

Hướng nghiên cứu

Bắt đầu với hàm dmaPageLock trong _build/RV_DEPS_AJA/src/driver/linux/ntv2dma.c và so sánh lệnh gọi get_user_pages của hàm này với khai báo trong include/linux/mm.h của kernel RHEL. Tái hiện quá trình build trên RHEL 9.6 với kernel 5.14.0-570.49.1.el9_6.x86_64; được xem là hoàn tất khi driver Linux của AJA build thành công mà không gặp lỗi về số lượng đối số.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C++
Star
797
Fork
259
Merge trung bình
4 ngày 4 giờ
Pull request đã merge (30 ngày)
34

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AcademySoftwareFoundation/OpenRV

Tất cả issue của AcademySoftwareFoundation/OpenRV

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.