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

Make fails on Ubuntu 22.04.2 with Linux 5.19.0-46 generic #153

Open
serpastorg opened this issue Jul 11, 2023 · 4 comments
Open

Make fails on Ubuntu 22.04.2 with Linux 5.19.0-46 generic #153

serpastorg opened this issue Jul 11, 2023 · 4 comments

Comments

@serpastorg
Copy link

Make fails this way in my fresh installed Ubuntu:

make -C /lib/modules/5.19.0-46-generic/build M=/home/sergio/Descargas/rtw88 modules make[1]: se entra en el directorio '/usr/src/linux-headers-5.19.0-46-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 CC [M] /home/sergio/Descargas/rtw88/main.o /home/sergio/Descargas/rtw88/main.c: In function ‘rtw_core_deinit’: /home/sergio/Descargas/rtw88/main.c:2302:9: error: implicit declaration of function ‘timer_delete_sync’ [-Werror=implicit-function-declaration] 2302 | timer_delete_sync(&rtwdev->tx_report.purge_timer); | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:257: /home/sergio/Descargas/rtw88/main.o] Error 1 make[1]: *** [Makefile:1857: /home/sergio/Descargas/rtw88] Error 2 make[1]: se sale del directorio '/usr/src/linux-headers-5.19.0-46-generic' make: *** [Makefile:117: all] Error 2

Please help me, I need to use my RTL8821 dongle. Thanks a lot

@lwfinger
Copy link
Owner

I found the problem and pushed a fix. Do a 'git pull', and it should build again.

@serpastorg
Copy link
Author

Solved. Thank you very much. I was surprised with your answer. It was soooo soon :)

@RamiroCastillo
Copy link

On my computer updated to Ubuntu 22.04 I have a similar problem that indicates the following:

make -C /lib/modules/5.15.0-76-generic/build M=/home/javier/wifi/rtw88 modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-76-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Homebrew GCC 5.5.0_7) 5.5.0
CC [M] /home/javier/wifi/rtw88/main.o
gcc: error: unrecognized command line option '-mfunction-return=thunk-extern'
gcc: error: unrecognized command line option '-mharden-sls=all'
make[2]: *** [scripts/Makefile.build:297: /home/javier/wifi/rtw88/main.o] Error 1
make[1]: *** [Makefile:1914: /home/javier/wifi/rtw88] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-76-generic'
make: *** [Makefile:117: all] Error 2

Please could you help me I need to install rtl8723de module

@lwfinger
Copy link
Owner

Your gcc with version 5.5.0 is too old. You need version 11.3.0 from Ubuntu as that is the compiler used to build the kernel.

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