fastoe / RTL8812BU_for_Raspbian

RTL8812BU Driver for Raspbian
69 stars 19 forks source link

ubuntu raspi 5.15.0-1026-raspi not compile #23

Open JerryGeis opened 1 year ago

JerryGeis commented 1 year ago

I get this on 22.04 LTS Ubuntu for raspi

make make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.15.0-1026-raspi/build M=/home/silentm/LayeredSolutions/wifi/RTL8812BU_for_Raspbian-master modules make[1]: Entering directory '/usr/src/linux-headers-5.15.0-1026-raspi' CC [M] /home/silentm/LayeredSolutions/wifi/RTL8812BU_for_Raspbian-master/core/rtw_cmd.o gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’ gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64 gcc: error: unrecognized command-line option ‘-mapcs’ gcc: error: unrecognized command-line option ‘-mno-sched-prolog’ gcc: error: unrecognized command-line option ‘-msoft-float’ make[2]: [scripts/Makefile.build:297: /home/silentm/LayeredSolutions/wifi/RTL8812BU_for_Raspbian-master/core/rtw_cmd.o] Error 1 make[1]: [Makefile:1906: /home/silentm/LayeredSolutions/wifi/RTL8812BU_for_Raspbian-master] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-1026-raspi' make: *** [Makefile:2290: modules] Error 2

No Idea what to do.

Jerry

JerryGeis commented 1 year ago

I found this https://github.com/morrownr/88x2bu-20210702, it worked for what I needed. Thanks

libklein commented 1 year ago

For future reference: This issue is caused by make defaulting to arm architecture. Running make ARCH=arm64 solves the issue.