thopiekar / rcraid-dkms

AMD RAIDXpert driver as DKMS package
Other
126 stars 27 forks source link

Instructions for Fedora? #53

Open alshdavid opened 1 year ago

alshdavid commented 1 year ago

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 commented 1 year ago

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 commented 11 months ago

@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