Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for Fedora? #53

Open
alshdavid opened this issue Jun 11, 2023 · 2 comments
Open

Instructions for Fedora? #53

alshdavid opened this issue Jun 11, 2023 · 2 comments

Comments

@alshdavid
Copy link

alshdavid commented Jun 11, 2023

Hi, thanks for developing this!

Is it possible to add instructions for Fedora?

Trying to run sudo sh ./install and I get stopped at

sudo sh ./install
rm -f -f *.o *.ko vers.c .*.cmd .*.d
rm -f -f rcraid.mod.c Module.symvers Modules.symvers
rm -f -rf .tmp_versions Module.markers modules.order
make -C /lib/modules/6.3.6-200.fc38.x86_64/build M=/home/alshdavid/Development/thopiekar/rcraid-dkms/src
make[1]: Entering directory '/usr/src/kernels/6.3.6-200.fc38.x86_64'
ln -sf `basename /home/alshdavid/Development/thopiekar/rcraid-dkms/src/rcblob.x86_64.o .o` /home/alshdavid/Development/thopiekar/rcraid-dkms/src/rcblob.x86_64.o
  CC [M]  /home/alshdavid/Development/thopiekar/rcraid-dkms/src/rc_init.o
In file included from /home/alshdavid/Development/thopiekar/rcraid-dkms/src/rc.h:97,
                 from /home/alshdavid/Development/thopiekar/rcraid-dkms/src/rc_init.c:38:
/home/alshdavid/Development/thopiekar/rcraid-dkms/src/rc_msg_platform.h:30:10: fatal error: stdarg.h: No such file or directory
   30 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.

Though I have previously run

sudo dnf groupinstall "Development Tools"
sudo dnf install kernel-devel

Running locate stdarg.h results in

$ locate stdarg.h
/usr/include/c++/13/tr1/stdarg.h
/usr/lib/gcc/x86_64-redhat-linux/13/include/cross-stdarg.h
/usr/lib/gcc/x86_64-redhat-linux/13/include/stdarg.h
/usr/lib64/llvm15/lib/clang/15.0.7/include/stdarg.h
/usr/src/kernels/6.3.4-201.fc38.x86_64/include/linux/stdarg.h
/usr/src/kernels/6.3.5-200.fc38.x86_64/include/linux/stdarg.h
@nktice
Copy link

nktice commented Jul 18, 2023

Here's the most recent officially published AMD drivers -
https://www.amd.com/en/support/chipsets/amd-socket-swrx8/wrx80
Have you tried with them on your system with RedHat to see if they work?

@badfishblues
Copy link

badfishblues commented Sep 23, 2023

@alshdavid at least part of the problem is that the linux kernel headers should be included as #include <linux/stdarg.h> now in more recent versions. This yields more downstream build errors for both the open source drivers here and the amd provided install that @nktice posted above. These downstream build errors are occurring because the compiler is using the headers from usr/include/linux/ instead of the actual kernel headers at /usr/src/kernels/6.4.14-200.fc38.x86_64/include/linux/ in the case of pci.h. This probably has something to do with the install file being called directly instead of through another tool such as dkms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants