rtl8192du icon indicating copy to clipboard operation
rtl8192du copied to clipboard

Can't compile on Fedora 27 with kernel 4.15

Open davidmcdonald opened this issue 8 years ago • 8 comments

When trying to compile on my Fedora 27 system with Kernel 4.15 I get the following...

make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.3-300.fc27.x86_64/build M=/home/david/Downloads/rtl8192du  modules
make[1]: *** /lib/modules/4.15.3-300.fc27.x86_64/build: No such file or directory.  Stop.
make: *** [Makefile:149: modules] Error 2

Is this because it is not compatible with my Kernel? Any help would be appreciated.

Thanks :)

davidmcdonald avatar Feb 20 '18 19:02 davidmcdonald

You have not installed the kernel headers. If you get it right, then 'ls /lib/modules/4.15.3-300.fc27.x86_64/build' should have a directory named "include" in the listing/

lwfinger avatar Feb 20 '18 20:02 lwfinger

Thank you lwfinger :) I installed the headers as suggested and now not receiving the error. Instead getting a different error now as follows:


make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.3-300.fc27.x86_64/build M=/home/david/Downloads/rtl8192du  modules
make[1]: Entering directory '/usr/src/kernels/4.15.3-300.fc27.x86_64'
Makefile:936: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel".  Stop.
make[1]: Leaving directory '/usr/src/kernels/4.15.3-300.fc27.x86_64'
make: *** [Makefile:149: modules] Error 2

Now elfutils-libelf-devel did install for me but libelf-dev, libelf-devel are not found when I try to install.

davidmcdonald avatar Feb 20 '18 21:02 davidmcdonald

You only need one of the three. Have you tried to make now?

lwfinger avatar Feb 20 '18 21:02 lwfinger

Yes, I have tried both sudo make and just make and get the above error after the install of the lib package.

davidmcdonald avatar Feb 20 '18 21:02 davidmcdonald

You will have to ask on the Fedora Forums. When I got that error on openSUSE, I installed libelf-devel and all was well. Obviously, Fedota packages thing differently.

lwfinger avatar Feb 21 '18 01:02 lwfinger

Thank you, will see if anyone on Fedora can help me from here :)

davidmcdonald avatar Feb 21 '18 01:02 davidmcdonald

You will have to ask on the Fedora Forums. When I got that error on openSUSE, I installed libelf-devel and all was well. Obviously, Fedota packages thing differently.

lwfinger avatar Feb 21 '18 09:02 lwfinger

See the Jose Luis comment:

https://akshaycv006.wordpress.com/2017/01/12/installing-realtek-rtl8723be-driver-for-ubuntu-debian-or-fedora/

jchoy8890 avatar Mar 18 '18 08:03 jchoy8890