Skip to content

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

@TonyKaap

Description

@TonyKaap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglinux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions