Xilinx / Xilinx/XRT

Installing xrt on CentOS 9

Open
#7,626 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
686
Forks
549
Avg merge
2d 4h
Merged PRs (30d)
70

Description

Hi, I have the issue installing xrt_202310.2.15.225_9.0-x86_64-xrt.rpm on
CentOS Stream release 9 (5.14.0-333.el9.x86_64)
with errors while compiling.
Cut from /var/lib/dkms/xrt/2.15.225/build/make.log
DKMS make.log for xrt-2.15.225 for kernel 5.14.0-333.el9.x86_64 (x86_64)
CC [M] /var/lib/dkms/xrt/2.15.225/build/driver/xocl/mgmtpf/../subdev/ulite.o
/var/lib/dkms/xrt/2.15.225/build/driver/xocl/mgmtpf/../subdev/ulite.c:469:27: error: initialization of ‘void (*)(struct uart_port *, struct ktermios *, const struct ktermios )’ from incompatible pointer type ‘void ()(struct uart_port *, struct ktermios *, struct ktermios *)’ [-Werror=incompatible-pointer-types]
469 | .set_termios = ulite_set_termios,
| ^~~~~~~~~~~~~~~~~
/var/lib/dkms/xrt/2.15.225/build/driver/xocl/mgmtpf/../subdev/ulite.c:469:27: note: (near initialization for ‘ulite_ops.set_termios’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:298: /var/lib/dkms/xrt/2.15.225/build/driver/xocl/mgmtpf/../subdev/ulite.o] Error 1

How can it be solved or investigated further to find a cause ?
Thanks.

Contributor guide

Open the contributing guide

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.

Research direction

Start with the reported DKMS make.log and driver/xocl/mgmtpf/../subdev/ulite.c, focusing on the ulite_ops.set_termios assignment and the CentOS Stream 9 kernel version shown. Reproduce the RPM installation on the stated environment and compare the reported function-pointer types; done means documenting the cause and a verified resolution or investigation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, centos, linux
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.